[2025-01-02 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:00:06 [end_date_ymd] => 2025-01-02 00:00:06 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:00:06' and `end` < '2025-01-02 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-01-02 00:00:20] Production.INFO: count ==699 [2025-01-02 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-01 21:00:06 - End Time 2025-01-02 00:00:06 [2025-01-02 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154405', 'tblTempUsageDetail_20' ) start [2025-01-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154405', 'tblTempUsageDetail_20' ) end [2025-01-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154405', 'tblTempVendorCDR_20' ) start [2025-01-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154405', 'tblTempVendorCDR_20' ) end [2025-01-02 00:00:20] Production.INFO: ProcessCDR(1,14154405,1,1,2) [2025-01-02 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154405', 'tblTempUsageDetail_20' ) start [2025-01-02 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154405', 'tblTempUsageDetail_20' ) end [2025-01-02 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:00:24] Production.INFO: ==5118== Releasing lock... [2025-01-02 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:01:05 [end_date_ymd] => 2025-01-02 00:01:05 [RateCDR] => 1 ) [2025-01-02 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:01:05' and `end` < '2025-01-02 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:01:18] Production.INFO: count ==689 [2025-01-02 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:01:05 - End Time 2025-01-02 00:01:05 [2025-01-02 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154410', 'tblTempUsageDetail_20' ) start [2025-01-02 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154410', 'tblTempUsageDetail_20' ) end [2025-01-02 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154410', 'tblTempVendorCDR_20' ) start [2025-01-02 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154410', 'tblTempVendorCDR_20' ) end [2025-01-02 00:01:18] Production.INFO: ProcessCDR(1,14154410,1,1,2) [2025-01-02 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154410', 'tblTempUsageDetail_20' ) start [2025-01-02 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154410', 'tblTempUsageDetail_20' ) end [2025-01-02 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:01:21] Production.INFO: ==5211== Releasing lock... [2025-01-02 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:02:05 [end_date_ymd] => 2025-01-02 00:02:05 [RateCDR] => 1 ) [2025-01-02 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:02:05' and `end` < '2025-01-02 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:02:18] Production.INFO: count ==188 [2025-01-02 00:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:02:05 - End Time 2025-01-02 00:02:05 [2025-01-02 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154415', 'tblTempUsageDetail_20' ) start [2025-01-02 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154415', 'tblTempUsageDetail_20' ) end [2025-01-02 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154415', 'tblTempVendorCDR_20' ) start [2025-01-02 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154415', 'tblTempVendorCDR_20' ) end [2025-01-02 00:02:18] Production.INFO: ProcessCDR(1,14154415,1,1,2) [2025-01-02 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154415', 'tblTempUsageDetail_20' ) start [2025-01-02 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154415', 'tblTempUsageDetail_20' ) end [2025-01-02 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:02:21] Production.INFO: ==5288== Releasing lock... [2025-01-02 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:02:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:03:04 [end_date_ymd] => 2025-01-02 00:03:04 [RateCDR] => 1 ) [2025-01-02 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:03:04' and `end` < '2025-01-02 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:03:18] Production.INFO: count ==187 [2025-01-02 00:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:03:04 - End Time 2025-01-02 00:03:04 [2025-01-02 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154420', 'tblTempUsageDetail_20' ) start [2025-01-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154420', 'tblTempUsageDetail_20' ) end [2025-01-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154420', 'tblTempVendorCDR_20' ) start [2025-01-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154420', 'tblTempVendorCDR_20' ) end [2025-01-02 00:03:18] Production.INFO: ProcessCDR(1,14154420,1,1,2) [2025-01-02 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154420', 'tblTempUsageDetail_20' ) start [2025-01-02 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154420', 'tblTempUsageDetail_20' ) end [2025-01-02 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:03:21] Production.INFO: ==5359== Releasing lock... [2025-01-02 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:03:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:04:05 [end_date_ymd] => 2025-01-02 00:04:05 [RateCDR] => 1 ) [2025-01-02 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:04:05' and `end` < '2025-01-02 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:04:18] Production.INFO: count ==187 [2025-01-02 00:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:04:05 - End Time 2025-01-02 00:04:05 [2025-01-02 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154425', 'tblTempUsageDetail_20' ) start [2025-01-02 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154425', 'tblTempUsageDetail_20' ) end [2025-01-02 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154425', 'tblTempVendorCDR_20' ) start [2025-01-02 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154425', 'tblTempVendorCDR_20' ) end [2025-01-02 00:04:18] Production.INFO: ProcessCDR(1,14154425,1,1,2) [2025-01-02 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154425', 'tblTempUsageDetail_20' ) start [2025-01-02 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154425', 'tblTempUsageDetail_20' ) end [2025-01-02 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:04:22] Production.INFO: ==5429== Releasing lock... [2025-01-02 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:04:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:05:04 [end_date_ymd] => 2025-01-02 00:05:04 [RateCDR] => 1 ) [2025-01-02 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:05:04' and `end` < '2025-01-02 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:05:17] Production.INFO: count ==187 [2025-01-02 00:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:05:04 - End Time 2025-01-02 00:05:04 [2025-01-02 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154430', 'tblTempUsageDetail_20' ) start [2025-01-02 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154430', 'tblTempUsageDetail_20' ) end [2025-01-02 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154430', 'tblTempVendorCDR_20' ) start [2025-01-02 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154430', 'tblTempVendorCDR_20' ) end [2025-01-02 00:05:17] Production.INFO: ProcessCDR(1,14154430,1,1,2) [2025-01-02 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154430', 'tblTempUsageDetail_20' ) start [2025-01-02 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154430', 'tblTempUsageDetail_20' ) end [2025-01-02 00:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:05:20] Production.INFO: ==5502== Releasing lock... [2025-01-02 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:05:20] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:06:05 [end_date_ymd] => 2025-01-02 00:06:05 [RateCDR] => 1 ) [2025-01-02 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:06:05' and `end` < '2025-01-02 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:06:17] Production.INFO: count ==183 [2025-01-02 00:06:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:06:05 - End Time 2025-01-02 00:06:05 [2025-01-02 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154435', 'tblTempUsageDetail_20' ) start [2025-01-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154435', 'tblTempUsageDetail_20' ) end [2025-01-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154435', 'tblTempVendorCDR_20' ) start [2025-01-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154435', 'tblTempVendorCDR_20' ) end [2025-01-02 00:06:18] Production.INFO: ProcessCDR(1,14154435,1,1,2) [2025-01-02 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154435', 'tblTempUsageDetail_20' ) start [2025-01-02 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154435', 'tblTempUsageDetail_20' ) end [2025-01-02 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:06:21] Production.INFO: ==5573== Releasing lock... [2025-01-02 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:06:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:07:04 [end_date_ymd] => 2025-01-02 00:07:04 [RateCDR] => 1 ) [2025-01-02 00:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:07:04' and `end` < '2025-01-02 00:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:07:17] Production.INFO: count ==163 [2025-01-02 00:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:07:04 - End Time 2025-01-02 00:07:04 [2025-01-02 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154440', 'tblTempUsageDetail_20' ) start [2025-01-02 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154440', 'tblTempUsageDetail_20' ) end [2025-01-02 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154440', 'tblTempVendorCDR_20' ) start [2025-01-02 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154440', 'tblTempVendorCDR_20' ) end [2025-01-02 00:07:17] Production.INFO: ProcessCDR(1,14154440,1,1,2) [2025-01-02 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154440', 'tblTempUsageDetail_20' ) start [2025-01-02 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154440', 'tblTempUsageDetail_20' ) end [2025-01-02 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:07:20] Production.INFO: ==5645== Releasing lock... [2025-01-02 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:07:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:08:05 [end_date_ymd] => 2025-01-02 00:08:05 [RateCDR] => 1 ) [2025-01-02 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:08:05' and `end` < '2025-01-02 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:08:18] Production.INFO: count ==164 [2025-01-02 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:08:05 - End Time 2025-01-02 00:08:05 [2025-01-02 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154445', 'tblTempUsageDetail_20' ) start [2025-01-02 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154445', 'tblTempUsageDetail_20' ) end [2025-01-02 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154445', 'tblTempVendorCDR_20' ) start [2025-01-02 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154445', 'tblTempVendorCDR_20' ) end [2025-01-02 00:08:18] Production.INFO: ProcessCDR(1,14154445,1,1,2) [2025-01-02 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154445', 'tblTempUsageDetail_20' ) start [2025-01-02 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154445', 'tblTempUsageDetail_20' ) end [2025-01-02 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:08:22] Production.INFO: ==5718== Releasing lock... [2025-01-02 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:09:05 [end_date_ymd] => 2025-01-02 00:09:05 [RateCDR] => 1 ) [2025-01-02 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:09:05' and `end` < '2025-01-02 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:09:18] Production.INFO: count ==163 [2025-01-02 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:09:05 - End Time 2025-01-02 00:09:05 [2025-01-02 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154450', 'tblTempUsageDetail_20' ) start [2025-01-02 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154450', 'tblTempUsageDetail_20' ) end [2025-01-02 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154450', 'tblTempVendorCDR_20' ) start [2025-01-02 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154450', 'tblTempVendorCDR_20' ) end [2025-01-02 00:09:18] Production.INFO: ProcessCDR(1,14154450,1,1,2) [2025-01-02 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154450', 'tblTempUsageDetail_20' ) start [2025-01-02 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154450', 'tblTempUsageDetail_20' ) end [2025-01-02 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:09:21] Production.INFO: ==5787== Releasing lock... [2025-01-02 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:10:05 [end_date_ymd] => 2025-01-02 00:10:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:10:05' and `end` < '2025-01-02 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-01-02 00:10:17] Production.INFO: count ==161 [2025-01-02 00:10:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:10:05 - End Time 2025-01-02 00:10:05 [2025-01-02 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154456', 'tblTempUsageDetail_20' ) start [2025-01-02 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154456', 'tblTempUsageDetail_20' ) end [2025-01-02 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154456', 'tblTempVendorCDR_20' ) start [2025-01-02 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154456', 'tblTempVendorCDR_20' ) end [2025-01-02 00:10:17] Production.INFO: ProcessCDR(1,14154456,1,1,2) [2025-01-02 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154456', 'tblTempUsageDetail_20' ) start [2025-01-02 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154456', 'tblTempUsageDetail_20' ) end [2025-01-02 00:10:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:10:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:10:20] Production.INFO: ==5860== Releasing lock... [2025-01-02 00:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:10:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:11:05 [end_date_ymd] => 2025-01-02 00:11:05 [RateCDR] => 1 ) [2025-01-02 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:11:05' and `end` < '2025-01-02 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:11:18] Production.INFO: count ==181 [2025-01-02 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:11:05 - End Time 2025-01-02 00:11:05 [2025-01-02 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154461', 'tblTempUsageDetail_20' ) start [2025-01-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154461', 'tblTempUsageDetail_20' ) end [2025-01-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154461', 'tblTempVendorCDR_20' ) start [2025-01-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154461', 'tblTempVendorCDR_20' ) end [2025-01-02 00:11:18] Production.INFO: ProcessCDR(1,14154461,1,1,2) [2025-01-02 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154461', 'tblTempUsageDetail_20' ) start [2025-01-02 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154461', 'tblTempUsageDetail_20' ) end [2025-01-02 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:11:23] Production.INFO: ==5936== Releasing lock... [2025-01-02 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:11:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:12:05 [end_date_ymd] => 2025-01-02 00:12:05 [RateCDR] => 1 ) [2025-01-02 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:12:05' and `end` < '2025-01-02 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:12:19] Production.INFO: count ==178 [2025-01-02 00:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 21:12:05 - End Time 2025-01-02 00:12:05 [2025-01-02 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154466', 'tblTempUsageDetail_20' ) start [2025-01-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154466', 'tblTempUsageDetail_20' ) end [2025-01-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154466', 'tblTempVendorCDR_20' ) start [2025-01-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154466', 'tblTempVendorCDR_20' ) end [2025-01-02 00:12:19] Production.INFO: ProcessCDR(1,14154466,1,1,2) [2025-01-02 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154466', 'tblTempUsageDetail_20' ) start [2025-01-02 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154466', 'tblTempUsageDetail_20' ) end [2025-01-02 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:12:22] Production.INFO: ==6010== Releasing lock... [2025-01-02 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:13:05 [end_date_ymd] => 2025-01-02 00:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:13:05' and `end` < '2025-01-02 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-01-02 00:13:18] Production.INFO: count ==178 [2025-01-02 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:13:05 - End Time 2025-01-02 00:13:05 [2025-01-02 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154471', 'tblTempUsageDetail_20' ) start [2025-01-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154471', 'tblTempUsageDetail_20' ) end [2025-01-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154471', 'tblTempVendorCDR_20' ) start [2025-01-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154471', 'tblTempVendorCDR_20' ) end [2025-01-02 00:13:18] Production.INFO: ProcessCDR(1,14154471,1,1,2) [2025-01-02 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154471', 'tblTempUsageDetail_20' ) start [2025-01-02 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154471', 'tblTempUsageDetail_20' ) end [2025-01-02 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:13:21] Production.INFO: ==6122== Releasing lock... [2025-01-02 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:14:05 [end_date_ymd] => 2025-01-02 00:14:05 [RateCDR] => 1 ) [2025-01-02 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:14:05' and `end` < '2025-01-02 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:14:18] Production.INFO: count ==178 [2025-01-02 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:14:05 - End Time 2025-01-02 00:14:05 [2025-01-02 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154476', 'tblTempUsageDetail_20' ) start [2025-01-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154476', 'tblTempUsageDetail_20' ) end [2025-01-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154476', 'tblTempVendorCDR_20' ) start [2025-01-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154476', 'tblTempVendorCDR_20' ) end [2025-01-02 00:14:18] Production.INFO: ProcessCDR(1,14154476,1,1,2) [2025-01-02 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154476', 'tblTempUsageDetail_20' ) start [2025-01-02 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154476', 'tblTempUsageDetail_20' ) end [2025-01-02 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:14:21] Production.INFO: ==6193== Releasing lock... [2025-01-02 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:15:05 [end_date_ymd] => 2025-01-02 00:15:05 [RateCDR] => 1 ) [2025-01-02 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:15:05' and `end` < '2025-01-02 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:15:18] Production.INFO: count ==178 [2025-01-02 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:15:05 - End Time 2025-01-02 00:15:05 [2025-01-02 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154481', 'tblTempUsageDetail_20' ) start [2025-01-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154481', 'tblTempUsageDetail_20' ) end [2025-01-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154481', 'tblTempVendorCDR_20' ) start [2025-01-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154481', 'tblTempVendorCDR_20' ) end [2025-01-02 00:15:18] Production.INFO: ProcessCDR(1,14154481,1,1,2) [2025-01-02 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154481', 'tblTempUsageDetail_20' ) start [2025-01-02 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154481', 'tblTempUsageDetail_20' ) end [2025-01-02 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:15:21] Production.INFO: ==6264== Releasing lock... [2025-01-02 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:16:04 [end_date_ymd] => 2025-01-02 00:16:04 [RateCDR] => 1 ) [2025-01-02 00:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:16:04' and `end` < '2025-01-02 00:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:16:17] Production.INFO: count ==178 [2025-01-02 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:16:04 - End Time 2025-01-02 00:16:04 [2025-01-02 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154486', 'tblTempUsageDetail_20' ) start [2025-01-02 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154486', 'tblTempUsageDetail_20' ) end [2025-01-02 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154486', 'tblTempVendorCDR_20' ) start [2025-01-02 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154486', 'tblTempVendorCDR_20' ) end [2025-01-02 00:16:17] Production.INFO: ProcessCDR(1,14154486,1,1,2) [2025-01-02 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154486', 'tblTempUsageDetail_20' ) start [2025-01-02 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154486', 'tblTempUsageDetail_20' ) end [2025-01-02 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:16:20] Production.INFO: ==6335== Releasing lock... [2025-01-02 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:17:05 [end_date_ymd] => 2025-01-02 00:17:05 [RateCDR] => 1 ) [2025-01-02 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:17:05' and `end` < '2025-01-02 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:17:18] Production.INFO: count ==178 [2025-01-02 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:17:05 - End Time 2025-01-02 00:17:05 [2025-01-02 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154491', 'tblTempUsageDetail_20' ) start [2025-01-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154491', 'tblTempUsageDetail_20' ) end [2025-01-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154491', 'tblTempVendorCDR_20' ) start [2025-01-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154491', 'tblTempVendorCDR_20' ) end [2025-01-02 00:17:18] Production.INFO: ProcessCDR(1,14154491,1,1,2) [2025-01-02 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154491', 'tblTempUsageDetail_20' ) start [2025-01-02 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154491', 'tblTempUsageDetail_20' ) end [2025-01-02 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:17:21] Production.INFO: ==6420== Releasing lock... [2025-01-02 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:18:04 [end_date_ymd] => 2025-01-02 00:18:04 [RateCDR] => 1 ) [2025-01-02 00:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:18:04' and `end` < '2025-01-02 00:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:18:18] Production.INFO: count ==178 [2025-01-02 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:18:04 - End Time 2025-01-02 00:18:04 [2025-01-02 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154496', 'tblTempUsageDetail_20' ) start [2025-01-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154496', 'tblTempUsageDetail_20' ) end [2025-01-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154496', 'tblTempVendorCDR_20' ) start [2025-01-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154496', 'tblTempVendorCDR_20' ) end [2025-01-02 00:18:18] Production.INFO: ProcessCDR(1,14154496,1,1,2) [2025-01-02 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154496', 'tblTempUsageDetail_20' ) start [2025-01-02 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154496', 'tblTempUsageDetail_20' ) end [2025-01-02 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:18:21] Production.INFO: ==6496== Releasing lock... [2025-01-02 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:19:05 [end_date_ymd] => 2025-01-02 00:19:05 [RateCDR] => 1 ) [2025-01-02 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:19:05' and `end` < '2025-01-02 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:19:17] Production.INFO: count ==178 [2025-01-02 00:19:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:19:05 - End Time 2025-01-02 00:19:05 [2025-01-02 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154501', 'tblTempUsageDetail_20' ) start [2025-01-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154501', 'tblTempUsageDetail_20' ) end [2025-01-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154501', 'tblTempVendorCDR_20' ) start [2025-01-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154501', 'tblTempVendorCDR_20' ) end [2025-01-02 00:19:17] Production.INFO: ProcessCDR(1,14154501,1,1,2) [2025-01-02 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154501', 'tblTempUsageDetail_20' ) start [2025-01-02 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154501', 'tblTempUsageDetail_20' ) end [2025-01-02 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:19:20] Production.INFO: ==6569== Releasing lock... [2025-01-02 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:20:06 [end_date_ymd] => 2025-01-02 00:20:06 [RateCDR] => 1 ) [2025-01-02 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:20:06' and `end` < '2025-01-02 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:20:18] Production.INFO: count ==188 [2025-01-02 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:20:06 - End Time 2025-01-02 00:20:06 [2025-01-02 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154507', 'tblTempUsageDetail_20' ) start [2025-01-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154507', 'tblTempUsageDetail_20' ) end [2025-01-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154507', 'tblTempVendorCDR_20' ) start [2025-01-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154507', 'tblTempVendorCDR_20' ) end [2025-01-02 00:20:18] Production.INFO: ProcessCDR(1,14154507,1,1,2) [2025-01-02 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154507', 'tblTempUsageDetail_20' ) start [2025-01-02 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154507', 'tblTempUsageDetail_20' ) end [2025-01-02 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:20:21] Production.INFO: ==6641== Releasing lock... [2025-01-02 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:21:05 [end_date_ymd] => 2025-01-02 00:21:05 [RateCDR] => 1 ) [2025-01-02 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:21:05' and `end` < '2025-01-02 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:21:18] Production.INFO: count ==200 [2025-01-02 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:21:05 - End Time 2025-01-02 00:21:05 [2025-01-02 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154512', 'tblTempUsageDetail_20' ) start [2025-01-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154512', 'tblTempUsageDetail_20' ) end [2025-01-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154512', 'tblTempVendorCDR_20' ) start [2025-01-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154512', 'tblTempVendorCDR_20' ) end [2025-01-02 00:21:18] Production.INFO: ProcessCDR(1,14154512,1,1,2) [2025-01-02 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154512', 'tblTempUsageDetail_20' ) start [2025-01-02 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154512', 'tblTempUsageDetail_20' ) end [2025-01-02 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:21:21] Production.INFO: ==6719== Releasing lock... [2025-01-02 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:22:05 [end_date_ymd] => 2025-01-02 00:22:05 [RateCDR] => 1 ) [2025-01-02 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:22:05' and `end` < '2025-01-02 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:22:18] Production.INFO: count ==200 [2025-01-02 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:22:05 - End Time 2025-01-02 00:22:05 [2025-01-02 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154517', 'tblTempUsageDetail_20' ) start [2025-01-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154517', 'tblTempUsageDetail_20' ) end [2025-01-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154517', 'tblTempVendorCDR_20' ) start [2025-01-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154517', 'tblTempVendorCDR_20' ) end [2025-01-02 00:22:18] Production.INFO: ProcessCDR(1,14154517,1,1,2) [2025-01-02 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154517', 'tblTempUsageDetail_20' ) start [2025-01-02 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154517', 'tblTempUsageDetail_20' ) end [2025-01-02 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:22:21] Production.INFO: ==6790== Releasing lock... [2025-01-02 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:23:04 [end_date_ymd] => 2025-01-02 00:23:04 [RateCDR] => 1 ) [2025-01-02 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:23:04' and `end` < '2025-01-02 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:23:17] Production.INFO: count ==197 [2025-01-02 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:23:04 - End Time 2025-01-02 00:23:04 [2025-01-02 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154522', 'tblTempUsageDetail_20' ) start [2025-01-02 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154522', 'tblTempUsageDetail_20' ) end [2025-01-02 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154522', 'tblTempVendorCDR_20' ) start [2025-01-02 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154522', 'tblTempVendorCDR_20' ) end [2025-01-02 00:23:17] Production.INFO: ProcessCDR(1,14154522,1,1,2) [2025-01-02 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154522', 'tblTempUsageDetail_20' ) start [2025-01-02 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154522', 'tblTempUsageDetail_20' ) end [2025-01-02 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:23:20] Production.INFO: ==6862== Releasing lock... [2025-01-02 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:23:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:24:05 [end_date_ymd] => 2025-01-02 00:24:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:24:05' and `end` < '2025-01-02 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-01-02 00:24:18] Production.INFO: count ==197 [2025-01-02 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:24:05 - End Time 2025-01-02 00:24:05 [2025-01-02 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154527', 'tblTempUsageDetail_20' ) start [2025-01-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154527', 'tblTempUsageDetail_20' ) end [2025-01-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154527', 'tblTempVendorCDR_20' ) start [2025-01-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154527', 'tblTempVendorCDR_20' ) end [2025-01-02 00:24:18] Production.INFO: ProcessCDR(1,14154527,1,1,2) [2025-01-02 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154527', 'tblTempUsageDetail_20' ) start [2025-01-02 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154527', 'tblTempUsageDetail_20' ) end [2025-01-02 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:24:21] Production.INFO: ==6934== Releasing lock... [2025-01-02 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:25:05 [end_date_ymd] => 2025-01-02 00:25:05 [RateCDR] => 1 ) [2025-01-02 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:25:05' and `end` < '2025-01-02 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:25:18] Production.INFO: count ==200 [2025-01-02 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:25:05 - End Time 2025-01-02 00:25:05 [2025-01-02 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154532', 'tblTempUsageDetail_20' ) start [2025-01-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154532', 'tblTempUsageDetail_20' ) end [2025-01-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154532', 'tblTempVendorCDR_20' ) start [2025-01-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154532', 'tblTempVendorCDR_20' ) end [2025-01-02 00:25:18] Production.INFO: ProcessCDR(1,14154532,1,1,2) [2025-01-02 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154532', 'tblTempUsageDetail_20' ) start [2025-01-02 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154532', 'tblTempUsageDetail_20' ) end [2025-01-02 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:25:21] Production.INFO: ==7008== Releasing lock... [2025-01-02 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:26:05 [end_date_ymd] => 2025-01-02 00:26:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:26:05' and `end` < '2025-01-02 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-01-02 00:26:17] Production.INFO: count ==201 [2025-01-02 00:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:26:05 - End Time 2025-01-02 00:26:05 [2025-01-02 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154537', 'tblTempUsageDetail_20' ) start [2025-01-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154537', 'tblTempUsageDetail_20' ) end [2025-01-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154537', 'tblTempVendorCDR_20' ) start [2025-01-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154537', 'tblTempVendorCDR_20' ) end [2025-01-02 00:26:17] Production.INFO: ProcessCDR(1,14154537,1,1,2) [2025-01-02 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154537', 'tblTempUsageDetail_20' ) start [2025-01-02 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154537', 'tblTempUsageDetail_20' ) end [2025-01-02 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:26:22] Production.INFO: ==7079== Releasing lock... [2025-01-02 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:27:05 [end_date_ymd] => 2025-01-02 00:27:05 [RateCDR] => 1 ) [2025-01-02 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:27:05' and `end` < '2025-01-02 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:27:18] Production.INFO: count ==201 [2025-01-02 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:27:05 - End Time 2025-01-02 00:27:05 [2025-01-02 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154542', 'tblTempUsageDetail_20' ) start [2025-01-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154542', 'tblTempUsageDetail_20' ) end [2025-01-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154542', 'tblTempVendorCDR_20' ) start [2025-01-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154542', 'tblTempVendorCDR_20' ) end [2025-01-02 00:27:18] Production.INFO: ProcessCDR(1,14154542,1,1,2) [2025-01-02 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154542', 'tblTempUsageDetail_20' ) start [2025-01-02 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154542', 'tblTempUsageDetail_20' ) end [2025-01-02 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:27:21] Production.INFO: ==7151== Releasing lock... [2025-01-02 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:28:04 [end_date_ymd] => 2025-01-02 00:28:04 [RateCDR] => 1 ) [2025-01-02 00:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:28:04' and `end` < '2025-01-02 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:28:17] Production.INFO: count ==201 [2025-01-02 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:28:04 - End Time 2025-01-02 00:28:04 [2025-01-02 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154547', 'tblTempUsageDetail_20' ) start [2025-01-02 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154547', 'tblTempUsageDetail_20' ) end [2025-01-02 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154547', 'tblTempVendorCDR_20' ) start [2025-01-02 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154547', 'tblTempVendorCDR_20' ) end [2025-01-02 00:28:17] Production.INFO: ProcessCDR(1,14154547,1,1,2) [2025-01-02 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154547', 'tblTempUsageDetail_20' ) start [2025-01-02 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154547', 'tblTempUsageDetail_20' ) end [2025-01-02 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:28:20] Production.INFO: ==7224== Releasing lock... [2025-01-02 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:29:05 [end_date_ymd] => 2025-01-02 00:29:05 [RateCDR] => 1 ) [2025-01-02 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:29:05' and `end` < '2025-01-02 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:29:18] Production.INFO: count ==202 [2025-01-02 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:29:05 - End Time 2025-01-02 00:29:05 [2025-01-02 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154552', 'tblTempUsageDetail_20' ) start [2025-01-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154552', 'tblTempUsageDetail_20' ) end [2025-01-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154552', 'tblTempVendorCDR_20' ) start [2025-01-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154552', 'tblTempVendorCDR_20' ) end [2025-01-02 00:29:18] Production.INFO: ProcessCDR(1,14154552,1,1,2) [2025-01-02 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154552', 'tblTempUsageDetail_20' ) start [2025-01-02 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154552', 'tblTempUsageDetail_20' ) end [2025-01-02 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:29:22] Production.INFO: ==7334== Releasing lock... [2025-01-02 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:30:06 [end_date_ymd] => 2025-01-02 00:30:06 [RateCDR] => 1 ) [2025-01-02 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:30:06' and `end` < '2025-01-02 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:30:18] Production.INFO: count ==206 [2025-01-02 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:30:06 - End Time 2025-01-02 00:30:06 [2025-01-02 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154558', 'tblTempUsageDetail_20' ) start [2025-01-02 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154558', 'tblTempUsageDetail_20' ) end [2025-01-02 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154558', 'tblTempVendorCDR_20' ) start [2025-01-02 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154558', 'tblTempVendorCDR_20' ) end [2025-01-02 00:30:18] Production.INFO: ProcessCDR(1,14154558,1,1,2) [2025-01-02 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154558', 'tblTempUsageDetail_20' ) start [2025-01-02 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154558', 'tblTempUsageDetail_20' ) end [2025-01-02 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:30:21] Production.INFO: ==7409== Releasing lock... [2025-01-02 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:31:05 [end_date_ymd] => 2025-01-02 00:31:05 [RateCDR] => 1 ) [2025-01-02 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:31:05' and `end` < '2025-01-02 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:31:17] Production.INFO: count ==206 [2025-01-02 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:31:05 - End Time 2025-01-02 00:31:05 [2025-01-02 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154563', 'tblTempUsageDetail_20' ) start [2025-01-02 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154563', 'tblTempUsageDetail_20' ) end [2025-01-02 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154563', 'tblTempVendorCDR_20' ) start [2025-01-02 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154563', 'tblTempVendorCDR_20' ) end [2025-01-02 00:31:17] Production.INFO: ProcessCDR(1,14154563,1,1,2) [2025-01-02 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154563', 'tblTempUsageDetail_20' ) start [2025-01-02 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154563', 'tblTempUsageDetail_20' ) end [2025-01-02 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:31:20] Production.INFO: ==7484== Releasing lock... [2025-01-02 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:31:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:32:05 [end_date_ymd] => 2025-01-02 00:32:05 [RateCDR] => 1 ) [2025-01-02 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:32:05' and `end` < '2025-01-02 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:32:18] Production.INFO: count ==206 [2025-01-02 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:32:05 - End Time 2025-01-02 00:32:05 [2025-01-02 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154568', 'tblTempUsageDetail_20' ) start [2025-01-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154568', 'tblTempUsageDetail_20' ) end [2025-01-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154568', 'tblTempVendorCDR_20' ) start [2025-01-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154568', 'tblTempVendorCDR_20' ) end [2025-01-02 00:32:18] Production.INFO: ProcessCDR(1,14154568,1,1,2) [2025-01-02 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154568', 'tblTempUsageDetail_20' ) start [2025-01-02 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154568', 'tblTempUsageDetail_20' ) end [2025-01-02 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:32:21] Production.INFO: ==7556== Releasing lock... [2025-01-02 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:33:04 [end_date_ymd] => 2025-01-02 00:33:04 [RateCDR] => 1 ) [2025-01-02 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:33:04' and `end` < '2025-01-02 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:33:17] Production.INFO: count ==205 [2025-01-02 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:33:04 - End Time 2025-01-02 00:33:04 [2025-01-02 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154573', 'tblTempUsageDetail_20' ) start [2025-01-02 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154573', 'tblTempUsageDetail_20' ) end [2025-01-02 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154573', 'tblTempVendorCDR_20' ) start [2025-01-02 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154573', 'tblTempVendorCDR_20' ) end [2025-01-02 00:33:17] Production.INFO: ProcessCDR(1,14154573,1,1,2) [2025-01-02 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154573', 'tblTempUsageDetail_20' ) start [2025-01-02 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154573', 'tblTempUsageDetail_20' ) end [2025-01-02 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:33:20] Production.INFO: ==7625== Releasing lock... [2025-01-02 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:34:05 [end_date_ymd] => 2025-01-02 00:34:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:34:05' and `end` < '2025-01-02 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-01-02 00:34:18] Production.INFO: count ==207 [2025-01-02 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:34:05 - End Time 2025-01-02 00:34:05 [2025-01-02 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154578', 'tblTempUsageDetail_20' ) start [2025-01-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154578', 'tblTempUsageDetail_20' ) end [2025-01-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154578', 'tblTempVendorCDR_20' ) start [2025-01-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154578', 'tblTempVendorCDR_20' ) end [2025-01-02 00:34:18] Production.INFO: ProcessCDR(1,14154578,1,1,2) [2025-01-02 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154578', 'tblTempUsageDetail_20' ) start [2025-01-02 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154578', 'tblTempUsageDetail_20' ) end [2025-01-02 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:34:22] Production.INFO: ==7700== Releasing lock... [2025-01-02 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:35:05 [end_date_ymd] => 2025-01-02 00:35:05 [RateCDR] => 1 ) [2025-01-02 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:35:05' and `end` < '2025-01-02 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:35:18] Production.INFO: count ==208 [2025-01-02 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:35:05 - End Time 2025-01-02 00:35:05 [2025-01-02 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154583', 'tblTempUsageDetail_20' ) start [2025-01-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154583', 'tblTempUsageDetail_20' ) end [2025-01-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154583', 'tblTempVendorCDR_20' ) start [2025-01-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154583', 'tblTempVendorCDR_20' ) end [2025-01-02 00:35:18] Production.INFO: ProcessCDR(1,14154583,1,1,2) [2025-01-02 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154583', 'tblTempUsageDetail_20' ) start [2025-01-02 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154583', 'tblTempUsageDetail_20' ) end [2025-01-02 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:35:22] Production.INFO: ==7770== Releasing lock... [2025-01-02 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:35:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:36:05 [end_date_ymd] => 2025-01-02 00:36:05 [RateCDR] => 1 ) [2025-01-02 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:36:05' and `end` < '2025-01-02 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:36:18] Production.INFO: count ==205 [2025-01-02 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:36:05 - End Time 2025-01-02 00:36:05 [2025-01-02 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154588', 'tblTempUsageDetail_20' ) start [2025-01-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154588', 'tblTempUsageDetail_20' ) end [2025-01-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154588', 'tblTempVendorCDR_20' ) start [2025-01-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154588', 'tblTempVendorCDR_20' ) end [2025-01-02 00:36:19] Production.INFO: ProcessCDR(1,14154588,1,1,2) [2025-01-02 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154588', 'tblTempUsageDetail_20' ) start [2025-01-02 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154588', 'tblTempUsageDetail_20' ) end [2025-01-02 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:36:22] Production.INFO: ==7841== Releasing lock... [2025-01-02 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:37:05 [end_date_ymd] => 2025-01-02 00:37:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:37:05' and `end` < '2025-01-02 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-01-02 00:37:18] Production.INFO: count ==204 [2025-01-02 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:37:05 - End Time 2025-01-02 00:37:05 [2025-01-02 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154593', 'tblTempUsageDetail_20' ) start [2025-01-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154593', 'tblTempUsageDetail_20' ) end [2025-01-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154593', 'tblTempVendorCDR_20' ) start [2025-01-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154593', 'tblTempVendorCDR_20' ) end [2025-01-02 00:37:18] Production.INFO: ProcessCDR(1,14154593,1,1,2) [2025-01-02 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154593', 'tblTempUsageDetail_20' ) start [2025-01-02 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154593', 'tblTempUsageDetail_20' ) end [2025-01-02 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:37:22] Production.INFO: ==7916== Releasing lock... [2025-01-02 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:38:05 [end_date_ymd] => 2025-01-02 00:38:05 [RateCDR] => 1 ) [2025-01-02 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:38:05' and `end` < '2025-01-02 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:38:18] Production.INFO: count ==204 [2025-01-02 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:38:05 - End Time 2025-01-02 00:38:05 [2025-01-02 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154598', 'tblTempUsageDetail_20' ) start [2025-01-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154598', 'tblTempUsageDetail_20' ) end [2025-01-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154598', 'tblTempVendorCDR_20' ) start [2025-01-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154598', 'tblTempVendorCDR_20' ) end [2025-01-02 00:38:18] Production.INFO: ProcessCDR(1,14154598,1,1,2) [2025-01-02 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154598', 'tblTempUsageDetail_20' ) start [2025-01-02 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154598', 'tblTempUsageDetail_20' ) end [2025-01-02 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:38:21] Production.INFO: ==7986== Releasing lock... [2025-01-02 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:39:06 [end_date_ymd] => 2025-01-02 00:39:06 [RateCDR] => 1 ) [2025-01-02 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:39:06' and `end` < '2025-01-02 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:39:19] Production.INFO: count ==204 [2025-01-02 00:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 21:39:06 - End Time 2025-01-02 00:39:06 [2025-01-02 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154603', 'tblTempUsageDetail_20' ) start [2025-01-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154603', 'tblTempUsageDetail_20' ) end [2025-01-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154603', 'tblTempVendorCDR_20' ) start [2025-01-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154603', 'tblTempVendorCDR_20' ) end [2025-01-02 00:39:19] Production.INFO: ProcessCDR(1,14154603,1,1,2) [2025-01-02 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154603', 'tblTempUsageDetail_20' ) start [2025-01-02 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154603', 'tblTempUsageDetail_20' ) end [2025-01-02 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:39:24] Production.INFO: ==8060== Releasing lock... [2025-01-02 00:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:39:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:40:06 [end_date_ymd] => 2025-01-02 00:40:06 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:40:06' and `end` < '2025-01-02 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-01-02 00:40:18] Production.INFO: count ==212 [2025-01-02 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:40:06 - End Time 2025-01-02 00:40:06 [2025-01-02 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154609', 'tblTempUsageDetail_20' ) start [2025-01-02 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154609', 'tblTempUsageDetail_20' ) end [2025-01-02 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154609', 'tblTempVendorCDR_20' ) start [2025-01-02 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154609', 'tblTempVendorCDR_20' ) end [2025-01-02 00:40:18] Production.INFO: ProcessCDR(1,14154609,1,1,2) [2025-01-02 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154609', 'tblTempUsageDetail_20' ) start [2025-01-02 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154609', 'tblTempUsageDetail_20' ) end [2025-01-02 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:40:21] Production.INFO: ==8133== Releasing lock... [2025-01-02 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:41:06 [end_date_ymd] => 2025-01-02 00:41:06 [RateCDR] => 1 ) [2025-01-02 00: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-01-01 21:41:06' and `end` < '2025-01-02 00: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-01-02 00:41:19] Production.INFO: count ==235 [2025-01-02 00:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 21:41:06 - End Time 2025-01-02 00:41:06 [2025-01-02 00:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154614', 'tblTempUsageDetail_20' ) start [2025-01-02 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154614', 'tblTempUsageDetail_20' ) end [2025-01-02 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154614', 'tblTempVendorCDR_20' ) start [2025-01-02 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154614', 'tblTempVendorCDR_20' ) end [2025-01-02 00:41:19] Production.INFO: ProcessCDR(1,14154614,1,1,2) [2025-01-02 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154614', 'tblTempUsageDetail_20' ) start [2025-01-02 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154614', 'tblTempUsageDetail_20' ) end [2025-01-02 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:41:22] Production.INFO: ==8209== Releasing lock... [2025-01-02 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:42:05 [end_date_ymd] => 2025-01-02 00:42:05 [RateCDR] => 1 ) [2025-01-02 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:42:05' and `end` < '2025-01-02 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:42:18] Production.INFO: count ==235 [2025-01-02 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:42:05 - End Time 2025-01-02 00:42:05 [2025-01-02 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154619', 'tblTempUsageDetail_20' ) start [2025-01-02 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154619', 'tblTempUsageDetail_20' ) end [2025-01-02 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154619', 'tblTempVendorCDR_20' ) start [2025-01-02 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154619', 'tblTempVendorCDR_20' ) end [2025-01-02 00:42:18] Production.INFO: ProcessCDR(1,14154619,1,1,2) [2025-01-02 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154619', 'tblTempUsageDetail_20' ) start [2025-01-02 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154619', 'tblTempUsageDetail_20' ) end [2025-01-02 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:42:21] Production.INFO: ==8284== Releasing lock... [2025-01-02 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:43:05 [end_date_ymd] => 2025-01-02 00:43:05 [RateCDR] => 1 ) [2025-01-02 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:43:05' and `end` < '2025-01-02 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:43:18] Production.INFO: count ==235 [2025-01-02 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:43:05 - End Time 2025-01-02 00:43:05 [2025-01-02 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154624', 'tblTempUsageDetail_20' ) start [2025-01-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154624', 'tblTempUsageDetail_20' ) end [2025-01-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154624', 'tblTempVendorCDR_20' ) start [2025-01-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154624', 'tblTempVendorCDR_20' ) end [2025-01-02 00:43:18] Production.INFO: ProcessCDR(1,14154624,1,1,2) [2025-01-02 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154624', 'tblTempUsageDetail_20' ) start [2025-01-02 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154624', 'tblTempUsageDetail_20' ) end [2025-01-02 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:43:21] Production.INFO: ==8355== Releasing lock... [2025-01-02 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:44:05 [end_date_ymd] => 2025-01-02 00:44:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:44:05' and `end` < '2025-01-02 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-01-02 00:44:18] Production.INFO: count ==234 [2025-01-02 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:44:05 - End Time 2025-01-02 00:44:05 [2025-01-02 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154629', 'tblTempUsageDetail_20' ) start [2025-01-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154629', 'tblTempUsageDetail_20' ) end [2025-01-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154629', 'tblTempVendorCDR_20' ) start [2025-01-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154629', 'tblTempVendorCDR_20' ) end [2025-01-02 00:44:18] Production.INFO: ProcessCDR(1,14154629,1,1,2) [2025-01-02 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154629', 'tblTempUsageDetail_20' ) start [2025-01-02 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154629', 'tblTempUsageDetail_20' ) end [2025-01-02 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:44:21] Production.INFO: ==8475== Releasing lock... [2025-01-02 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:44:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:45:05 [end_date_ymd] => 2025-01-02 00:45:05 [RateCDR] => 1 ) [2025-01-02 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:45:05' and `end` < '2025-01-02 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:45:18] Production.INFO: count ==232 [2025-01-02 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:45:05 - End Time 2025-01-02 00:45:05 [2025-01-02 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154634', 'tblTempUsageDetail_20' ) start [2025-01-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154634', 'tblTempUsageDetail_20' ) end [2025-01-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154634', 'tblTempVendorCDR_20' ) start [2025-01-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154634', 'tblTempVendorCDR_20' ) end [2025-01-02 00:45:18] Production.INFO: ProcessCDR(1,14154634,1,1,2) [2025-01-02 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154634', 'tblTempUsageDetail_20' ) start [2025-01-02 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154634', 'tblTempUsageDetail_20' ) end [2025-01-02 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:45:21] Production.INFO: ==8551== Releasing lock... [2025-01-02 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:45:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:46:05 [end_date_ymd] => 2025-01-02 00:46:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:46:05' and `end` < '2025-01-02 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-01-02 00:46:18] Production.INFO: count ==230 [2025-01-02 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:46:05 - End Time 2025-01-02 00:46:05 [2025-01-02 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154639', 'tblTempUsageDetail_20' ) start [2025-01-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154639', 'tblTempUsageDetail_20' ) end [2025-01-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154639', 'tblTempVendorCDR_20' ) start [2025-01-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154639', 'tblTempVendorCDR_20' ) end [2025-01-02 00:46:18] Production.INFO: ProcessCDR(1,14154639,1,1,2) [2025-01-02 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154639', 'tblTempUsageDetail_20' ) start [2025-01-02 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154639', 'tblTempUsageDetail_20' ) end [2025-01-02 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:46:21] Production.INFO: ==8629== Releasing lock... [2025-01-02 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:47:04 [end_date_ymd] => 2025-01-02 00:47:04 [RateCDR] => 1 ) [2025-01-02 00:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:47:04' and `end` < '2025-01-02 00:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:47:18] Production.INFO: count ==234 [2025-01-02 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:47:04 - End Time 2025-01-02 00:47:04 [2025-01-02 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154644', 'tblTempUsageDetail_20' ) start [2025-01-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154644', 'tblTempUsageDetail_20' ) end [2025-01-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154644', 'tblTempVendorCDR_20' ) start [2025-01-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154644', 'tblTempVendorCDR_20' ) end [2025-01-02 00:47:18] Production.INFO: ProcessCDR(1,14154644,1,1,2) [2025-01-02 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154644', 'tblTempUsageDetail_20' ) start [2025-01-02 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154644', 'tblTempUsageDetail_20' ) end [2025-01-02 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:47:21] Production.INFO: ==8709== Releasing lock... [2025-01-02 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:47:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:48:05 [end_date_ymd] => 2025-01-02 00:48:05 [RateCDR] => 1 ) [2025-01-02 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:48:05' and `end` < '2025-01-02 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:48:19] Production.INFO: count ==230 [2025-01-02 00:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 21:48:05 - End Time 2025-01-02 00:48:05 [2025-01-02 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154649', 'tblTempUsageDetail_20' ) start [2025-01-02 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154649', 'tblTempUsageDetail_20' ) end [2025-01-02 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154649', 'tblTempVendorCDR_20' ) start [2025-01-02 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154649', 'tblTempVendorCDR_20' ) end [2025-01-02 00:48:19] Production.INFO: ProcessCDR(1,14154649,1,1,2) [2025-01-02 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154649', 'tblTempUsageDetail_20' ) start [2025-01-02 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154649', 'tblTempUsageDetail_20' ) end [2025-01-02 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:48:22] Production.INFO: ==8785== Releasing lock... [2025-01-02 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:49:05 [end_date_ymd] => 2025-01-02 00:49:05 [RateCDR] => 1 ) [2025-01-02 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:49:05' and `end` < '2025-01-02 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-01-02 00:49:17] Production.INFO: count ==230 [2025-01-02 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:49:05 - End Time 2025-01-02 00:49:05 [2025-01-02 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154654', 'tblTempUsageDetail_20' ) start [2025-01-02 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154654', 'tblTempUsageDetail_20' ) end [2025-01-02 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154654', 'tblTempVendorCDR_20' ) start [2025-01-02 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154654', 'tblTempVendorCDR_20' ) end [2025-01-02 00:49:17] Production.INFO: ProcessCDR(1,14154654,1,1,2) [2025-01-02 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154654', 'tblTempUsageDetail_20' ) start [2025-01-02 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154654', 'tblTempUsageDetail_20' ) end [2025-01-02 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:49:20] Production.INFO: ==8862== Releasing lock... [2025-01-02 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:49:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:50:06 [end_date_ymd] => 2025-01-02 00:50:06 [RateCDR] => 1 ) [2025-01-02 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:50:06' and `end` < '2025-01-02 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:50:18] Production.INFO: count ==244 [2025-01-02 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:50:06 - End Time 2025-01-02 00:50:06 [2025-01-02 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154659', 'tblTempUsageDetail_20' ) start [2025-01-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154659', 'tblTempUsageDetail_20' ) end [2025-01-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154659', 'tblTempVendorCDR_20' ) start [2025-01-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154659', 'tblTempVendorCDR_20' ) end [2025-01-02 00:50:18] Production.INFO: ProcessCDR(1,14154659,1,1,2) [2025-01-02 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154659', 'tblTempUsageDetail_20' ) start [2025-01-02 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154659', 'tblTempUsageDetail_20' ) end [2025-01-02 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:50:21] Production.INFO: ==8949== Releasing lock... [2025-01-02 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:51:04 [end_date_ymd] => 2025-01-02 00:51:04 [RateCDR] => 1 ) [2025-01-02 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:51:04' and `end` < '2025-01-02 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:51:18] Production.INFO: count ==250 [2025-01-02 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:51:04 - End Time 2025-01-02 00:51:04 [2025-01-02 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154665', 'tblTempUsageDetail_20' ) start [2025-01-02 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154665', 'tblTempUsageDetail_20' ) end [2025-01-02 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154665', 'tblTempVendorCDR_20' ) start [2025-01-02 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154665', 'tblTempVendorCDR_20' ) end [2025-01-02 00:51:18] Production.INFO: ProcessCDR(1,14154665,1,1,2) [2025-01-02 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154665', 'tblTempUsageDetail_20' ) start [2025-01-02 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154665', 'tblTempUsageDetail_20' ) end [2025-01-02 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:51:21] Production.INFO: ==9026== Releasing lock... [2025-01-02 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:52:04 [end_date_ymd] => 2025-01-02 00:52:04 [RateCDR] => 1 ) [2025-01-02 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:52:04' and `end` < '2025-01-02 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:52:18] Production.INFO: count ==250 [2025-01-02 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:52:04 - End Time 2025-01-02 00:52:04 [2025-01-02 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154670', 'tblTempUsageDetail_20' ) start [2025-01-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154670', 'tblTempUsageDetail_20' ) end [2025-01-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154670', 'tblTempVendorCDR_20' ) start [2025-01-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154670', 'tblTempVendorCDR_20' ) end [2025-01-02 00:52:18] Production.INFO: ProcessCDR(1,14154670,1,1,2) [2025-01-02 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154670', 'tblTempUsageDetail_20' ) start [2025-01-02 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154670', 'tblTempUsageDetail_20' ) end [2025-01-02 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:52:21] Production.INFO: ==9102== Releasing lock... [2025-01-02 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:53:05 [end_date_ymd] => 2025-01-02 00:53:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:53:05' and `end` < '2025-01-02 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-01-02 00:53:18] Production.INFO: count ==250 [2025-01-02 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:53:05 - End Time 2025-01-02 00:53:05 [2025-01-02 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154675', 'tblTempUsageDetail_20' ) start [2025-01-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154675', 'tblTempUsageDetail_20' ) end [2025-01-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154675', 'tblTempVendorCDR_20' ) start [2025-01-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154675', 'tblTempVendorCDR_20' ) end [2025-01-02 00:53:18] Production.INFO: ProcessCDR(1,14154675,1,1,2) [2025-01-02 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154675', 'tblTempUsageDetail_20' ) start [2025-01-02 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154675', 'tblTempUsageDetail_20' ) end [2025-01-02 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:53:21] Production.INFO: ==9178== Releasing lock... [2025-01-02 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:54:05 [end_date_ymd] => 2025-01-02 00:54:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:54:05' and `end` < '2025-01-02 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-01-02 00:54:19] Production.INFO: count ==253 [2025-01-02 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 21:54:05 - End Time 2025-01-02 00:54:05 [2025-01-02 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154680', 'tblTempUsageDetail_20' ) start [2025-01-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154680', 'tblTempUsageDetail_20' ) end [2025-01-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154680', 'tblTempVendorCDR_20' ) start [2025-01-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154680', 'tblTempVendorCDR_20' ) end [2025-01-02 00:54:19] Production.INFO: ProcessCDR(1,14154680,1,1,2) [2025-01-02 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154680', 'tblTempUsageDetail_20' ) start [2025-01-02 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154680', 'tblTempUsageDetail_20' ) end [2025-01-02 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:54:22] Production.INFO: ==9257== Releasing lock... [2025-01-02 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:55:05 [end_date_ymd] => 2025-01-02 00:55:05 [RateCDR] => 1 ) [2025-01-02 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:55:05' and `end` < '2025-01-02 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:55:18] Production.INFO: count ==251 [2025-01-02 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:55:05 - End Time 2025-01-02 00:55:05 [2025-01-02 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154685', 'tblTempUsageDetail_20' ) start [2025-01-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154685', 'tblTempUsageDetail_20' ) end [2025-01-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154685', 'tblTempVendorCDR_20' ) start [2025-01-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154685', 'tblTempVendorCDR_20' ) end [2025-01-02 00:55:18] Production.INFO: ProcessCDR(1,14154685,1,1,2) [2025-01-02 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154685', 'tblTempUsageDetail_20' ) start [2025-01-02 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154685', 'tblTempUsageDetail_20' ) end [2025-01-02 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:55:21] Production.INFO: ==9337== Releasing lock... [2025-01-02 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:56:05 [end_date_ymd] => 2025-01-02 00:56:05 [RateCDR] => 1 ) [2025-01-02 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:56:05' and `end` < '2025-01-02 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:56:17] Production.INFO: count ==249 [2025-01-02 00:56:17] Production.ERROR: pbx CDR StartTime 2025-01-01 21:56:05 - End Time 2025-01-02 00:56:05 [2025-01-02 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154690', 'tblTempUsageDetail_20' ) start [2025-01-02 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154690', 'tblTempUsageDetail_20' ) end [2025-01-02 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154690', 'tblTempVendorCDR_20' ) start [2025-01-02 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154690', 'tblTempVendorCDR_20' ) end [2025-01-02 00:56:17] Production.INFO: ProcessCDR(1,14154690,1,1,2) [2025-01-02 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154690', 'tblTempUsageDetail_20' ) start [2025-01-02 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154690', 'tblTempUsageDetail_20' ) end [2025-01-02 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:56:20] Production.INFO: ==9419== Releasing lock... [2025-01-02 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:56:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:57:05 [end_date_ymd] => 2025-01-02 00:57:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:57:05' and `end` < '2025-01-02 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-01-02 00:57:18] Production.INFO: count ==248 [2025-01-02 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:57:05 - End Time 2025-01-02 00:57:05 [2025-01-02 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154695', 'tblTempUsageDetail_20' ) start [2025-01-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154695', 'tblTempUsageDetail_20' ) end [2025-01-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154695', 'tblTempVendorCDR_20' ) start [2025-01-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154695', 'tblTempVendorCDR_20' ) end [2025-01-02 00:57:18] Production.INFO: ProcessCDR(1,14154695,1,1,2) [2025-01-02 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154695', 'tblTempUsageDetail_20' ) start [2025-01-02 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154695', 'tblTempUsageDetail_20' ) end [2025-01-02 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:57:21] Production.INFO: ==9501== Releasing lock... [2025-01-02 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:58:04 [end_date_ymd] => 2025-01-02 00:58:04 [RateCDR] => 1 ) [2025-01-02 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-01-01 21:58:04' and `end` < '2025-01-02 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-01-02 00:58:18] Production.INFO: count ==248 [2025-01-02 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:58:04 - End Time 2025-01-02 00:58:04 [2025-01-02 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154700', 'tblTempUsageDetail_20' ) start [2025-01-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154700', 'tblTempUsageDetail_20' ) end [2025-01-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154700', 'tblTempVendorCDR_20' ) start [2025-01-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154700', 'tblTempVendorCDR_20' ) end [2025-01-02 00:58:18] Production.INFO: ProcessCDR(1,14154700,1,1,2) [2025-01-02 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154700', 'tblTempUsageDetail_20' ) start [2025-01-02 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154700', 'tblTempUsageDetail_20' ) end [2025-01-02 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:58:21] Production.INFO: ==9577== Releasing lock... [2025-01-02 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 21:59:05 [end_date_ymd] => 2025-01-02 00:59:05 [RateCDR] => 1 ) [2025-01-02 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 21:59:05' and `end` < '2025-01-02 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 00:59:18] Production.INFO: count ==244 [2025-01-02 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 21:59:05 - End Time 2025-01-02 00:59:05 [2025-01-02 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154705', 'tblTempUsageDetail_20' ) start [2025-01-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154705', 'tblTempUsageDetail_20' ) end [2025-01-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154705', 'tblTempVendorCDR_20' ) start [2025-01-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154705', 'tblTempVendorCDR_20' ) end [2025-01-02 00:59:18] Production.INFO: ProcessCDR(1,14154705,1,1,2) [2025-01-02 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154705', 'tblTempUsageDetail_20' ) start [2025-01-02 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154705', 'tblTempUsageDetail_20' ) end [2025-01-02 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 00:59:21] Production.INFO: ==9661== Releasing lock... [2025-01-02 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 00:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:00:06 [end_date_ymd] => 2025-01-02 01:00:06 [RateCDR] => 1 ) [2025-01-02 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:00:06' and `end` < '2025-01-02 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:00:18] Production.INFO: count ==253 [2025-01-02 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:00:06 - End Time 2025-01-02 01:00:06 [2025-01-02 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154711', 'tblTempUsageDetail_20' ) start [2025-01-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154711', 'tblTempUsageDetail_20' ) end [2025-01-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154711', 'tblTempVendorCDR_20' ) start [2025-01-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154711', 'tblTempVendorCDR_20' ) end [2025-01-02 01:00:19] Production.INFO: ProcessCDR(1,14154711,1,1,2) [2025-01-02 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154711', 'tblTempUsageDetail_20' ) start [2025-01-02 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154711', 'tblTempUsageDetail_20' ) end [2025-01-02 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:00:23] Production.INFO: ==9780== Releasing lock... [2025-01-02 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:00:23] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:01:05 [end_date_ymd] => 2025-01-02 01:01:05 [RateCDR] => 1 ) [2025-01-02 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:01:05' and `end` < '2025-01-02 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:01:18] Production.INFO: count ==274 [2025-01-02 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:01:05 - End Time 2025-01-02 01:01:05 [2025-01-02 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154716', 'tblTempUsageDetail_20' ) start [2025-01-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154716', 'tblTempUsageDetail_20' ) end [2025-01-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154716', 'tblTempVendorCDR_20' ) start [2025-01-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154716', 'tblTempVendorCDR_20' ) end [2025-01-02 01:01:18] Production.INFO: ProcessCDR(1,14154716,1,1,2) [2025-01-02 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154716', 'tblTempUsageDetail_20' ) start [2025-01-02 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154716', 'tblTempUsageDetail_20' ) end [2025-01-02 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:01:21] Production.INFO: ==9877== Releasing lock... [2025-01-02 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:02:05 [end_date_ymd] => 2025-01-02 01:02:05 [RateCDR] => 1 ) [2025-01-02 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:02:05' and `end` < '2025-01-02 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:02:19] Production.INFO: count ==274 [2025-01-02 01:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:02:05 - End Time 2025-01-02 01:02:05 [2025-01-02 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154721', 'tblTempUsageDetail_20' ) start [2025-01-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154721', 'tblTempUsageDetail_20' ) end [2025-01-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154721', 'tblTempVendorCDR_20' ) start [2025-01-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154721', 'tblTempVendorCDR_20' ) end [2025-01-02 01:02:19] Production.INFO: ProcessCDR(1,14154721,1,1,2) [2025-01-02 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154721', 'tblTempUsageDetail_20' ) start [2025-01-02 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154721', 'tblTempUsageDetail_20' ) end [2025-01-02 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:02:22] Production.INFO: ==9965== Releasing lock... [2025-01-02 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:03:04 [end_date_ymd] => 2025-01-02 01:03:04 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:03:04' and `end` < '2025-01-02 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-01-02 01:03:17] Production.INFO: count ==274 [2025-01-02 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:03:04 - End Time 2025-01-02 01:03:04 [2025-01-02 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154726', 'tblTempUsageDetail_20' ) start [2025-01-02 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154726', 'tblTempUsageDetail_20' ) end [2025-01-02 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154726', 'tblTempVendorCDR_20' ) start [2025-01-02 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154726', 'tblTempVendorCDR_20' ) end [2025-01-02 01:03:17] Production.INFO: ProcessCDR(1,14154726,1,1,2) [2025-01-02 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154726', 'tblTempUsageDetail_20' ) start [2025-01-02 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154726', 'tblTempUsageDetail_20' ) end [2025-01-02 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:03:21] Production.INFO: ==10049== Releasing lock... [2025-01-02 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:04:05 [end_date_ymd] => 2025-01-02 01:04:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:04:05' and `end` < '2025-01-02 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-01-02 01:04:18] Production.INFO: count ==273 [2025-01-02 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:04:05 - End Time 2025-01-02 01:04:05 [2025-01-02 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154731', 'tblTempUsageDetail_20' ) start [2025-01-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154731', 'tblTempUsageDetail_20' ) end [2025-01-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154731', 'tblTempVendorCDR_20' ) start [2025-01-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154731', 'tblTempVendorCDR_20' ) end [2025-01-02 01:04:18] Production.INFO: ProcessCDR(1,14154731,1,1,2) [2025-01-02 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154731', 'tblTempUsageDetail_20' ) start [2025-01-02 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154731', 'tblTempUsageDetail_20' ) end [2025-01-02 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:04:21] Production.INFO: ==10131== Releasing lock... [2025-01-02 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:05:04 [end_date_ymd] => 2025-01-02 01:05:04 [RateCDR] => 1 ) [2025-01-02 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:05:04' and `end` < '2025-01-02 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:05:17] Production.INFO: count ==270 [2025-01-02 01:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:05:04 - End Time 2025-01-02 01:05:04 [2025-01-02 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154736', 'tblTempUsageDetail_20' ) start [2025-01-02 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154736', 'tblTempUsageDetail_20' ) end [2025-01-02 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154736', 'tblTempVendorCDR_20' ) start [2025-01-02 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154736', 'tblTempVendorCDR_20' ) end [2025-01-02 01:05:17] Production.INFO: ProcessCDR(1,14154736,1,1,2) [2025-01-02 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154736', 'tblTempUsageDetail_20' ) start [2025-01-02 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154736', 'tblTempUsageDetail_20' ) end [2025-01-02 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:05:20] Production.INFO: ==10214== Releasing lock... [2025-01-02 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:05:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:06:05 [end_date_ymd] => 2025-01-02 01:06:05 [RateCDR] => 1 ) [2025-01-02 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:06:05' and `end` < '2025-01-02 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:06:18] Production.INFO: count ==270 [2025-01-02 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:06:05 - End Time 2025-01-02 01:06:05 [2025-01-02 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154741', 'tblTempUsageDetail_20' ) start [2025-01-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154741', 'tblTempUsageDetail_20' ) end [2025-01-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154741', 'tblTempVendorCDR_20' ) start [2025-01-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154741', 'tblTempVendorCDR_20' ) end [2025-01-02 01:06:18] Production.INFO: ProcessCDR(1,14154741,1,1,2) [2025-01-02 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154741', 'tblTempUsageDetail_20' ) start [2025-01-02 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154741', 'tblTempUsageDetail_20' ) end [2025-01-02 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:06:21] Production.INFO: ==10300== Releasing lock... [2025-01-02 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:07:04 [end_date_ymd] => 2025-01-02 01:07:04 [RateCDR] => 1 ) [2025-01-02 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:07:04' and `end` < '2025-01-02 01:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:07:17] Production.INFO: count ==270 [2025-01-02 01:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:07:04 - End Time 2025-01-02 01:07:04 [2025-01-02 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154746', 'tblTempUsageDetail_20' ) start [2025-01-02 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154746', 'tblTempUsageDetail_20' ) end [2025-01-02 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154746', 'tblTempVendorCDR_20' ) start [2025-01-02 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154746', 'tblTempVendorCDR_20' ) end [2025-01-02 01:07:17] Production.INFO: ProcessCDR(1,14154746,1,1,2) [2025-01-02 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154746', 'tblTempUsageDetail_20' ) start [2025-01-02 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154746', 'tblTempUsageDetail_20' ) end [2025-01-02 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:07:20] Production.INFO: ==10380== Releasing lock... [2025-01-02 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:07:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:08:05 [end_date_ymd] => 2025-01-02 01:08:05 [RateCDR] => 1 ) [2025-01-02 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:08:05' and `end` < '2025-01-02 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:08:20] Production.INFO: count ==270 [2025-01-02 01:08:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:08:05 - End Time 2025-01-02 01:08:05 [2025-01-02 01:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154751', 'tblTempUsageDetail_20' ) start [2025-01-02 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154751', 'tblTempUsageDetail_20' ) end [2025-01-02 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154751', 'tblTempVendorCDR_20' ) start [2025-01-02 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154751', 'tblTempVendorCDR_20' ) end [2025-01-02 01:08:20] Production.INFO: ProcessCDR(1,14154751,1,1,2) [2025-01-02 01:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154751', 'tblTempUsageDetail_20' ) start [2025-01-02 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154751', 'tblTempUsageDetail_20' ) end [2025-01-02 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:08:23] Production.INFO: ==10463== Releasing lock... [2025-01-02 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:08:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:09:05 [end_date_ymd] => 2025-01-02 01:09:05 [RateCDR] => 1 ) [2025-01-02 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:09:05' and `end` < '2025-01-02 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:09:20] Production.INFO: count ==270 [2025-01-02 01:09:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:09:05 - End Time 2025-01-02 01:09:05 [2025-01-02 01:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154756', 'tblTempUsageDetail_20' ) start [2025-01-02 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154756', 'tblTempUsageDetail_20' ) end [2025-01-02 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154756', 'tblTempVendorCDR_20' ) start [2025-01-02 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154756', 'tblTempVendorCDR_20' ) end [2025-01-02 01:09:20] Production.INFO: ProcessCDR(1,14154756,1,1,2) [2025-01-02 01:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154756', 'tblTempUsageDetail_20' ) start [2025-01-02 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154756', 'tblTempUsageDetail_20' ) end [2025-01-02 01:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:09:23] Production.INFO: ==10539== Releasing lock... [2025-01-02 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:09:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:10:05 [end_date_ymd] => 2025-01-02 01:10:05 [RateCDR] => 1 ) [2025-01-02 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:10:05' and `end` < '2025-01-02 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:10:18] Production.INFO: count ==276 [2025-01-02 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:10:05 - End Time 2025-01-02 01:10:05 [2025-01-02 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154762', 'tblTempUsageDetail_20' ) start [2025-01-02 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154762', 'tblTempUsageDetail_20' ) end [2025-01-02 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154762', 'tblTempVendorCDR_20' ) start [2025-01-02 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154762', 'tblTempVendorCDR_20' ) end [2025-01-02 01:10:18] Production.INFO: ProcessCDR(1,14154762,1,1,2) [2025-01-02 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154762', 'tblTempUsageDetail_20' ) start [2025-01-02 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154762', 'tblTempUsageDetail_20' ) end [2025-01-02 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:10:21] Production.INFO: ==10612== Releasing lock... [2025-01-02 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:10:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:11:05 [end_date_ymd] => 2025-01-02 01:11:05 [RateCDR] => 1 ) [2025-01-02 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:11:05' and `end` < '2025-01-02 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:11:17] Production.INFO: count ==288 [2025-01-02 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:11:05 - End Time 2025-01-02 01:11:05 [2025-01-02 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154767', 'tblTempUsageDetail_20' ) start [2025-01-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154767', 'tblTempUsageDetail_20' ) end [2025-01-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154767', 'tblTempVendorCDR_20' ) start [2025-01-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154767', 'tblTempVendorCDR_20' ) end [2025-01-02 01:11:18] Production.INFO: ProcessCDR(1,14154767,1,1,2) [2025-01-02 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154767', 'tblTempUsageDetail_20' ) start [2025-01-02 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154767', 'tblTempUsageDetail_20' ) end [2025-01-02 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:11:21] Production.INFO: ==10685== Releasing lock... [2025-01-02 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:12:04 [end_date_ymd] => 2025-01-02 01:12:04 [RateCDR] => 1 ) [2025-01-02 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:12:04' and `end` < '2025-01-02 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:12:18] Production.INFO: count ==288 [2025-01-02 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:12:04 - End Time 2025-01-02 01:12:04 [2025-01-02 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154772', 'tblTempUsageDetail_20' ) start [2025-01-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154772', 'tblTempUsageDetail_20' ) end [2025-01-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154772', 'tblTempVendorCDR_20' ) start [2025-01-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154772', 'tblTempVendorCDR_20' ) end [2025-01-02 01:12:18] Production.INFO: ProcessCDR(1,14154772,1,1,2) [2025-01-02 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154772', 'tblTempUsageDetail_20' ) start [2025-01-02 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154772', 'tblTempUsageDetail_20' ) end [2025-01-02 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:12:21] Production.INFO: ==10757== Releasing lock... [2025-01-02 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:13:05 [end_date_ymd] => 2025-01-02 01:13:05 [RateCDR] => 1 ) [2025-01-02 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:13:05' and `end` < '2025-01-02 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:13:19] Production.INFO: count ==288 [2025-01-02 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:13:05 - End Time 2025-01-02 01:13:05 [2025-01-02 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154777', 'tblTempUsageDetail_20' ) start [2025-01-02 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154777', 'tblTempUsageDetail_20' ) end [2025-01-02 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154777', 'tblTempVendorCDR_20' ) start [2025-01-02 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154777', 'tblTempVendorCDR_20' ) end [2025-01-02 01:13:19] Production.INFO: ProcessCDR(1,14154777,1,1,2) [2025-01-02 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154777', 'tblTempUsageDetail_20' ) start [2025-01-02 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154777', 'tblTempUsageDetail_20' ) end [2025-01-02 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:13:22] Production.INFO: ==10829== Releasing lock... [2025-01-02 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:14:05 [end_date_ymd] => 2025-01-02 01:14:05 [RateCDR] => 1 ) [2025-01-02 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:14:05' and `end` < '2025-01-02 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:14:19] Production.INFO: count ==288 [2025-01-02 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:14:05 - End Time 2025-01-02 01:14:05 [2025-01-02 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154782', 'tblTempUsageDetail_20' ) start [2025-01-02 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154782', 'tblTempUsageDetail_20' ) end [2025-01-02 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154782', 'tblTempVendorCDR_20' ) start [2025-01-02 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154782', 'tblTempVendorCDR_20' ) end [2025-01-02 01:14:19] Production.INFO: ProcessCDR(1,14154782,1,1,2) [2025-01-02 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154782', 'tblTempUsageDetail_20' ) start [2025-01-02 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154782', 'tblTempUsageDetail_20' ) end [2025-01-02 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:14:22] Production.INFO: ==10900== Releasing lock... [2025-01-02 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:15:05 [end_date_ymd] => 2025-01-02 01:15:05 [RateCDR] => 1 ) [2025-01-02 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:15:05' and `end` < '2025-01-02 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:15:18] Production.INFO: count ==288 [2025-01-02 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:15:05 - End Time 2025-01-02 01:15:05 [2025-01-02 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154787', 'tblTempUsageDetail_20' ) start [2025-01-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154787', 'tblTempUsageDetail_20' ) end [2025-01-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154787', 'tblTempVendorCDR_20' ) start [2025-01-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154787', 'tblTempVendorCDR_20' ) end [2025-01-02 01:15:18] Production.INFO: ProcessCDR(1,14154787,1,1,2) [2025-01-02 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154787', 'tblTempUsageDetail_20' ) start [2025-01-02 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154787', 'tblTempUsageDetail_20' ) end [2025-01-02 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:15:21] Production.INFO: ==11013== Releasing lock... [2025-01-02 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:16:05 [end_date_ymd] => 2025-01-02 01:16:05 [RateCDR] => 1 ) [2025-01-02 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:16:05' and `end` < '2025-01-02 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:16:17] Production.INFO: count ==288 [2025-01-02 01:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:16:05 - End Time 2025-01-02 01:16:05 [2025-01-02 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154792', 'tblTempUsageDetail_20' ) start [2025-01-02 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154792', 'tblTempUsageDetail_20' ) end [2025-01-02 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154792', 'tblTempVendorCDR_20' ) start [2025-01-02 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154792', 'tblTempVendorCDR_20' ) end [2025-01-02 01:16:17] Production.INFO: ProcessCDR(1,14154792,1,1,2) [2025-01-02 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154792', 'tblTempUsageDetail_20' ) start [2025-01-02 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154792', 'tblTempUsageDetail_20' ) end [2025-01-02 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:16:22] Production.INFO: ==11085== Releasing lock... [2025-01-02 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:16:22] Production.INFO: 31 MB #Memory Used# [2025-01-02 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:17:05 [end_date_ymd] => 2025-01-02 01:17:05 [RateCDR] => 1 ) [2025-01-02 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:17:05' and `end` < '2025-01-02 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:17:20] Production.INFO: count ==288 [2025-01-02 01:17:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:17:05 - End Time 2025-01-02 01:17:05 [2025-01-02 01:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154797', 'tblTempUsageDetail_20' ) start [2025-01-02 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154797', 'tblTempUsageDetail_20' ) end [2025-01-02 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154797', 'tblTempVendorCDR_20' ) start [2025-01-02 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154797', 'tblTempVendorCDR_20' ) end [2025-01-02 01:17:20] Production.INFO: ProcessCDR(1,14154797,1,1,2) [2025-01-02 01:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154797', 'tblTempUsageDetail_20' ) start [2025-01-02 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154797', 'tblTempUsageDetail_20' ) end [2025-01-02 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:17:23] Production.INFO: ==11155== Releasing lock... [2025-01-02 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:17:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:18:05 [end_date_ymd] => 2025-01-02 01:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:18:05' and `end` < '2025-01-02 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-01-02 01:18:18] Production.INFO: count ==287 [2025-01-02 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:18:05 - End Time 2025-01-02 01:18:05 [2025-01-02 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154802', 'tblTempUsageDetail_20' ) start [2025-01-02 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154802', 'tblTempUsageDetail_20' ) end [2025-01-02 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154802', 'tblTempVendorCDR_20' ) start [2025-01-02 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154802', 'tblTempVendorCDR_20' ) end [2025-01-02 01:18:18] Production.INFO: ProcessCDR(1,14154802,1,1,2) [2025-01-02 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154802', 'tblTempUsageDetail_20' ) start [2025-01-02 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154802', 'tblTempUsageDetail_20' ) end [2025-01-02 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:18:22] Production.INFO: ==11226== Releasing lock... [2025-01-02 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:19:05 [end_date_ymd] => 2025-01-02 01:19:05 [RateCDR] => 1 ) [2025-01-02 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:19:05' and `end` < '2025-01-02 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:19:19] Production.INFO: count ==285 [2025-01-02 01:19:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:19:05 - End Time 2025-01-02 01:19:05 [2025-01-02 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154807', 'tblTempUsageDetail_20' ) start [2025-01-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154807', 'tblTempUsageDetail_20' ) end [2025-01-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154807', 'tblTempVendorCDR_20' ) start [2025-01-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154807', 'tblTempVendorCDR_20' ) end [2025-01-02 01:19:19] Production.INFO: ProcessCDR(1,14154807,1,1,2) [2025-01-02 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154807', 'tblTempUsageDetail_20' ) start [2025-01-02 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154807', 'tblTempUsageDetail_20' ) end [2025-01-02 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:19:22] Production.INFO: ==11300== Releasing lock... [2025-01-02 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:20:05 [end_date_ymd] => 2025-01-02 01:20:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:20:05' and `end` < '2025-01-02 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-01-02 01:20:18] Production.INFO: count ==291 [2025-01-02 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:20:05 - End Time 2025-01-02 01:20:05 [2025-01-02 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154812', 'tblTempUsageDetail_20' ) start [2025-01-02 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154812', 'tblTempUsageDetail_20' ) end [2025-01-02 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154812', 'tblTempVendorCDR_20' ) start [2025-01-02 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154812', 'tblTempVendorCDR_20' ) end [2025-01-02 01:20:18] Production.INFO: ProcessCDR(1,14154812,1,1,2) [2025-01-02 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154812', 'tblTempUsageDetail_20' ) start [2025-01-02 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154812', 'tblTempUsageDetail_20' ) end [2025-01-02 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:20:21] Production.INFO: ==11373== Releasing lock... [2025-01-02 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:20:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:21:05 [end_date_ymd] => 2025-01-02 01:21:05 [RateCDR] => 1 ) [2025-01-02 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:21:05' and `end` < '2025-01-02 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:21:19] Production.INFO: count ==299 [2025-01-02 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:21:05 - End Time 2025-01-02 01:21:05 [2025-01-02 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154818', 'tblTempUsageDetail_20' ) start [2025-01-02 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154818', 'tblTempUsageDetail_20' ) end [2025-01-02 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154818', 'tblTempVendorCDR_20' ) start [2025-01-02 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154818', 'tblTempVendorCDR_20' ) end [2025-01-02 01:21:19] Production.INFO: ProcessCDR(1,14154818,1,1,2) [2025-01-02 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154818', 'tblTempUsageDetail_20' ) start [2025-01-02 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154818', 'tblTempUsageDetail_20' ) end [2025-01-02 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:21:22] Production.INFO: ==11447== Releasing lock... [2025-01-02 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:22:04 [end_date_ymd] => 2025-01-02 01:22:04 [RateCDR] => 1 ) [2025-01-02 01:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:22:04' and `end` < '2025-01-02 01:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:22:17] Production.INFO: count ==298 [2025-01-02 01:22:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:22:04 - End Time 2025-01-02 01:22:04 [2025-01-02 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154821', 'tblTempUsageDetail_20' ) start [2025-01-02 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154821', 'tblTempUsageDetail_20' ) end [2025-01-02 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154821', 'tblTempVendorCDR_20' ) start [2025-01-02 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154821', 'tblTempVendorCDR_20' ) end [2025-01-02 01:22:17] Production.INFO: ProcessCDR(1,14154821,1,1,2) [2025-01-02 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154821', 'tblTempUsageDetail_20' ) start [2025-01-02 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154821', 'tblTempUsageDetail_20' ) end [2025-01-02 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:22:20] Production.INFO: ==11523== Releasing lock... [2025-01-02 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:22:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:23:06 [end_date_ymd] => 2025-01-02 01:23:06 [RateCDR] => 1 ) [2025-01-02 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:23:06' and `end` < '2025-01-02 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:23:20] Production.INFO: count ==298 [2025-01-02 01:23:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:23:06 - End Time 2025-01-02 01:23:06 [2025-01-02 01:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154828', 'tblTempUsageDetail_20' ) start [2025-01-02 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154828', 'tblTempUsageDetail_20' ) end [2025-01-02 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154828', 'tblTempVendorCDR_20' ) start [2025-01-02 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154828', 'tblTempVendorCDR_20' ) end [2025-01-02 01:23:20] Production.INFO: ProcessCDR(1,14154828,1,1,2) [2025-01-02 01:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154828', 'tblTempUsageDetail_20' ) start [2025-01-02 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154828', 'tblTempUsageDetail_20' ) end [2025-01-02 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:23:23] Production.INFO: ==11594== Releasing lock... [2025-01-02 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:23:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:24:05 [end_date_ymd] => 2025-01-02 01:24:05 [RateCDR] => 1 ) [2025-01-02 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:24:05' and `end` < '2025-01-02 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:24:20] Production.INFO: count ==298 [2025-01-02 01:24:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:24:05 - End Time 2025-01-02 01:24:05 [2025-01-02 01:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154833', 'tblTempUsageDetail_20' ) start [2025-01-02 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154833', 'tblTempUsageDetail_20' ) end [2025-01-02 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154833', 'tblTempVendorCDR_20' ) start [2025-01-02 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154833', 'tblTempVendorCDR_20' ) end [2025-01-02 01:24:20] Production.INFO: ProcessCDR(1,14154833,1,1,2) [2025-01-02 01:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154833', 'tblTempUsageDetail_20' ) start [2025-01-02 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154833', 'tblTempUsageDetail_20' ) end [2025-01-02 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:24:23] Production.INFO: ==11666== Releasing lock... [2025-01-02 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:24:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:25:04 [end_date_ymd] => 2025-01-02 01:25:04 [RateCDR] => 1 ) [2025-01-02 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:25:04' and `end` < '2025-01-02 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:25:17] Production.INFO: count ==298 [2025-01-02 01:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:25:04 - End Time 2025-01-02 01:25:04 [2025-01-02 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154838', 'tblTempUsageDetail_20' ) start [2025-01-02 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154838', 'tblTempUsageDetail_20' ) end [2025-01-02 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154838', 'tblTempVendorCDR_20' ) start [2025-01-02 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154838', 'tblTempVendorCDR_20' ) end [2025-01-02 01:25:17] Production.INFO: ProcessCDR(1,14154838,1,1,2) [2025-01-02 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154838', 'tblTempUsageDetail_20' ) start [2025-01-02 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154838', 'tblTempUsageDetail_20' ) end [2025-01-02 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:25:21] Production.INFO: ==11741== Releasing lock... [2025-01-02 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:26:05 [end_date_ymd] => 2025-01-02 01:26:05 [RateCDR] => 1 ) [2025-01-02 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:26:05' and `end` < '2025-01-02 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:26:19] Production.INFO: count ==291 [2025-01-02 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:26:05 - End Time 2025-01-02 01:26:05 [2025-01-02 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154843', 'tblTempUsageDetail_20' ) start [2025-01-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154843', 'tblTempUsageDetail_20' ) end [2025-01-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154843', 'tblTempVendorCDR_20' ) start [2025-01-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154843', 'tblTempVendorCDR_20' ) end [2025-01-02 01:26:19] Production.INFO: ProcessCDR(1,14154843,1,1,2) [2025-01-02 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154843', 'tblTempUsageDetail_20' ) start [2025-01-02 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154843', 'tblTempUsageDetail_20' ) end [2025-01-02 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:26:22] Production.INFO: ==11813== Releasing lock... [2025-01-02 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:26:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:27:05 [end_date_ymd] => 2025-01-02 01:27:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:27:05' and `end` < '2025-01-02 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-01-02 01:27:19] Production.INFO: count ==291 [2025-01-02 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:27:05 - End Time 2025-01-02 01:27:05 [2025-01-02 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154848', 'tblTempUsageDetail_20' ) start [2025-01-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154848', 'tblTempUsageDetail_20' ) end [2025-01-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154848', 'tblTempVendorCDR_20' ) start [2025-01-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154848', 'tblTempVendorCDR_20' ) end [2025-01-02 01:27:19] Production.INFO: ProcessCDR(1,14154848,1,1,2) [2025-01-02 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154848', 'tblTempUsageDetail_20' ) start [2025-01-02 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154848', 'tblTempUsageDetail_20' ) end [2025-01-02 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:27:22] Production.INFO: ==11882== Releasing lock... [2025-01-02 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:27:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:28:05 [end_date_ymd] => 2025-01-02 01:28:05 [RateCDR] => 1 ) [2025-01-02 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:28:05' and `end` < '2025-01-02 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:28:19] Production.INFO: count ==291 [2025-01-02 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:28:05 - End Time 2025-01-02 01:28:05 [2025-01-02 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154853', 'tblTempUsageDetail_20' ) start [2025-01-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154853', 'tblTempUsageDetail_20' ) end [2025-01-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154853', 'tblTempVendorCDR_20' ) start [2025-01-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154853', 'tblTempVendorCDR_20' ) end [2025-01-02 01:28:19] Production.INFO: ProcessCDR(1,14154853,1,1,2) [2025-01-02 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154853', 'tblTempUsageDetail_20' ) start [2025-01-02 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154853', 'tblTempUsageDetail_20' ) end [2025-01-02 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:28:22] Production.INFO: ==11954== Releasing lock... [2025-01-02 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:28:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:29:05 [end_date_ymd] => 2025-01-02 01:29:05 [RateCDR] => 1 ) [2025-01-02 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:29:05' and `end` < '2025-01-02 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:29:20] Production.INFO: count ==290 [2025-01-02 01:29:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:29:05 - End Time 2025-01-02 01:29:05 [2025-01-02 01:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154858', 'tblTempUsageDetail_20' ) start [2025-01-02 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154858', 'tblTempUsageDetail_20' ) end [2025-01-02 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154858', 'tblTempVendorCDR_20' ) start [2025-01-02 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154858', 'tblTempVendorCDR_20' ) end [2025-01-02 01:29:20] Production.INFO: ProcessCDR(1,14154858,1,1,2) [2025-01-02 01:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154858', 'tblTempUsageDetail_20' ) start [2025-01-02 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154858', 'tblTempUsageDetail_20' ) end [2025-01-02 01:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:29:23] Production.INFO: ==12024== Releasing lock... [2025-01-02 01:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:29:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:30:05 [end_date_ymd] => 2025-01-02 01:30:05 [RateCDR] => 1 ) [2025-01-02 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:30:05' and `end` < '2025-01-02 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:30:18] Production.INFO: count ==296 [2025-01-02 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:30:05 - End Time 2025-01-02 01:30:05 [2025-01-02 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154864', 'tblTempUsageDetail_20' ) start [2025-01-02 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154864', 'tblTempUsageDetail_20' ) end [2025-01-02 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154864', 'tblTempVendorCDR_20' ) start [2025-01-02 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154864', 'tblTempVendorCDR_20' ) end [2025-01-02 01:30:18] Production.INFO: ProcessCDR(1,14154864,1,1,2) [2025-01-02 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154864', 'tblTempUsageDetail_20' ) start [2025-01-02 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154864', 'tblTempUsageDetail_20' ) end [2025-01-02 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:30:21] Production.INFO: ==12096== Releasing lock... [2025-01-02 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:31:05 [end_date_ymd] => 2025-01-02 01:31:05 [RateCDR] => 1 ) [2025-01-02 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:31:05' and `end` < '2025-01-02 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:31:19] Production.INFO: count ==309 [2025-01-02 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:31:05 - End Time 2025-01-02 01:31:05 [2025-01-02 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154869', 'tblTempUsageDetail_20' ) start [2025-01-02 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154869', 'tblTempUsageDetail_20' ) end [2025-01-02 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154869', 'tblTempVendorCDR_20' ) start [2025-01-02 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154869', 'tblTempVendorCDR_20' ) end [2025-01-02 01:31:19] Production.INFO: ProcessCDR(1,14154869,1,1,2) [2025-01-02 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154869', 'tblTempUsageDetail_20' ) start [2025-01-02 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154869', 'tblTempUsageDetail_20' ) end [2025-01-02 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:31:22] Production.INFO: ==12207== Releasing lock... [2025-01-02 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:32:05 [end_date_ymd] => 2025-01-02 01:32:05 [RateCDR] => 1 ) [2025-01-02 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:32:05' and `end` < '2025-01-02 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:32:17] Production.INFO: count ==309 [2025-01-02 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:32:05 - End Time 2025-01-02 01:32:05 [2025-01-02 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154874', 'tblTempUsageDetail_20' ) start [2025-01-02 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154874', 'tblTempUsageDetail_20' ) end [2025-01-02 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154874', 'tblTempVendorCDR_20' ) start [2025-01-02 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154874', 'tblTempVendorCDR_20' ) end [2025-01-02 01:32:18] Production.INFO: ProcessCDR(1,14154874,1,1,2) [2025-01-02 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154874', 'tblTempUsageDetail_20' ) start [2025-01-02 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154874', 'tblTempUsageDetail_20' ) end [2025-01-02 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:32:21] Production.INFO: ==12278== Releasing lock... [2025-01-02 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:33:05 [end_date_ymd] => 2025-01-02 01:33:05 [RateCDR] => 1 ) [2025-01-02 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:33:05' and `end` < '2025-01-02 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:33:19] Production.INFO: count ==309 [2025-01-02 01:33:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:33:05 - End Time 2025-01-02 01:33:05 [2025-01-02 01:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154879', 'tblTempUsageDetail_20' ) start [2025-01-02 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154879', 'tblTempUsageDetail_20' ) end [2025-01-02 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154879', 'tblTempVendorCDR_20' ) start [2025-01-02 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154879', 'tblTempVendorCDR_20' ) end [2025-01-02 01:33:20] Production.INFO: ProcessCDR(1,14154879,1,1,2) [2025-01-02 01:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154879', 'tblTempUsageDetail_20' ) start [2025-01-02 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154879', 'tblTempUsageDetail_20' ) end [2025-01-02 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:33:23] Production.INFO: ==12349== Releasing lock... [2025-01-02 01:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:33:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:34:05 [end_date_ymd] => 2025-01-02 01:34:05 [RateCDR] => 1 ) [2025-01-02 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:34:05' and `end` < '2025-01-02 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:34:18] Production.INFO: count ==309 [2025-01-02 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:34:05 - End Time 2025-01-02 01:34:05 [2025-01-02 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154884', 'tblTempUsageDetail_20' ) start [2025-01-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154884', 'tblTempUsageDetail_20' ) end [2025-01-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154884', 'tblTempVendorCDR_20' ) start [2025-01-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154884', 'tblTempVendorCDR_20' ) end [2025-01-02 01:34:18] Production.INFO: ProcessCDR(1,14154884,1,1,2) [2025-01-02 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154884', 'tblTempUsageDetail_20' ) start [2025-01-02 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154884', 'tblTempUsageDetail_20' ) end [2025-01-02 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:34:21] Production.INFO: ==12421== Releasing lock... [2025-01-02 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:35:05 [end_date_ymd] => 2025-01-02 01:35:05 [RateCDR] => 1 ) [2025-01-02 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:35:05' and `end` < '2025-01-02 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:35:18] Production.INFO: count ==309 [2025-01-02 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:35:05 - End Time 2025-01-02 01:35:05 [2025-01-02 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154889', 'tblTempUsageDetail_20' ) start [2025-01-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154889', 'tblTempUsageDetail_20' ) end [2025-01-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154889', 'tblTempVendorCDR_20' ) start [2025-01-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154889', 'tblTempVendorCDR_20' ) end [2025-01-02 01:35:18] Production.INFO: ProcessCDR(1,14154889,1,1,2) [2025-01-02 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154889', 'tblTempUsageDetail_20' ) start [2025-01-02 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154889', 'tblTempUsageDetail_20' ) end [2025-01-02 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:35:21] Production.INFO: ==12494== Releasing lock... [2025-01-02 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:36:05 [end_date_ymd] => 2025-01-02 01:36:05 [RateCDR] => 1 ) [2025-01-02 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:36:05' and `end` < '2025-01-02 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:36:17] Production.INFO: count ==309 [2025-01-02 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:36:05 - End Time 2025-01-02 01:36:05 [2025-01-02 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154894', 'tblTempUsageDetail_20' ) start [2025-01-02 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154894', 'tblTempUsageDetail_20' ) end [2025-01-02 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154894', 'tblTempVendorCDR_20' ) start [2025-01-02 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154894', 'tblTempVendorCDR_20' ) end [2025-01-02 01:36:18] Production.INFO: ProcessCDR(1,14154894,1,1,2) [2025-01-02 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154894', 'tblTempUsageDetail_20' ) start [2025-01-02 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154894', 'tblTempUsageDetail_20' ) end [2025-01-02 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:36:21] Production.INFO: ==12563== Releasing lock... [2025-01-02 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:37:05 [end_date_ymd] => 2025-01-02 01:37:05 [RateCDR] => 1 ) [2025-01-02 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:37:05' and `end` < '2025-01-02 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:37:18] Production.INFO: count ==309 [2025-01-02 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:37:05 - End Time 2025-01-02 01:37:05 [2025-01-02 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154899', 'tblTempUsageDetail_20' ) start [2025-01-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154899', 'tblTempUsageDetail_20' ) end [2025-01-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154899', 'tblTempVendorCDR_20' ) start [2025-01-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154899', 'tblTempVendorCDR_20' ) end [2025-01-02 01:37:18] Production.INFO: ProcessCDR(1,14154899,1,1,2) [2025-01-02 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154899', 'tblTempUsageDetail_20' ) start [2025-01-02 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154899', 'tblTempUsageDetail_20' ) end [2025-01-02 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:37:21] Production.INFO: ==12634== Releasing lock... [2025-01-02 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:38:05 [end_date_ymd] => 2025-01-02 01:38:05 [RateCDR] => 1 ) [2025-01-02 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:38:05' and `end` < '2025-01-02 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:38:19] Production.INFO: count ==306 [2025-01-02 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:38:05 - End Time 2025-01-02 01:38:05 [2025-01-02 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154904', 'tblTempUsageDetail_20' ) start [2025-01-02 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154904', 'tblTempUsageDetail_20' ) end [2025-01-02 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154904', 'tblTempVendorCDR_20' ) start [2025-01-02 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154904', 'tblTempVendorCDR_20' ) end [2025-01-02 01:38:19] Production.INFO: ProcessCDR(1,14154904,1,1,2) [2025-01-02 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154904', 'tblTempUsageDetail_20' ) start [2025-01-02 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154904', 'tblTempUsageDetail_20' ) end [2025-01-02 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:38:22] Production.INFO: ==12708== Releasing lock... [2025-01-02 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:38:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:39:05 [end_date_ymd] => 2025-01-02 01:39:05 [RateCDR] => 1 ) [2025-01-02 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:39:05' and `end` < '2025-01-02 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:39:18] Production.INFO: count ==306 [2025-01-02 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:39:05 - End Time 2025-01-02 01:39:05 [2025-01-02 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154909', 'tblTempUsageDetail_20' ) start [2025-01-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154909', 'tblTempUsageDetail_20' ) end [2025-01-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154909', 'tblTempVendorCDR_20' ) start [2025-01-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154909', 'tblTempVendorCDR_20' ) end [2025-01-02 01:39:18] Production.INFO: ProcessCDR(1,14154909,1,1,2) [2025-01-02 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154909', 'tblTempUsageDetail_20' ) start [2025-01-02 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154909', 'tblTempUsageDetail_20' ) end [2025-01-02 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:39:22] Production.INFO: ==12777== Releasing lock... [2025-01-02 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:39:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:40:06 [end_date_ymd] => 2025-01-02 01:40:06 [RateCDR] => 1 ) [2025-01-02 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:40:06' and `end` < '2025-01-02 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:40:19] Production.INFO: count ==314 [2025-01-02 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:40:06 - End Time 2025-01-02 01:40:06 [2025-01-02 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154915', 'tblTempUsageDetail_20' ) start [2025-01-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154915', 'tblTempUsageDetail_20' ) end [2025-01-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154915', 'tblTempVendorCDR_20' ) start [2025-01-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154915', 'tblTempVendorCDR_20' ) end [2025-01-02 01:40:19] Production.INFO: ProcessCDR(1,14154915,1,1,2) [2025-01-02 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154915', 'tblTempUsageDetail_20' ) start [2025-01-02 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154915', 'tblTempUsageDetail_20' ) end [2025-01-02 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:40:22] Production.INFO: ==12854== Releasing lock... [2025-01-02 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:41:05 [end_date_ymd] => 2025-01-02 01:41:05 [RateCDR] => 1 ) [2025-01-02 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:41:05' and `end` < '2025-01-02 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:41:23] Production.INFO: count ==314 [2025-01-02 01:41:23] Production.ERROR: pbx CDR StartTime 2025-01-01 22:41:05 - End Time 2025-01-02 01:41:05 [2025-01-02 01:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154920', 'tblTempUsageDetail_20' ) start [2025-01-02 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154920', 'tblTempUsageDetail_20' ) end [2025-01-02 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154920', 'tblTempVendorCDR_20' ) start [2025-01-02 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154920', 'tblTempVendorCDR_20' ) end [2025-01-02 01:41:23] Production.INFO: ProcessCDR(1,14154920,1,1,2) [2025-01-02 01:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154920', 'tblTempUsageDetail_20' ) start [2025-01-02 01:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154920', 'tblTempUsageDetail_20' ) end [2025-01-02 01:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:41:26] Production.INFO: ==12925== Releasing lock... [2025-01-02 01:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:41:26] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:42:05 [end_date_ymd] => 2025-01-02 01:42:05 [RateCDR] => 1 ) [2025-01-02 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:42:05' and `end` < '2025-01-02 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:42:20] Production.INFO: count ==315 [2025-01-02 01:42:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:42:05 - End Time 2025-01-02 01:42:05 [2025-01-02 01:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154925', 'tblTempUsageDetail_20' ) start [2025-01-02 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154925', 'tblTempUsageDetail_20' ) end [2025-01-02 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154925', 'tblTempVendorCDR_20' ) start [2025-01-02 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154925', 'tblTempVendorCDR_20' ) end [2025-01-02 01:42:20] Production.INFO: ProcessCDR(1,14154925,1,1,2) [2025-01-02 01:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154925', 'tblTempUsageDetail_20' ) start [2025-01-02 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154925', 'tblTempUsageDetail_20' ) end [2025-01-02 01:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:42:24] Production.INFO: ==12996== Releasing lock... [2025-01-02 01:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:42:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:43:04 [end_date_ymd] => 2025-01-02 01:43:04 [RateCDR] => 1 ) [2025-01-02 01:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:43:04' and `end` < '2025-01-02 01:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:43:18] Production.INFO: count ==315 [2025-01-02 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:43:04 - End Time 2025-01-02 01:43:04 [2025-01-02 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154930', 'tblTempUsageDetail_20' ) start [2025-01-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154930', 'tblTempUsageDetail_20' ) end [2025-01-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154930', 'tblTempVendorCDR_20' ) start [2025-01-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154930', 'tblTempVendorCDR_20' ) end [2025-01-02 01:43:18] Production.INFO: ProcessCDR(1,14154930,1,1,2) [2025-01-02 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154930', 'tblTempUsageDetail_20' ) start [2025-01-02 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154930', 'tblTempUsageDetail_20' ) end [2025-01-02 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:43:21] Production.INFO: ==13066== Releasing lock... [2025-01-02 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:44:05 [end_date_ymd] => 2025-01-02 01:44:05 [RateCDR] => 1 ) [2025-01-02 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:44:05' and `end` < '2025-01-02 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:44:19] Production.INFO: count ==315 [2025-01-02 01:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:44:05 - End Time 2025-01-02 01:44:05 [2025-01-02 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154935', 'tblTempUsageDetail_20' ) start [2025-01-02 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154935', 'tblTempUsageDetail_20' ) end [2025-01-02 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154935', 'tblTempVendorCDR_20' ) start [2025-01-02 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154935', 'tblTempVendorCDR_20' ) end [2025-01-02 01:44:19] Production.INFO: ProcessCDR(1,14154935,1,1,2) [2025-01-02 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154935', 'tblTempUsageDetail_20' ) start [2025-01-02 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154935', 'tblTempUsageDetail_20' ) end [2025-01-02 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:44:22] Production.INFO: ==13142== Releasing lock... [2025-01-02 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:45:05 [end_date_ymd] => 2025-01-02 01:45:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:45:05' and `end` < '2025-01-02 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-01-02 01:45:20] Production.INFO: count ==313 [2025-01-02 01:45:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:45:05 - End Time 2025-01-02 01:45:05 [2025-01-02 01:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154940', 'tblTempUsageDetail_20' ) start [2025-01-02 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154940', 'tblTempUsageDetail_20' ) end [2025-01-02 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154940', 'tblTempVendorCDR_20' ) start [2025-01-02 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154940', 'tblTempVendorCDR_20' ) end [2025-01-02 01:45:20] Production.INFO: ProcessCDR(1,14154940,1,1,2) [2025-01-02 01:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154940', 'tblTempUsageDetail_20' ) start [2025-01-02 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154940', 'tblTempUsageDetail_20' ) end [2025-01-02 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:45:23] Production.INFO: ==13214== Releasing lock... [2025-01-02 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:45:23] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:46:05 [end_date_ymd] => 2025-01-02 01:46:05 [RateCDR] => 1 ) [2025-01-02 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:46:05' and `end` < '2025-01-02 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:46:17] Production.INFO: count ==313 [2025-01-02 01:46:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:46:05 - End Time 2025-01-02 01:46:05 [2025-01-02 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154945', 'tblTempUsageDetail_20' ) start [2025-01-02 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154945', 'tblTempUsageDetail_20' ) end [2025-01-02 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154945', 'tblTempVendorCDR_20' ) start [2025-01-02 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154945', 'tblTempVendorCDR_20' ) end [2025-01-02 01:46:17] Production.INFO: ProcessCDR(1,14154945,1,1,2) [2025-01-02 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154945', 'tblTempUsageDetail_20' ) start [2025-01-02 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154945', 'tblTempUsageDetail_20' ) end [2025-01-02 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:46:21] Production.INFO: ==13283== Releasing lock... [2025-01-02 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:46:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:47:05 [end_date_ymd] => 2025-01-02 01:47:05 [RateCDR] => 1 ) [2025-01-02 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:47:05' and `end` < '2025-01-02 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:47:18] Production.INFO: count ==309 [2025-01-02 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:47:05 - End Time 2025-01-02 01:47:05 [2025-01-02 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154950', 'tblTempUsageDetail_20' ) start [2025-01-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154950', 'tblTempUsageDetail_20' ) end [2025-01-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154950', 'tblTempVendorCDR_20' ) start [2025-01-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154950', 'tblTempVendorCDR_20' ) end [2025-01-02 01:47:18] Production.INFO: ProcessCDR(1,14154950,1,1,2) [2025-01-02 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154950', 'tblTempUsageDetail_20' ) start [2025-01-02 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154950', 'tblTempUsageDetail_20' ) end [2025-01-02 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:47:21] Production.INFO: ==13393== Releasing lock... [2025-01-02 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:48:05 [end_date_ymd] => 2025-01-02 01:48:05 [RateCDR] => 1 ) [2025-01-02 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:48:05' and `end` < '2025-01-02 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:48:20] Production.INFO: count ==309 [2025-01-02 01:48:20] Production.ERROR: pbx CDR StartTime 2025-01-01 22:48:05 - End Time 2025-01-02 01:48:05 [2025-01-02 01:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154955', 'tblTempUsageDetail_20' ) start [2025-01-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154955', 'tblTempUsageDetail_20' ) end [2025-01-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154955', 'tblTempVendorCDR_20' ) start [2025-01-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154955', 'tblTempVendorCDR_20' ) end [2025-01-02 01:48:20] Production.INFO: ProcessCDR(1,14154955,1,1,2) [2025-01-02 01:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154955', 'tblTempUsageDetail_20' ) start [2025-01-02 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154955', 'tblTempUsageDetail_20' ) end [2025-01-02 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:48:23] Production.INFO: ==13465== Releasing lock... [2025-01-02 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:49:05 [end_date_ymd] => 2025-01-02 01:49:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:49:05' and `end` < '2025-01-02 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-01-02 01:49:19] Production.INFO: count ==308 [2025-01-02 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:49:05 - End Time 2025-01-02 01:49:05 [2025-01-02 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154960', 'tblTempUsageDetail_20' ) start [2025-01-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154960', 'tblTempUsageDetail_20' ) end [2025-01-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154960', 'tblTempVendorCDR_20' ) start [2025-01-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154960', 'tblTempVendorCDR_20' ) end [2025-01-02 01:49:19] Production.INFO: ProcessCDR(1,14154960,1,1,2) [2025-01-02 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154960', 'tblTempUsageDetail_20' ) start [2025-01-02 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154960', 'tblTempUsageDetail_20' ) end [2025-01-02 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:49:22] Production.INFO: ==13539== Releasing lock... [2025-01-02 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:49:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:50:07 [end_date_ymd] => 2025-01-02 01:50:07 [RateCDR] => 1 ) [2025-01-02 01: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-01-01 22:50:07' and `end` < '2025-01-02 01: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-01-02 01:50:19] Production.INFO: count ==318 [2025-01-02 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:50:07 - End Time 2025-01-02 01:50:07 [2025-01-02 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154966', 'tblTempUsageDetail_20' ) start [2025-01-02 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154966', 'tblTempUsageDetail_20' ) end [2025-01-02 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154966', 'tblTempVendorCDR_20' ) start [2025-01-02 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154966', 'tblTempVendorCDR_20' ) end [2025-01-02 01:50:19] Production.INFO: ProcessCDR(1,14154966,1,1,2) [2025-01-02 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154966', 'tblTempUsageDetail_20' ) start [2025-01-02 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154966', 'tblTempUsageDetail_20' ) end [2025-01-02 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:50:22] Production.INFO: ==13612== Releasing lock... [2025-01-02 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:51:05 [end_date_ymd] => 2025-01-02 01:51:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:51:05' and `end` < '2025-01-02 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-01-02 01:51:19] Production.INFO: count ==326 [2025-01-02 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:51:05 - End Time 2025-01-02 01:51:05 [2025-01-02 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154971', 'tblTempUsageDetail_20' ) start [2025-01-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154971', 'tblTempUsageDetail_20' ) end [2025-01-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154971', 'tblTempVendorCDR_20' ) start [2025-01-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154971', 'tblTempVendorCDR_20' ) end [2025-01-02 01:51:19] Production.INFO: ProcessCDR(1,14154971,1,1,2) [2025-01-02 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154971', 'tblTempUsageDetail_20' ) start [2025-01-02 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154971', 'tblTempUsageDetail_20' ) end [2025-01-02 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:51:22] Production.INFO: ==13684== Releasing lock... [2025-01-02 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:52:05 [end_date_ymd] => 2025-01-02 01:52:05 [RateCDR] => 1 ) [2025-01-02 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:52:05' and `end` < '2025-01-02 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:52:19] Production.INFO: count ==325 [2025-01-02 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:52:05 - End Time 2025-01-02 01:52:05 [2025-01-02 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154976', 'tblTempUsageDetail_20' ) start [2025-01-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154976', 'tblTempUsageDetail_20' ) end [2025-01-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154976', 'tblTempVendorCDR_20' ) start [2025-01-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154976', 'tblTempVendorCDR_20' ) end [2025-01-02 01:52:19] Production.INFO: ProcessCDR(1,14154976,1,1,2) [2025-01-02 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154976', 'tblTempUsageDetail_20' ) start [2025-01-02 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154976', 'tblTempUsageDetail_20' ) end [2025-01-02 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:52:23] Production.INFO: ==13755== Releasing lock... [2025-01-02 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:52:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:53:05 [end_date_ymd] => 2025-01-02 01:53:05 [RateCDR] => 1 ) [2025-01-02 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:53:05' and `end` < '2025-01-02 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:53:19] Production.INFO: count ==327 [2025-01-02 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:53:05 - End Time 2025-01-02 01:53:05 [2025-01-02 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154981', 'tblTempUsageDetail_20' ) start [2025-01-02 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154981', 'tblTempUsageDetail_20' ) end [2025-01-02 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154981', 'tblTempVendorCDR_20' ) start [2025-01-02 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154981', 'tblTempVendorCDR_20' ) end [2025-01-02 01:53:19] Production.INFO: ProcessCDR(1,14154981,1,1,2) [2025-01-02 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154981', 'tblTempUsageDetail_20' ) start [2025-01-02 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154981', 'tblTempUsageDetail_20' ) end [2025-01-02 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:53:22] Production.INFO: ==13876== Releasing lock... [2025-01-02 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:53:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:54:05 [end_date_ymd] => 2025-01-02 01:54:05 [RateCDR] => 1 ) [2025-01-02 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:54:05' and `end` < '2025-01-02 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:54:23] Production.INFO: count ==324 [2025-01-02 01:54:23] Production.ERROR: pbx CDR StartTime 2025-01-01 22:54:05 - End Time 2025-01-02 01:54:05 [2025-01-02 01:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154985', 'tblTempUsageDetail_20' ) start [2025-01-02 01:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154985', 'tblTempUsageDetail_20' ) end [2025-01-02 01:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154985', 'tblTempVendorCDR_20' ) start [2025-01-02 01:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154985', 'tblTempVendorCDR_20' ) end [2025-01-02 01:54:23] Production.INFO: ProcessCDR(1,14154985,1,1,2) [2025-01-02 01:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154985', 'tblTempUsageDetail_20' ) start [2025-01-02 01:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154985', 'tblTempUsageDetail_20' ) end [2025-01-02 01:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:54:26] Production.INFO: ==14003== Releasing lock... [2025-01-02 01:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:54:26] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:55:05 [end_date_ymd] => 2025-01-02 01:55:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 22:55:05' and `end` < '2025-01-02 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-01-02 01:55:19] Production.INFO: count ==324 [2025-01-02 01:55:19] Production.ERROR: pbx CDR StartTime 2025-01-01 22:55:05 - End Time 2025-01-02 01:55:05 [2025-01-02 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154991', 'tblTempUsageDetail_20' ) start [2025-01-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154991', 'tblTempUsageDetail_20' ) end [2025-01-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154991', 'tblTempVendorCDR_20' ) start [2025-01-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154991', 'tblTempVendorCDR_20' ) end [2025-01-02 01:55:19] Production.INFO: ProcessCDR(1,14154991,1,1,2) [2025-01-02 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154991', 'tblTempUsageDetail_20' ) start [2025-01-02 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154991', 'tblTempUsageDetail_20' ) end [2025-01-02 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:55:22] Production.INFO: ==14134== Releasing lock... [2025-01-02 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:56:05 [end_date_ymd] => 2025-01-02 01:56:05 [RateCDR] => 1 ) [2025-01-02 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:56:05' and `end` < '2025-01-02 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:56:18] Production.INFO: count ==322 [2025-01-02 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:56:05 - End Time 2025-01-02 01:56:05 [2025-01-02 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154996', 'tblTempUsageDetail_20' ) start [2025-01-02 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154996', 'tblTempUsageDetail_20' ) end [2025-01-02 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154996', 'tblTempVendorCDR_20' ) start [2025-01-02 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154996', 'tblTempVendorCDR_20' ) end [2025-01-02 01:56:18] Production.INFO: ProcessCDR(1,14154996,1,1,2) [2025-01-02 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154996', 'tblTempUsageDetail_20' ) start [2025-01-02 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154996', 'tblTempUsageDetail_20' ) end [2025-01-02 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:56:21] Production.INFO: ==14262== Releasing lock... [2025-01-02 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:56:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:57:04 [end_date_ymd] => 2025-01-02 01:57:04 [RateCDR] => 1 ) [2025-01-02 01:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:57:04' and `end` < '2025-01-02 01:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:57:17] Production.INFO: count ==321 [2025-01-02 01:57:17] Production.ERROR: pbx CDR StartTime 2025-01-01 22:57:04 - End Time 2025-01-02 01:57:04 [2025-01-02 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155001', 'tblTempUsageDetail_20' ) start [2025-01-02 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155001', 'tblTempUsageDetail_20' ) end [2025-01-02 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155001', 'tblTempVendorCDR_20' ) start [2025-01-02 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155001', 'tblTempVendorCDR_20' ) end [2025-01-02 01:57:17] Production.INFO: ProcessCDR(1,14155001,1,1,2) [2025-01-02 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155001', 'tblTempUsageDetail_20' ) start [2025-01-02 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155001', 'tblTempUsageDetail_20' ) end [2025-01-02 01:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:57:20] Production.INFO: ==14393== Releasing lock... [2025-01-02 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:57:20] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:58:05 [end_date_ymd] => 2025-01-02 01:58:05 [RateCDR] => 1 ) [2025-01-02 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:58:05' and `end` < '2025-01-02 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:58:18] Production.INFO: count ==321 [2025-01-02 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:58:05 - End Time 2025-01-02 01:58:05 [2025-01-02 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155006', 'tblTempUsageDetail_20' ) start [2025-01-02 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155006', 'tblTempUsageDetail_20' ) end [2025-01-02 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155006', 'tblTempVendorCDR_20' ) start [2025-01-02 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155006', 'tblTempVendorCDR_20' ) end [2025-01-02 01:58:18] Production.INFO: ProcessCDR(1,14155006,1,1,2) [2025-01-02 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155006', 'tblTempUsageDetail_20' ) start [2025-01-02 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155006', 'tblTempUsageDetail_20' ) end [2025-01-02 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:58:22] Production.INFO: ==14522== Releasing lock... [2025-01-02 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:58:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 22:59:04 [end_date_ymd] => 2025-01-02 01:59:04 [RateCDR] => 1 ) [2025-01-02 01:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 22:59:04' and `end` < '2025-01-02 01:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 01:59:18] Production.INFO: count ==320 [2025-01-02 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 22:59:04 - End Time 2025-01-02 01:59:04 [2025-01-02 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155011', 'tblTempUsageDetail_20' ) start [2025-01-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155011', 'tblTempUsageDetail_20' ) end [2025-01-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155011', 'tblTempVendorCDR_20' ) start [2025-01-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155011', 'tblTempVendorCDR_20' ) end [2025-01-02 01:59:18] Production.INFO: ProcessCDR(1,14155011,1,1,2) [2025-01-02 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155011', 'tblTempUsageDetail_20' ) start [2025-01-02 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155011', 'tblTempUsageDetail_20' ) end [2025-01-02 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 01:59:21] Production.INFO: ==14644== Releasing lock... [2025-01-02 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 01:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:00:06 [end_date_ymd] => 2025-01-02 02:00:06 [RateCDR] => 1 ) [2025-01-02 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-01-01 23:00:06' and `end` < '2025-01-02 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-01-02 02:00:19] Production.INFO: count ==327 [2025-01-02 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:00:06 - End Time 2025-01-02 02:00:06 [2025-01-02 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155017', 'tblTempUsageDetail_20' ) start [2025-01-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155017', 'tblTempUsageDetail_20' ) end [2025-01-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155017', 'tblTempVendorCDR_20' ) start [2025-01-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155017', 'tblTempVendorCDR_20' ) end [2025-01-02 02:00:19] Production.INFO: ProcessCDR(1,14155017,1,1,2) [2025-01-02 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155017', 'tblTempUsageDetail_20' ) start [2025-01-02 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155017', 'tblTempUsageDetail_20' ) end [2025-01-02 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:00:22] Production.INFO: ==14775== Releasing lock... [2025-01-02 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:01:04 [end_date_ymd] => 2025-01-02 02:01:04 [RateCDR] => 1 ) [2025-01-02 02:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:01:04' and `end` < '2025-01-02 02:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:01:17] Production.INFO: count ==329 [2025-01-02 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:01:04 - End Time 2025-01-02 02:01:04 [2025-01-02 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155022', 'tblTempUsageDetail_20' ) start [2025-01-02 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155022', 'tblTempUsageDetail_20' ) end [2025-01-02 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155022', 'tblTempVendorCDR_20' ) start [2025-01-02 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155022', 'tblTempVendorCDR_20' ) end [2025-01-02 02:01:17] Production.INFO: ProcessCDR(1,14155022,1,1,2) [2025-01-02 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155022', 'tblTempUsageDetail_20' ) start [2025-01-02 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155022', 'tblTempUsageDetail_20' ) end [2025-01-02 02:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:01:20] Production.INFO: ==15002== Releasing lock... [2025-01-02 02:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:01:20] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:02:05 [end_date_ymd] => 2025-01-02 02:02:05 [RateCDR] => 1 ) [2025-01-02 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:02:05' and `end` < '2025-01-02 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:02:19] Production.INFO: count ==329 [2025-01-02 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:02:05 - End Time 2025-01-02 02:02:05 [2025-01-02 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155027', 'tblTempUsageDetail_20' ) start [2025-01-02 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155027', 'tblTempUsageDetail_20' ) end [2025-01-02 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155027', 'tblTempVendorCDR_20' ) start [2025-01-02 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155027', 'tblTempVendorCDR_20' ) end [2025-01-02 02:02:19] Production.INFO: ProcessCDR(1,14155027,1,1,2) [2025-01-02 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155027', 'tblTempUsageDetail_20' ) start [2025-01-02 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155027', 'tblTempUsageDetail_20' ) end [2025-01-02 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:02:22] Production.INFO: ==15169== Releasing lock... [2025-01-02 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:02:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:03:04 [end_date_ymd] => 2025-01-02 02:03:04 [RateCDR] => 1 ) [2025-01-02 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:03:04' and `end` < '2025-01-02 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:03:19] Production.INFO: count ==332 [2025-01-02 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:03:04 - End Time 2025-01-02 02:03:04 [2025-01-02 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155032', 'tblTempUsageDetail_20' ) start [2025-01-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155032', 'tblTempUsageDetail_20' ) end [2025-01-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155032', 'tblTempVendorCDR_20' ) start [2025-01-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155032', 'tblTempVendorCDR_20' ) end [2025-01-02 02:03:19] Production.INFO: ProcessCDR(1,14155032,1,1,2) [2025-01-02 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155032', 'tblTempUsageDetail_20' ) start [2025-01-02 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155032', 'tblTempUsageDetail_20' ) end [2025-01-02 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:03:23] Production.INFO: ==15300== Releasing lock... [2025-01-02 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:03:23] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:04:05 [end_date_ymd] => 2025-01-02 02:04:05 [RateCDR] => 1 ) [2025-01-02 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:04:05' and `end` < '2025-01-02 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:04:18] Production.INFO: count ==329 [2025-01-02 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:04:05 - End Time 2025-01-02 02:04:05 [2025-01-02 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155037', 'tblTempUsageDetail_20' ) start [2025-01-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155037', 'tblTempUsageDetail_20' ) end [2025-01-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155037', 'tblTempVendorCDR_20' ) start [2025-01-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155037', 'tblTempVendorCDR_20' ) end [2025-01-02 02:04:18] Production.INFO: ProcessCDR(1,14155037,1,1,2) [2025-01-02 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155037', 'tblTempUsageDetail_20' ) start [2025-01-02 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155037', 'tblTempUsageDetail_20' ) end [2025-01-02 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:04:21] Production.INFO: ==15427== Releasing lock... [2025-01-02 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:04:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:05:06 [end_date_ymd] => 2025-01-02 02:05:06 [RateCDR] => 1 ) [2025-01-02 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:05:06' and `end` < '2025-01-02 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:05:18] Production.INFO: count ==328 [2025-01-02 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:05:06 - End Time 2025-01-02 02:05:06 [2025-01-02 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155042', 'tblTempUsageDetail_20' ) start [2025-01-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155042', 'tblTempUsageDetail_20' ) end [2025-01-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155042', 'tblTempVendorCDR_20' ) start [2025-01-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155042', 'tblTempVendorCDR_20' ) end [2025-01-02 02:05:18] Production.INFO: ProcessCDR(1,14155042,1,1,2) [2025-01-02 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155042', 'tblTempUsageDetail_20' ) start [2025-01-02 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155042', 'tblTempUsageDetail_20' ) end [2025-01-02 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:05:22] Production.INFO: ==15551== Releasing lock... [2025-01-02 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:05:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:06:04 [end_date_ymd] => 2025-01-02 02:06:04 [RateCDR] => 1 ) [2025-01-02 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:06:04' and `end` < '2025-01-02 02:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:06:17] Production.INFO: count ==328 [2025-01-02 02:06:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:06:04 - End Time 2025-01-02 02:06:04 [2025-01-02 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155047', 'tblTempUsageDetail_20' ) start [2025-01-02 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155047', 'tblTempUsageDetail_20' ) end [2025-01-02 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155047', 'tblTempVendorCDR_20' ) start [2025-01-02 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155047', 'tblTempVendorCDR_20' ) end [2025-01-02 02:06:17] Production.INFO: ProcessCDR(1,14155047,1,1,2) [2025-01-02 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155047', 'tblTempUsageDetail_20' ) start [2025-01-02 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155047', 'tblTempUsageDetail_20' ) end [2025-01-02 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:06:21] Production.INFO: ==15671== Releasing lock... [2025-01-02 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:06:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:07:05 [end_date_ymd] => 2025-01-02 02:07:05 [RateCDR] => 1 ) [2025-01-02 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:07:05' and `end` < '2025-01-02 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:07:19] Production.INFO: count ==326 [2025-01-02 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:07:05 - End Time 2025-01-02 02:07:05 [2025-01-02 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155052', 'tblTempUsageDetail_20' ) start [2025-01-02 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155052', 'tblTempUsageDetail_20' ) end [2025-01-02 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155052', 'tblTempVendorCDR_20' ) start [2025-01-02 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155052', 'tblTempVendorCDR_20' ) end [2025-01-02 02:07:19] Production.INFO: ProcessCDR(1,14155052,1,1,2) [2025-01-02 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155052', 'tblTempUsageDetail_20' ) start [2025-01-02 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155052', 'tblTempUsageDetail_20' ) end [2025-01-02 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:07:22] Production.INFO: ==15801== Releasing lock... [2025-01-02 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:07:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:08:05 [end_date_ymd] => 2025-01-02 02:08:05 [RateCDR] => 1 ) [2025-01-02 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:08:05' and `end` < '2025-01-02 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:08:17] Production.INFO: count ==321 [2025-01-02 02:08:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:08:05 - End Time 2025-01-02 02:08:05 [2025-01-02 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155057', 'tblTempUsageDetail_20' ) start [2025-01-02 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155057', 'tblTempUsageDetail_20' ) end [2025-01-02 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155057', 'tblTempVendorCDR_20' ) start [2025-01-02 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155057', 'tblTempVendorCDR_20' ) end [2025-01-02 02:08:17] Production.INFO: ProcessCDR(1,14155057,1,1,2) [2025-01-02 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155057', 'tblTempUsageDetail_20' ) start [2025-01-02 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155057', 'tblTempUsageDetail_20' ) end [2025-01-02 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:08:21] Production.INFO: ==15885== Releasing lock... [2025-01-02 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:08:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:09:05 [end_date_ymd] => 2025-01-02 02:09:05 [RateCDR] => 1 ) [2025-01-02 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:09:05' and `end` < '2025-01-02 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:09:19] Production.INFO: count ==321 [2025-01-02 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:09:05 - End Time 2025-01-02 02:09:05 [2025-01-02 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155062', 'tblTempUsageDetail_20' ) start [2025-01-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155062', 'tblTempUsageDetail_20' ) end [2025-01-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155062', 'tblTempVendorCDR_20' ) start [2025-01-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155062', 'tblTempVendorCDR_20' ) end [2025-01-02 02:09:19] Production.INFO: ProcessCDR(1,14155062,1,1,2) [2025-01-02 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155062', 'tblTempUsageDetail_20' ) start [2025-01-02 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155062', 'tblTempUsageDetail_20' ) end [2025-01-02 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:09:22] Production.INFO: ==15957== Releasing lock... [2025-01-02 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:09:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:10:05 [end_date_ymd] => 2025-01-02 02:10:05 [RateCDR] => 1 ) [2025-01-02 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:10:05' and `end` < '2025-01-02 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:10:18] Production.INFO: count ==323 [2025-01-02 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:10:05 - End Time 2025-01-02 02:10:05 [2025-01-02 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155067', 'tblTempUsageDetail_20' ) start [2025-01-02 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155067', 'tblTempUsageDetail_20' ) end [2025-01-02 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155067', 'tblTempVendorCDR_20' ) start [2025-01-02 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155067', 'tblTempVendorCDR_20' ) end [2025-01-02 02:10:18] Production.INFO: ProcessCDR(1,14155067,1,1,2) [2025-01-02 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155067', 'tblTempUsageDetail_20' ) start [2025-01-02 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155067', 'tblTempUsageDetail_20' ) end [2025-01-02 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:10:21] Production.INFO: ==16033== Releasing lock... [2025-01-02 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:11:05 [end_date_ymd] => 2025-01-02 02:11:05 [RateCDR] => 1 ) [2025-01-02 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:11:05' and `end` < '2025-01-02 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:11:17] Production.INFO: count ==323 [2025-01-02 02:11:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:11:05 - End Time 2025-01-02 02:11:05 [2025-01-02 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155073', 'tblTempUsageDetail_20' ) start [2025-01-02 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155073', 'tblTempUsageDetail_20' ) end [2025-01-02 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155073', 'tblTempVendorCDR_20' ) start [2025-01-02 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155073', 'tblTempVendorCDR_20' ) end [2025-01-02 02:11:17] Production.INFO: ProcessCDR(1,14155073,1,1,2) [2025-01-02 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155073', 'tblTempUsageDetail_20' ) start [2025-01-02 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155073', 'tblTempUsageDetail_20' ) end [2025-01-02 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:11:20] Production.INFO: ==16108== Releasing lock... [2025-01-02 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:11:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:12:05 [end_date_ymd] => 2025-01-02 02:12:05 [RateCDR] => 1 ) [2025-01-02 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:12:05' and `end` < '2025-01-02 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:12:19] Production.INFO: count ==323 [2025-01-02 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:12:05 - End Time 2025-01-02 02:12:05 [2025-01-02 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155078', 'tblTempUsageDetail_20' ) start [2025-01-02 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155078', 'tblTempUsageDetail_20' ) end [2025-01-02 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155078', 'tblTempVendorCDR_20' ) start [2025-01-02 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155078', 'tblTempVendorCDR_20' ) end [2025-01-02 02:12:19] Production.INFO: ProcessCDR(1,14155078,1,1,2) [2025-01-02 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155078', 'tblTempUsageDetail_20' ) start [2025-01-02 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155078', 'tblTempUsageDetail_20' ) end [2025-01-02 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:12:22] Production.INFO: ==16177== Releasing lock... [2025-01-02 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:13:05 [end_date_ymd] => 2025-01-02 02:13:05 [RateCDR] => 1 ) [2025-01-02 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:13:05' and `end` < '2025-01-02 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:13:17] Production.INFO: count ==319 [2025-01-02 02:13:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:13:05 - End Time 2025-01-02 02:13:05 [2025-01-02 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155083', 'tblTempUsageDetail_20' ) start [2025-01-02 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155083', 'tblTempUsageDetail_20' ) end [2025-01-02 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155083', 'tblTempVendorCDR_20' ) start [2025-01-02 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155083', 'tblTempVendorCDR_20' ) end [2025-01-02 02:13:17] Production.INFO: ProcessCDR(1,14155083,1,1,2) [2025-01-02 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155083', 'tblTempUsageDetail_20' ) start [2025-01-02 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155083', 'tblTempUsageDetail_20' ) end [2025-01-02 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:13:20] Production.INFO: ==16252== Releasing lock... [2025-01-02 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:14:05 [end_date_ymd] => 2025-01-02 02:14:05 [RateCDR] => 1 ) [2025-01-02 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:14:05' and `end` < '2025-01-02 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:14:18] Production.INFO: count ==312 [2025-01-02 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:14:05 - End Time 2025-01-02 02:14:05 [2025-01-02 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155088', 'tblTempUsageDetail_20' ) start [2025-01-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155088', 'tblTempUsageDetail_20' ) end [2025-01-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155088', 'tblTempVendorCDR_20' ) start [2025-01-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155088', 'tblTempVendorCDR_20' ) end [2025-01-02 02:14:18] Production.INFO: ProcessCDR(1,14155088,1,1,2) [2025-01-02 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155088', 'tblTempUsageDetail_20' ) start [2025-01-02 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155088', 'tblTempUsageDetail_20' ) end [2025-01-02 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:14:21] Production.INFO: ==16323== Releasing lock... [2025-01-02 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:15:04 [end_date_ymd] => 2025-01-02 02:15:04 [RateCDR] => 1 ) [2025-01-02 02:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:15:04' and `end` < '2025-01-02 02:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:15:17] Production.INFO: count ==311 [2025-01-02 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:15:04 - End Time 2025-01-02 02:15:04 [2025-01-02 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155093', 'tblTempUsageDetail_20' ) start [2025-01-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155093', 'tblTempUsageDetail_20' ) end [2025-01-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155093', 'tblTempVendorCDR_20' ) start [2025-01-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155093', 'tblTempVendorCDR_20' ) end [2025-01-02 02:15:17] Production.INFO: ProcessCDR(1,14155093,1,1,2) [2025-01-02 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155093', 'tblTempUsageDetail_20' ) start [2025-01-02 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155093', 'tblTempUsageDetail_20' ) end [2025-01-02 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:15:20] Production.INFO: ==16398== Releasing lock... [2025-01-02 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:15:20] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:16:05 [end_date_ymd] => 2025-01-02 02:16:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 23:16:05' and `end` < '2025-01-02 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-01-02 02:16:18] Production.INFO: count ==311 [2025-01-02 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:16:05 - End Time 2025-01-02 02:16:05 [2025-01-02 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155098', 'tblTempUsageDetail_20' ) start [2025-01-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155098', 'tblTempUsageDetail_20' ) end [2025-01-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155098', 'tblTempVendorCDR_20' ) start [2025-01-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155098', 'tblTempVendorCDR_20' ) end [2025-01-02 02:16:18] Production.INFO: ProcessCDR(1,14155098,1,1,2) [2025-01-02 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155098', 'tblTempUsageDetail_20' ) start [2025-01-02 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155098', 'tblTempUsageDetail_20' ) end [2025-01-02 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:16:21] Production.INFO: ==16470== Releasing lock... [2025-01-02 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:16:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:17:05 [end_date_ymd] => 2025-01-02 02:17:05 [RateCDR] => 1 ) [2025-01-02 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:17:05' and `end` < '2025-01-02 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:17:19] Production.INFO: count ==311 [2025-01-02 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:17:05 - End Time 2025-01-02 02:17:05 [2025-01-02 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155103', 'tblTempUsageDetail_20' ) start [2025-01-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155103', 'tblTempUsageDetail_20' ) end [2025-01-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155103', 'tblTempVendorCDR_20' ) start [2025-01-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155103', 'tblTempVendorCDR_20' ) end [2025-01-02 02:17:19] Production.INFO: ProcessCDR(1,14155103,1,1,2) [2025-01-02 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155103', 'tblTempUsageDetail_20' ) start [2025-01-02 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155103', 'tblTempUsageDetail_20' ) end [2025-01-02 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:17:22] Production.INFO: ==16539== Releasing lock... [2025-01-02 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:17:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:18:05 [end_date_ymd] => 2025-01-02 02:18:05 [RateCDR] => 1 ) [2025-01-02 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:18:05' and `end` < '2025-01-02 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:18:19] Production.INFO: count ==311 [2025-01-02 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:18:05 - End Time 2025-01-02 02:18:05 [2025-01-02 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155108', 'tblTempUsageDetail_20' ) start [2025-01-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155108', 'tblTempUsageDetail_20' ) end [2025-01-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155108', 'tblTempVendorCDR_20' ) start [2025-01-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155108', 'tblTempVendorCDR_20' ) end [2025-01-02 02:18:19] Production.INFO: ProcessCDR(1,14155108,1,1,2) [2025-01-02 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155108', 'tblTempUsageDetail_20' ) start [2025-01-02 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155108', 'tblTempUsageDetail_20' ) end [2025-01-02 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:18:22] Production.INFO: ==16649== Releasing lock... [2025-01-02 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:18:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:19:05 [end_date_ymd] => 2025-01-02 02:19:05 [RateCDR] => 1 ) [2025-01-02 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:19:05' and `end` < '2025-01-02 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:19:18] Production.INFO: count ==311 [2025-01-02 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:19:05 - End Time 2025-01-02 02:19:05 [2025-01-02 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155113', 'tblTempUsageDetail_20' ) start [2025-01-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155113', 'tblTempUsageDetail_20' ) end [2025-01-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155113', 'tblTempVendorCDR_20' ) start [2025-01-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155113', 'tblTempVendorCDR_20' ) end [2025-01-02 02:19:18] Production.INFO: ProcessCDR(1,14155113,1,1,2) [2025-01-02 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155113', 'tblTempUsageDetail_20' ) start [2025-01-02 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155113', 'tblTempUsageDetail_20' ) end [2025-01-02 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:19:21] Production.INFO: ==16719== Releasing lock... [2025-01-02 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:19:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:20:05 [end_date_ymd] => 2025-01-02 02:20:05 [RateCDR] => 1 ) [2025-01-02 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:20:05' and `end` < '2025-01-02 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:20:18] Production.INFO: count ==310 [2025-01-02 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:20:05 - End Time 2025-01-02 02:20:05 [2025-01-02 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155118', 'tblTempUsageDetail_20' ) start [2025-01-02 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155118', 'tblTempUsageDetail_20' ) end [2025-01-02 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155118', 'tblTempVendorCDR_20' ) start [2025-01-02 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155118', 'tblTempVendorCDR_20' ) end [2025-01-02 02:20:18] Production.INFO: ProcessCDR(1,14155118,1,1,2) [2025-01-02 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155118', 'tblTempUsageDetail_20' ) start [2025-01-02 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155118', 'tblTempUsageDetail_20' ) end [2025-01-02 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:20:21] Production.INFO: ==16796== Releasing lock... [2025-01-02 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:21:05 [end_date_ymd] => 2025-01-02 02:21:05 [RateCDR] => 1 ) [2025-01-02 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:21:05' and `end` < '2025-01-02 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:21:18] Production.INFO: count ==310 [2025-01-02 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:21:05 - End Time 2025-01-02 02:21:05 [2025-01-02 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155124', 'tblTempUsageDetail_20' ) start [2025-01-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155124', 'tblTempUsageDetail_20' ) end [2025-01-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155124', 'tblTempVendorCDR_20' ) start [2025-01-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155124', 'tblTempVendorCDR_20' ) end [2025-01-02 02:21:18] Production.INFO: ProcessCDR(1,14155124,1,1,2) [2025-01-02 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155124', 'tblTempUsageDetail_20' ) start [2025-01-02 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155124', 'tblTempUsageDetail_20' ) end [2025-01-02 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:21:21] Production.INFO: ==16871== Releasing lock... [2025-01-02 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:22:05 [end_date_ymd] => 2025-01-02 02:22:05 [RateCDR] => 1 ) [2025-01-02 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:22:05' and `end` < '2025-01-02 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:22:18] Production.INFO: count ==310 [2025-01-02 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:22:05 - End Time 2025-01-02 02:22:05 [2025-01-02 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155129', 'tblTempUsageDetail_20' ) start [2025-01-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155129', 'tblTempUsageDetail_20' ) end [2025-01-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155129', 'tblTempVendorCDR_20' ) start [2025-01-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155129', 'tblTempVendorCDR_20' ) end [2025-01-02 02:22:18] Production.INFO: ProcessCDR(1,14155129,1,1,2) [2025-01-02 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155129', 'tblTempUsageDetail_20' ) start [2025-01-02 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155129', 'tblTempUsageDetail_20' ) end [2025-01-02 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:22:21] Production.INFO: ==16942== Releasing lock... [2025-01-02 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:23:05 [end_date_ymd] => 2025-01-02 02:23:05 [RateCDR] => 1 ) [2025-01-02 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:23:05' and `end` < '2025-01-02 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:23:18] Production.INFO: count ==310 [2025-01-02 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:23:05 - End Time 2025-01-02 02:23:05 [2025-01-02 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155134', 'tblTempUsageDetail_20' ) start [2025-01-02 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155134', 'tblTempUsageDetail_20' ) end [2025-01-02 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155134', 'tblTempVendorCDR_20' ) start [2025-01-02 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155134', 'tblTempVendorCDR_20' ) end [2025-01-02 02:23:18] Production.INFO: ProcessCDR(1,14155134,1,1,2) [2025-01-02 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155134', 'tblTempUsageDetail_20' ) start [2025-01-02 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155134', 'tblTempUsageDetail_20' ) end [2025-01-02 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:23:21] Production.INFO: ==17013== Releasing lock... [2025-01-02 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:24:04 [end_date_ymd] => 2025-01-02 02:24:04 [RateCDR] => 1 ) [2025-01-02 02:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:24:04' and `end` < '2025-01-02 02:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:24:19] Production.INFO: count ==310 [2025-01-02 02:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:24:04 - End Time 2025-01-02 02:24:04 [2025-01-02 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155139', 'tblTempUsageDetail_20' ) start [2025-01-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155139', 'tblTempUsageDetail_20' ) end [2025-01-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155139', 'tblTempVendorCDR_20' ) start [2025-01-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155139', 'tblTempVendorCDR_20' ) end [2025-01-02 02:24:19] Production.INFO: ProcessCDR(1,14155139,1,1,2) [2025-01-02 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155139', 'tblTempUsageDetail_20' ) start [2025-01-02 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155139', 'tblTempUsageDetail_20' ) end [2025-01-02 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:24:22] Production.INFO: ==17082== Releasing lock... [2025-01-02 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:25:05 [end_date_ymd] => 2025-01-02 02:25:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 23:25:05' and `end` < '2025-01-02 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-01-02 02:25:18] Production.INFO: count ==310 [2025-01-02 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:25:05 - End Time 2025-01-02 02:25:05 [2025-01-02 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155144', 'tblTempUsageDetail_20' ) start [2025-01-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155144', 'tblTempUsageDetail_20' ) end [2025-01-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155144', 'tblTempVendorCDR_20' ) start [2025-01-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155144', 'tblTempVendorCDR_20' ) end [2025-01-02 02:25:18] Production.INFO: ProcessCDR(1,14155144,1,1,2) [2025-01-02 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155144', 'tblTempUsageDetail_20' ) start [2025-01-02 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155144', 'tblTempUsageDetail_20' ) end [2025-01-02 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:25:21] Production.INFO: ==17157== Releasing lock... [2025-01-02 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:26:05 [end_date_ymd] => 2025-01-02 02:26:05 [RateCDR] => 1 ) [2025-01-02 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:26:05' and `end` < '2025-01-02 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:26:19] Production.INFO: count ==303 [2025-01-02 02:26:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:26:05 - End Time 2025-01-02 02:26:05 [2025-01-02 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155149', 'tblTempUsageDetail_20' ) start [2025-01-02 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155149', 'tblTempUsageDetail_20' ) end [2025-01-02 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155149', 'tblTempVendorCDR_20' ) start [2025-01-02 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155149', 'tblTempVendorCDR_20' ) end [2025-01-02 02:26:19] Production.INFO: ProcessCDR(1,14155149,1,1,2) [2025-01-02 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155149', 'tblTempUsageDetail_20' ) start [2025-01-02 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155149', 'tblTempUsageDetail_20' ) end [2025-01-02 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:26:22] Production.INFO: ==17231== Releasing lock... [2025-01-02 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:26:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:27:05 [end_date_ymd] => 2025-01-02 02:27:05 [RateCDR] => 1 ) [2025-01-02 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:27:05' and `end` < '2025-01-02 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:27:19] Production.INFO: count ==304 [2025-01-02 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:27:05 - End Time 2025-01-02 02:27:05 [2025-01-02 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155154', 'tblTempUsageDetail_20' ) start [2025-01-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155154', 'tblTempUsageDetail_20' ) end [2025-01-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155154', 'tblTempVendorCDR_20' ) start [2025-01-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155154', 'tblTempVendorCDR_20' ) end [2025-01-02 02:27:19] Production.INFO: ProcessCDR(1,14155154,1,1,2) [2025-01-02 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155154', 'tblTempUsageDetail_20' ) start [2025-01-02 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155154', 'tblTempUsageDetail_20' ) end [2025-01-02 02:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:27:23] Production.INFO: ==17302== Releasing lock... [2025-01-02 02:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:27:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:28:04 [end_date_ymd] => 2025-01-02 02:28:04 [RateCDR] => 1 ) [2025-01-02 02:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:28:04' and `end` < '2025-01-02 02:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:28:17] Production.INFO: count ==303 [2025-01-02 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:28:04 - End Time 2025-01-02 02:28:04 [2025-01-02 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155159', 'tblTempUsageDetail_20' ) start [2025-01-02 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155159', 'tblTempUsageDetail_20' ) end [2025-01-02 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155159', 'tblTempVendorCDR_20' ) start [2025-01-02 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155159', 'tblTempVendorCDR_20' ) end [2025-01-02 02:28:17] Production.INFO: ProcessCDR(1,14155159,1,1,2) [2025-01-02 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155159', 'tblTempUsageDetail_20' ) start [2025-01-02 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155159', 'tblTempUsageDetail_20' ) end [2025-01-02 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:28:20] Production.INFO: ==17373== Releasing lock... [2025-01-02 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:28:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:29:04 [end_date_ymd] => 2025-01-02 02:29:04 [RateCDR] => 1 ) [2025-01-02 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:29:04' and `end` < '2025-01-02 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:29:17] Production.INFO: count ==303 [2025-01-02 02:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:29:04 - End Time 2025-01-02 02:29:04 [2025-01-02 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155164', 'tblTempUsageDetail_20' ) start [2025-01-02 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155164', 'tblTempUsageDetail_20' ) end [2025-01-02 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155164', 'tblTempVendorCDR_20' ) start [2025-01-02 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155164', 'tblTempVendorCDR_20' ) end [2025-01-02 02:29:17] Production.INFO: ProcessCDR(1,14155164,1,1,2) [2025-01-02 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155164', 'tblTempUsageDetail_20' ) start [2025-01-02 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155164', 'tblTempUsageDetail_20' ) end [2025-01-02 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:29:20] Production.INFO: ==17443== Releasing lock... [2025-01-02 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:29:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:30:06 [end_date_ymd] => 2025-01-02 02:30:06 [RateCDR] => 1 ) [2025-01-02 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:30:06' and `end` < '2025-01-02 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:30:19] Production.INFO: count ==311 [2025-01-02 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:30:06 - End Time 2025-01-02 02:30:06 [2025-01-02 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155170', 'tblTempUsageDetail_20' ) start [2025-01-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155170', 'tblTempUsageDetail_20' ) end [2025-01-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155170', 'tblTempVendorCDR_20' ) start [2025-01-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155170', 'tblTempVendorCDR_20' ) end [2025-01-02 02:30:19] Production.INFO: ProcessCDR(1,14155170,1,1,2) [2025-01-02 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155170', 'tblTempUsageDetail_20' ) start [2025-01-02 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155170', 'tblTempUsageDetail_20' ) end [2025-01-02 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:30:22] Production.INFO: ==17517== Releasing lock... [2025-01-02 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:31:05 [end_date_ymd] => 2025-01-02 02:31:05 [RateCDR] => 1 ) [2025-01-02 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:31:05' and `end` < '2025-01-02 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:31:17] Production.INFO: count ==313 [2025-01-02 02:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:31:05 - End Time 2025-01-02 02:31:05 [2025-01-02 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155175', 'tblTempUsageDetail_20' ) start [2025-01-02 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155175', 'tblTempUsageDetail_20' ) end [2025-01-02 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155175', 'tblTempVendorCDR_20' ) start [2025-01-02 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155175', 'tblTempVendorCDR_20' ) end [2025-01-02 02:31:17] Production.INFO: ProcessCDR(1,14155175,1,1,2) [2025-01-02 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155175', 'tblTempUsageDetail_20' ) start [2025-01-02 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155175', 'tblTempUsageDetail_20' ) end [2025-01-02 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:31:21] Production.INFO: ==17591== Releasing lock... [2025-01-02 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:32:05 [end_date_ymd] => 2025-01-02 02:32:05 [RateCDR] => 1 ) [2025-01-02 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:32:05' and `end` < '2025-01-02 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:32:18] Production.INFO: count ==313 [2025-01-02 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:32:05 - End Time 2025-01-02 02:32:05 [2025-01-02 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155180', 'tblTempUsageDetail_20' ) start [2025-01-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155180', 'tblTempUsageDetail_20' ) end [2025-01-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155180', 'tblTempVendorCDR_20' ) start [2025-01-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155180', 'tblTempVendorCDR_20' ) end [2025-01-02 02:32:18] Production.INFO: ProcessCDR(1,14155180,1,1,2) [2025-01-02 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155180', 'tblTempUsageDetail_20' ) start [2025-01-02 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155180', 'tblTempUsageDetail_20' ) end [2025-01-02 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:32:21] Production.INFO: ==17667== Releasing lock... [2025-01-02 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:33:04 [end_date_ymd] => 2025-01-02 02:33:04 [RateCDR] => 1 ) [2025-01-02 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-01-01 23:33:04' and `end` < '2025-01-02 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-01-02 02:33:18] Production.INFO: count ==311 [2025-01-02 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:33:04 - End Time 2025-01-02 02:33:04 [2025-01-02 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155185', 'tblTempUsageDetail_20' ) start [2025-01-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155185', 'tblTempUsageDetail_20' ) end [2025-01-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155185', 'tblTempVendorCDR_20' ) start [2025-01-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155185', 'tblTempVendorCDR_20' ) end [2025-01-02 02:33:18] Production.INFO: ProcessCDR(1,14155185,1,1,2) [2025-01-02 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155185', 'tblTempUsageDetail_20' ) start [2025-01-02 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155185', 'tblTempUsageDetail_20' ) end [2025-01-02 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:33:21] Production.INFO: ==17778== Releasing lock... [2025-01-02 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:34:05 [end_date_ymd] => 2025-01-02 02:34:05 [RateCDR] => 1 ) [2025-01-02 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:34:05' and `end` < '2025-01-02 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:34:18] Production.INFO: count ==312 [2025-01-02 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:34:05 - End Time 2025-01-02 02:34:05 [2025-01-02 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155190', 'tblTempUsageDetail_20' ) start [2025-01-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155190', 'tblTempUsageDetail_20' ) end [2025-01-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155190', 'tblTempVendorCDR_20' ) start [2025-01-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155190', 'tblTempVendorCDR_20' ) end [2025-01-02 02:34:18] Production.INFO: ProcessCDR(1,14155190,1,1,2) [2025-01-02 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155190', 'tblTempUsageDetail_20' ) start [2025-01-02 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155190', 'tblTempUsageDetail_20' ) end [2025-01-02 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:34:23] Production.INFO: ==17869== Releasing lock... [2025-01-02 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:34:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:35:04 [end_date_ymd] => 2025-01-02 02:35:04 [RateCDR] => 1 ) [2025-01-02 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:35:04' and `end` < '2025-01-02 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:35:18] Production.INFO: count ==316 [2025-01-02 02:35:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:35:04 - End Time 2025-01-02 02:35:04 [2025-01-02 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155195', 'tblTempUsageDetail_20' ) start [2025-01-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155195', 'tblTempUsageDetail_20' ) end [2025-01-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155195', 'tblTempVendorCDR_20' ) start [2025-01-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155195', 'tblTempVendorCDR_20' ) end [2025-01-02 02:35:19] Production.INFO: ProcessCDR(1,14155195,1,1,2) [2025-01-02 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155195', 'tblTempUsageDetail_20' ) start [2025-01-02 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155195', 'tblTempUsageDetail_20' ) end [2025-01-02 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:35:23] Production.INFO: ==17977== Releasing lock... [2025-01-02 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:35:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:36:05 [end_date_ymd] => 2025-01-02 02:36:05 [RateCDR] => 1 ) [2025-01-02 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:36:05' and `end` < '2025-01-02 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:36:18] Production.INFO: count ==316 [2025-01-02 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:36:05 - End Time 2025-01-02 02:36:05 [2025-01-02 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155200', 'tblTempUsageDetail_20' ) start [2025-01-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155200', 'tblTempUsageDetail_20' ) end [2025-01-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155200', 'tblTempVendorCDR_20' ) start [2025-01-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155200', 'tblTempVendorCDR_20' ) end [2025-01-02 02:36:18] Production.INFO: ProcessCDR(1,14155200,1,1,2) [2025-01-02 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155200', 'tblTempUsageDetail_20' ) start [2025-01-02 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155200', 'tblTempUsageDetail_20' ) end [2025-01-02 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:36:21] Production.INFO: ==18072== Releasing lock... [2025-01-02 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:37:04 [end_date_ymd] => 2025-01-02 02:37:04 [RateCDR] => 1 ) [2025-01-02 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:37:04' and `end` < '2025-01-02 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:37:17] Production.INFO: count ==316 [2025-01-02 02:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:37:04 - End Time 2025-01-02 02:37:04 [2025-01-02 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155205', 'tblTempUsageDetail_20' ) start [2025-01-02 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155205', 'tblTempUsageDetail_20' ) end [2025-01-02 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155205', 'tblTempVendorCDR_20' ) start [2025-01-02 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155205', 'tblTempVendorCDR_20' ) end [2025-01-02 02:37:17] Production.INFO: ProcessCDR(1,14155205,1,1,2) [2025-01-02 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155205', 'tblTempUsageDetail_20' ) start [2025-01-02 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155205', 'tblTempUsageDetail_20' ) end [2025-01-02 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:37:20] Production.INFO: ==18144== Releasing lock... [2025-01-02 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:37:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:38:05 [end_date_ymd] => 2025-01-02 02:38:05 [RateCDR] => 1 ) [2025-01-02 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:38:05' and `end` < '2025-01-02 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:38:19] Production.INFO: count ==316 [2025-01-02 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:38:05 - End Time 2025-01-02 02:38:05 [2025-01-02 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155210', 'tblTempUsageDetail_20' ) start [2025-01-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155210', 'tblTempUsageDetail_20' ) end [2025-01-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155210', 'tblTempVendorCDR_20' ) start [2025-01-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155210', 'tblTempVendorCDR_20' ) end [2025-01-02 02:38:19] Production.INFO: ProcessCDR(1,14155210,1,1,2) [2025-01-02 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155210', 'tblTempUsageDetail_20' ) start [2025-01-02 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155210', 'tblTempUsageDetail_20' ) end [2025-01-02 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:38:22] Production.INFO: ==18220== Releasing lock... [2025-01-02 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:39:05 [end_date_ymd] => 2025-01-02 02:39:05 [RateCDR] => 1 ) [2025-01-02 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:39:05' and `end` < '2025-01-02 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:39:18] Production.INFO: count ==313 [2025-01-02 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:39:05 - End Time 2025-01-02 02:39:05 [2025-01-02 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155215', 'tblTempUsageDetail_20' ) start [2025-01-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155215', 'tblTempUsageDetail_20' ) end [2025-01-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155215', 'tblTempVendorCDR_20' ) start [2025-01-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155215', 'tblTempVendorCDR_20' ) end [2025-01-02 02:39:18] Production.INFO: ProcessCDR(1,14155215,1,1,2) [2025-01-02 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155215', 'tblTempUsageDetail_20' ) start [2025-01-02 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155215', 'tblTempUsageDetail_20' ) end [2025-01-02 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:39:21] Production.INFO: ==18292== Releasing lock... [2025-01-02 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:40:05 [end_date_ymd] => 2025-01-02 02:40:05 [RateCDR] => 1 ) [2025-01-02 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:40:05' and `end` < '2025-01-02 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:40:18] Production.INFO: count ==313 [2025-01-02 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:40:05 - End Time 2025-01-02 02:40:05 [2025-01-02 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155221', 'tblTempUsageDetail_20' ) start [2025-01-02 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155221', 'tblTempUsageDetail_20' ) end [2025-01-02 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155221', 'tblTempVendorCDR_20' ) start [2025-01-02 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155221', 'tblTempVendorCDR_20' ) end [2025-01-02 02:40:18] Production.INFO: ProcessCDR(1,14155221,1,1,2) [2025-01-02 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155221', 'tblTempUsageDetail_20' ) start [2025-01-02 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155221', 'tblTempUsageDetail_20' ) end [2025-01-02 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:40:21] Production.INFO: ==18369== Releasing lock... [2025-01-02 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:40:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:41:05 [end_date_ymd] => 2025-01-02 02:41:05 [RateCDR] => 1 ) [2025-01-02 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:41:05' and `end` < '2025-01-02 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:41:18] Production.INFO: count ==313 [2025-01-02 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:41:05 - End Time 2025-01-02 02:41:05 [2025-01-02 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155226', 'tblTempUsageDetail_20' ) start [2025-01-02 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155226', 'tblTempUsageDetail_20' ) end [2025-01-02 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155226', 'tblTempVendorCDR_20' ) start [2025-01-02 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155226', 'tblTempVendorCDR_20' ) end [2025-01-02 02:41:18] Production.INFO: ProcessCDR(1,14155226,1,1,2) [2025-01-02 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155226', 'tblTempUsageDetail_20' ) start [2025-01-02 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155226', 'tblTempUsageDetail_20' ) end [2025-01-02 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:41:21] Production.INFO: ==18445== Releasing lock... [2025-01-02 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:42:05 [end_date_ymd] => 2025-01-02 02:42:05 [RateCDR] => 1 ) [2025-01-02 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:42:05' and `end` < '2025-01-02 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:42:18] Production.INFO: count ==312 [2025-01-02 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:42:05 - End Time 2025-01-02 02:42:05 [2025-01-02 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155231', 'tblTempUsageDetail_20' ) start [2025-01-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155231', 'tblTempUsageDetail_20' ) end [2025-01-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155231', 'tblTempVendorCDR_20' ) start [2025-01-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155231', 'tblTempVendorCDR_20' ) end [2025-01-02 02:42:18] Production.INFO: ProcessCDR(1,14155231,1,1,2) [2025-01-02 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155231', 'tblTempUsageDetail_20' ) start [2025-01-02 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155231', 'tblTempUsageDetail_20' ) end [2025-01-02 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:42:21] Production.INFO: ==18517== Releasing lock... [2025-01-02 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:43:05 [end_date_ymd] => 2025-01-02 02:43:05 [RateCDR] => 1 ) [2025-01-02 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:43:05' and `end` < '2025-01-02 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:43:17] Production.INFO: count ==312 [2025-01-02 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:43:05 - End Time 2025-01-02 02:43:05 [2025-01-02 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155236', 'tblTempUsageDetail_20' ) start [2025-01-02 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155236', 'tblTempUsageDetail_20' ) end [2025-01-02 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155236', 'tblTempVendorCDR_20' ) start [2025-01-02 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155236', 'tblTempVendorCDR_20' ) end [2025-01-02 02:43:17] Production.INFO: ProcessCDR(1,14155236,1,1,2) [2025-01-02 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155236', 'tblTempUsageDetail_20' ) start [2025-01-02 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155236', 'tblTempUsageDetail_20' ) end [2025-01-02 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:43:21] Production.INFO: ==18590== Releasing lock... [2025-01-02 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:44:05 [end_date_ymd] => 2025-01-02 02:44:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 23:44:05' and `end` < '2025-01-02 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-01-02 02:44:19] Production.INFO: count ==312 [2025-01-02 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:44:05 - End Time 2025-01-02 02:44:05 [2025-01-02 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155241', 'tblTempUsageDetail_20' ) start [2025-01-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155241', 'tblTempUsageDetail_20' ) end [2025-01-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155241', 'tblTempVendorCDR_20' ) start [2025-01-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155241', 'tblTempVendorCDR_20' ) end [2025-01-02 02:44:19] Production.INFO: ProcessCDR(1,14155241,1,1,2) [2025-01-02 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155241', 'tblTempUsageDetail_20' ) start [2025-01-02 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155241', 'tblTempUsageDetail_20' ) end [2025-01-02 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:44:22] Production.INFO: ==18661== Releasing lock... [2025-01-02 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:44:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:45:05 [end_date_ymd] => 2025-01-02 02:45:05 [RateCDR] => 1 ) [2025-01-02 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:45:05' and `end` < '2025-01-02 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:45:19] Production.INFO: count ==312 [2025-01-02 02:45:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:45:05 - End Time 2025-01-02 02:45:05 [2025-01-02 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155246', 'tblTempUsageDetail_20' ) start [2025-01-02 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155246', 'tblTempUsageDetail_20' ) end [2025-01-02 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155246', 'tblTempVendorCDR_20' ) start [2025-01-02 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155246', 'tblTempVendorCDR_20' ) end [2025-01-02 02:45:19] Production.INFO: ProcessCDR(1,14155246,1,1,2) [2025-01-02 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155246', 'tblTempUsageDetail_20' ) start [2025-01-02 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155246', 'tblTempUsageDetail_20' ) end [2025-01-02 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:45:22] Production.INFO: ==18733== Releasing lock... [2025-01-02 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:46:05 [end_date_ymd] => 2025-01-02 02:46:05 [RateCDR] => 1 ) [2025-01-02 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:46:05' and `end` < '2025-01-02 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:46:18] Production.INFO: count ==312 [2025-01-02 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:46:05 - End Time 2025-01-02 02:46:05 [2025-01-02 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155251', 'tblTempUsageDetail_20' ) start [2025-01-02 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155251', 'tblTempUsageDetail_20' ) end [2025-01-02 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155251', 'tblTempVendorCDR_20' ) start [2025-01-02 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155251', 'tblTempVendorCDR_20' ) end [2025-01-02 02:46:18] Production.INFO: ProcessCDR(1,14155251,1,1,2) [2025-01-02 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155251', 'tblTempUsageDetail_20' ) start [2025-01-02 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155251', 'tblTempUsageDetail_20' ) end [2025-01-02 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:46:21] Production.INFO: ==18804== Releasing lock... [2025-01-02 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:47:05 [end_date_ymd] => 2025-01-02 02:47:05 [RateCDR] => 1 ) [2025-01-02 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:47:05' and `end` < '2025-01-02 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:47:19] Production.INFO: count ==310 [2025-01-02 02:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:47:05 - End Time 2025-01-02 02:47:05 [2025-01-02 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155256', 'tblTempUsageDetail_20' ) start [2025-01-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155256', 'tblTempUsageDetail_20' ) end [2025-01-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155256', 'tblTempVendorCDR_20' ) start [2025-01-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155256', 'tblTempVendorCDR_20' ) end [2025-01-02 02:47:19] Production.INFO: ProcessCDR(1,14155256,1,1,2) [2025-01-02 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155256', 'tblTempUsageDetail_20' ) start [2025-01-02 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155256', 'tblTempUsageDetail_20' ) end [2025-01-02 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:47:22] Production.INFO: ==18876== Releasing lock... [2025-01-02 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:48:05 [end_date_ymd] => 2025-01-02 02:48:05 [RateCDR] => 1 ) [2025-01-02 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:48:05' and `end` < '2025-01-02 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:48:20] Production.INFO: count ==307 [2025-01-02 02:48:20] Production.ERROR: pbx CDR StartTime 2025-01-01 23:48:05 - End Time 2025-01-02 02:48:05 [2025-01-02 02:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155261', 'tblTempUsageDetail_20' ) start [2025-01-02 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155261', 'tblTempUsageDetail_20' ) end [2025-01-02 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155261', 'tblTempVendorCDR_20' ) start [2025-01-02 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155261', 'tblTempVendorCDR_20' ) end [2025-01-02 02:48:20] Production.INFO: ProcessCDR(1,14155261,1,1,2) [2025-01-02 02:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155261', 'tblTempUsageDetail_20' ) start [2025-01-02 02:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155261', 'tblTempUsageDetail_20' ) end [2025-01-02 02:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:48:24] Production.INFO: ==18947== Releasing lock... [2025-01-02 02:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:48:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:49:05 [end_date_ymd] => 2025-01-02 02:49:05 [RateCDR] => 1 ) [2025-01-02 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:49:05' and `end` < '2025-01-02 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:49:17] Production.INFO: count ==306 [2025-01-02 02:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:49:05 - End Time 2025-01-02 02:49:05 [2025-01-02 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155266', 'tblTempUsageDetail_20' ) start [2025-01-02 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155266', 'tblTempUsageDetail_20' ) end [2025-01-02 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155266', 'tblTempVendorCDR_20' ) start [2025-01-02 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155266', 'tblTempVendorCDR_20' ) end [2025-01-02 02:49:17] Production.INFO: ProcessCDR(1,14155266,1,1,2) [2025-01-02 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155266', 'tblTempUsageDetail_20' ) start [2025-01-02 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155266', 'tblTempUsageDetail_20' ) end [2025-01-02 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:49:20] Production.INFO: ==19057== Releasing lock... [2025-01-02 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:49:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:50:06 [end_date_ymd] => 2025-01-02 02:50:06 [RateCDR] => 1 ) [2025-01-02 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:50:06' and `end` < '2025-01-02 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:50:19] Production.INFO: count ==309 [2025-01-02 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:50:06 - End Time 2025-01-02 02:50:06 [2025-01-02 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155272', 'tblTempUsageDetail_20' ) start [2025-01-02 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155272', 'tblTempUsageDetail_20' ) end [2025-01-02 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155272', 'tblTempVendorCDR_20' ) start [2025-01-02 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155272', 'tblTempVendorCDR_20' ) end [2025-01-02 02:50:19] Production.INFO: ProcessCDR(1,14155272,1,1,2) [2025-01-02 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155272', 'tblTempUsageDetail_20' ) start [2025-01-02 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155272', 'tblTempUsageDetail_20' ) end [2025-01-02 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:50:22] Production.INFO: ==19129== Releasing lock... [2025-01-02 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:51:04 [end_date_ymd] => 2025-01-02 02:51:04 [RateCDR] => 1 ) [2025-01-02 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:51:04' and `end` < '2025-01-02 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:51:17] Production.INFO: count ==306 [2025-01-02 02:51:17] Production.ERROR: pbx CDR StartTime 2025-01-01 23:51:04 - End Time 2025-01-02 02:51:04 [2025-01-02 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155277', 'tblTempUsageDetail_20' ) start [2025-01-02 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155277', 'tblTempUsageDetail_20' ) end [2025-01-02 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155277', 'tblTempVendorCDR_20' ) start [2025-01-02 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155277', 'tblTempVendorCDR_20' ) end [2025-01-02 02:51:17] Production.INFO: ProcessCDR(1,14155277,1,1,2) [2025-01-02 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155277', 'tblTempUsageDetail_20' ) start [2025-01-02 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155277', 'tblTempUsageDetail_20' ) end [2025-01-02 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:51:20] Production.INFO: ==19203== Releasing lock... [2025-01-02 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:51:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:52:05 [end_date_ymd] => 2025-01-02 02:52:05 [RateCDR] => 1 ) [2025-01-02 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:52:05' and `end` < '2025-01-02 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:52:18] Production.INFO: count ==306 [2025-01-02 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:52:05 - End Time 2025-01-02 02:52:05 [2025-01-02 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155282', 'tblTempUsageDetail_20' ) start [2025-01-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155282', 'tblTempUsageDetail_20' ) end [2025-01-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155282', 'tblTempVendorCDR_20' ) start [2025-01-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155282', 'tblTempVendorCDR_20' ) end [2025-01-02 02:52:18] Production.INFO: ProcessCDR(1,14155282,1,1,2) [2025-01-02 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155282', 'tblTempUsageDetail_20' ) start [2025-01-02 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155282', 'tblTempUsageDetail_20' ) end [2025-01-02 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:52:21] Production.INFO: ==19274== Releasing lock... [2025-01-02 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:53:05 [end_date_ymd] => 2025-01-02 02:53:05 [RateCDR] => 1 ) [2025-01-02 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:53:05' and `end` < '2025-01-02 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:53:18] Production.INFO: count ==302 [2025-01-02 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:53:05 - End Time 2025-01-02 02:53:05 [2025-01-02 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155287', 'tblTempUsageDetail_20' ) start [2025-01-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155287', 'tblTempUsageDetail_20' ) end [2025-01-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155287', 'tblTempVendorCDR_20' ) start [2025-01-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155287', 'tblTempVendorCDR_20' ) end [2025-01-02 02:53:18] Production.INFO: ProcessCDR(1,14155287,1,1,2) [2025-01-02 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155287', 'tblTempUsageDetail_20' ) start [2025-01-02 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155287', 'tblTempUsageDetail_20' ) end [2025-01-02 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:53:21] Production.INFO: ==19347== Releasing lock... [2025-01-02 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:54:05 [end_date_ymd] => 2025-01-02 02:54:05 [RateCDR] => 1 ) [2025-01-02 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:54:05' and `end` < '2025-01-02 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:54:19] Production.INFO: count ==302 [2025-01-02 02:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 23:54:05 - End Time 2025-01-02 02:54:05 [2025-01-02 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155292', 'tblTempUsageDetail_20' ) start [2025-01-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155292', 'tblTempUsageDetail_20' ) end [2025-01-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155292', 'tblTempVendorCDR_20' ) start [2025-01-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155292', 'tblTempVendorCDR_20' ) end [2025-01-02 02:54:19] Production.INFO: ProcessCDR(1,14155292,1,1,2) [2025-01-02 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155292', 'tblTempUsageDetail_20' ) start [2025-01-02 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155292', 'tblTempUsageDetail_20' ) end [2025-01-02 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:54:22] Production.INFO: ==19420== Releasing lock... [2025-01-02 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:55:05 [end_date_ymd] => 2025-01-02 02:55:05 [RateCDR] => 1 ) [2025-01-02 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:55:05' and `end` < '2025-01-02 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:55:18] Production.INFO: count ==299 [2025-01-02 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:55:05 - End Time 2025-01-02 02:55:05 [2025-01-02 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155297', 'tblTempUsageDetail_20' ) start [2025-01-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155297', 'tblTempUsageDetail_20' ) end [2025-01-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155297', 'tblTempVendorCDR_20' ) start [2025-01-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155297', 'tblTempVendorCDR_20' ) end [2025-01-02 02:55:18] Production.INFO: ProcessCDR(1,14155297,1,1,2) [2025-01-02 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155297', 'tblTempUsageDetail_20' ) start [2025-01-02 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155297', 'tblTempUsageDetail_20' ) end [2025-01-02 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:55:22] Production.INFO: ==19491== Releasing lock... [2025-01-02 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:56:05 [end_date_ymd] => 2025-01-02 02:56:05 [RateCDR] => 1 ) [2025-01-02 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:56:05' and `end` < '2025-01-02 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:56:18] Production.INFO: count ==299 [2025-01-02 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:56:05 - End Time 2025-01-02 02:56:05 [2025-01-02 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155302', 'tblTempUsageDetail_20' ) start [2025-01-02 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155302', 'tblTempUsageDetail_20' ) end [2025-01-02 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155302', 'tblTempVendorCDR_20' ) start [2025-01-02 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155302', 'tblTempVendorCDR_20' ) end [2025-01-02 02:56:18] Production.INFO: ProcessCDR(1,14155302,1,1,2) [2025-01-02 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155302', 'tblTempUsageDetail_20' ) start [2025-01-02 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155302', 'tblTempUsageDetail_20' ) end [2025-01-02 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:56:21] Production.INFO: ==19561== Releasing lock... [2025-01-02 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:57:04 [end_date_ymd] => 2025-01-02 02:57:04 [RateCDR] => 1 ) [2025-01-02 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:57:04' and `end` < '2025-01-02 02:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:57:18] Production.INFO: count ==299 [2025-01-02 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:57:04 - End Time 2025-01-02 02:57:04 [2025-01-02 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155307', 'tblTempUsageDetail_20' ) start [2025-01-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155307', 'tblTempUsageDetail_20' ) end [2025-01-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155307', 'tblTempVendorCDR_20' ) start [2025-01-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155307', 'tblTempVendorCDR_20' ) end [2025-01-02 02:57:18] Production.INFO: ProcessCDR(1,14155307,1,1,2) [2025-01-02 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155307', 'tblTempUsageDetail_20' ) start [2025-01-02 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155307', 'tblTempUsageDetail_20' ) end [2025-01-02 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:57:21] Production.INFO: ==19631== Releasing lock... [2025-01-02 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:58:05 [end_date_ymd] => 2025-01-02 02:58:05 [RateCDR] => 1 ) [2025-01-02 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 23:58:05' and `end` < '2025-01-02 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 02:58:18] Production.INFO: count ==345 [2025-01-02 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 23:58:05 - End Time 2025-01-02 02:58:05 [2025-01-02 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155312', 'tblTempUsageDetail_20' ) start [2025-01-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155312', 'tblTempUsageDetail_20' ) end [2025-01-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155312', 'tblTempVendorCDR_20' ) start [2025-01-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155312', 'tblTempVendorCDR_20' ) end [2025-01-02 02:58:18] Production.INFO: ProcessCDR(1,14155312,1,1,2) [2025-01-02 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155312', 'tblTempUsageDetail_20' ) start [2025-01-02 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155312', 'tblTempUsageDetail_20' ) end [2025-01-02 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:58:21] Production.INFO: ==19702== Releasing lock... [2025-01-02 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 23:59:05 [end_date_ymd] => 2025-01-02 02:59:05 [RateCDR] => 1 ) [2025-01-02 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-01-01 23:59:05' and `end` < '2025-01-02 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-01-02 02:59:20] Production.INFO: count ==345 [2025-01-02 02:59:20] Production.ERROR: pbx CDR StartTime 2025-01-01 23:59:05 - End Time 2025-01-02 02:59:05 [2025-01-02 02:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155317', 'tblTempUsageDetail_20' ) start [2025-01-02 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155317', 'tblTempUsageDetail_20' ) end [2025-01-02 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155317', 'tblTempVendorCDR_20' ) start [2025-01-02 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155317', 'tblTempVendorCDR_20' ) end [2025-01-02 02:59:20] Production.INFO: ProcessCDR(1,14155317,1,1,2) [2025-01-02 02:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 02:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155317', 'tblTempUsageDetail_20' ) start [2025-01-02 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155317', 'tblTempUsageDetail_20' ) end [2025-01-02 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 02:59:23] Production.INFO: ==19772== Releasing lock... [2025-01-02 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 02:59:23] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:00:05 [end_date_ymd] => 2025-01-02 03:00:05 [RateCDR] => 1 ) [2025-01-02 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:00:05' and `end` < '2025-01-02 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:00:18] Production.INFO: count ==347 [2025-01-02 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:00:05 - End Time 2025-01-02 03:00:05 [2025-01-02 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155323', 'tblTempUsageDetail_20' ) start [2025-01-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155323', 'tblTempUsageDetail_20' ) end [2025-01-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155323', 'tblTempVendorCDR_20' ) start [2025-01-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155323', 'tblTempVendorCDR_20' ) end [2025-01-02 03:00:18] Production.INFO: ProcessCDR(1,14155323,1,1,2) [2025-01-02 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155323', 'tblTempUsageDetail_20' ) start [2025-01-02 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155323', 'tblTempUsageDetail_20' ) end [2025-01-02 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:00:23] Production.INFO: ==19846== Releasing lock... [2025-01-02 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:00:23] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:01:05 [end_date_ymd] => 2025-01-02 03:01:05 [RateCDR] => 1 ) [2025-01-02 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:01:05' and `end` < '2025-01-02 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:01:18] Production.INFO: count ==347 [2025-01-02 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:01:05 - End Time 2025-01-02 03:01:05 [2025-01-02 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155328', 'tblTempUsageDetail_20' ) start [2025-01-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155328', 'tblTempUsageDetail_20' ) end [2025-01-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155328', 'tblTempVendorCDR_20' ) start [2025-01-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155328', 'tblTempVendorCDR_20' ) end [2025-01-02 03:01:18] Production.INFO: ProcessCDR(1,14155328,1,1,2) [2025-01-02 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155328', 'tblTempUsageDetail_20' ) start [2025-01-02 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155328', 'tblTempUsageDetail_20' ) end [2025-01-02 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:01:21] Production.INFO: ==19935== Releasing lock... [2025-01-02 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:01:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:02:04 [end_date_ymd] => 2025-01-02 03:02:04 [RateCDR] => 1 ) [2025-01-02 03:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:02:04' and `end` < '2025-01-02 03:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:02:19] Production.INFO: count ==345 [2025-01-02 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:02:04 - End Time 2025-01-02 03:02:04 [2025-01-02 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155333', 'tblTempUsageDetail_20' ) start [2025-01-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155333', 'tblTempUsageDetail_20' ) end [2025-01-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155333', 'tblTempVendorCDR_20' ) start [2025-01-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155333', 'tblTempVendorCDR_20' ) end [2025-01-02 03:02:19] Production.INFO: ProcessCDR(1,14155333,1,1,2) [2025-01-02 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155333', 'tblTempUsageDetail_20' ) start [2025-01-02 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155333', 'tblTempUsageDetail_20' ) end [2025-01-02 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:02:22] Production.INFO: ==20082== Releasing lock... [2025-01-02 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:02:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:03:05 [end_date_ymd] => 2025-01-02 03:03:05 [RateCDR] => 1 ) [2025-01-02 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:03:05' and `end` < '2025-01-02 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:03:19] Production.INFO: count ==345 [2025-01-02 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:03:05 - End Time 2025-01-02 03:03:05 [2025-01-02 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155338', 'tblTempUsageDetail_20' ) start [2025-01-02 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155338', 'tblTempUsageDetail_20' ) end [2025-01-02 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155338', 'tblTempVendorCDR_20' ) start [2025-01-02 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155338', 'tblTempVendorCDR_20' ) end [2025-01-02 03:03:19] Production.INFO: ProcessCDR(1,14155338,1,1,2) [2025-01-02 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155338', 'tblTempUsageDetail_20' ) start [2025-01-02 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155338', 'tblTempUsageDetail_20' ) end [2025-01-02 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:03:22] Production.INFO: ==20150== Releasing lock... [2025-01-02 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:03:22] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:04:05 [end_date_ymd] => 2025-01-02 03:04:05 [RateCDR] => 1 ) [2025-01-02 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:04:05' and `end` < '2025-01-02 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:04:17] Production.INFO: count ==344 [2025-01-02 03:04:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:04:05 - End Time 2025-01-02 03:04:05 [2025-01-02 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155343', 'tblTempUsageDetail_20' ) start [2025-01-02 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155343', 'tblTempUsageDetail_20' ) end [2025-01-02 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155343', 'tblTempVendorCDR_20' ) start [2025-01-02 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155343', 'tblTempVendorCDR_20' ) end [2025-01-02 03:04:18] Production.INFO: ProcessCDR(1,14155343,1,1,2) [2025-01-02 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155343', 'tblTempUsageDetail_20' ) start [2025-01-02 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155343', 'tblTempUsageDetail_20' ) end [2025-01-02 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:04:21] Production.INFO: ==20221== Releasing lock... [2025-01-02 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:04:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:05:05 [end_date_ymd] => 2025-01-02 03:05:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:05:05' and `end` < '2025-01-02 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-01-02 03:05:18] Production.INFO: count ==344 [2025-01-02 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:05:05 - End Time 2025-01-02 03:05:05 [2025-01-02 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155348', 'tblTempUsageDetail_20' ) start [2025-01-02 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155348', 'tblTempUsageDetail_20' ) end [2025-01-02 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155348', 'tblTempVendorCDR_20' ) start [2025-01-02 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155348', 'tblTempVendorCDR_20' ) end [2025-01-02 03:05:18] Production.INFO: ProcessCDR(1,14155348,1,1,2) [2025-01-02 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155348', 'tblTempUsageDetail_20' ) start [2025-01-02 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155348', 'tblTempUsageDetail_20' ) end [2025-01-02 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:05:21] Production.INFO: ==20329== Releasing lock... [2025-01-02 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:06:05 [end_date_ymd] => 2025-01-02 03:06:05 [RateCDR] => 1 ) [2025-01-02 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:06:05' and `end` < '2025-01-02 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:06:18] Production.INFO: count ==344 [2025-01-02 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:06:05 - End Time 2025-01-02 03:06:05 [2025-01-02 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155353', 'tblTempUsageDetail_20' ) start [2025-01-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155353', 'tblTempUsageDetail_20' ) end [2025-01-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155353', 'tblTempVendorCDR_20' ) start [2025-01-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155353', 'tblTempVendorCDR_20' ) end [2025-01-02 03:06:18] Production.INFO: ProcessCDR(1,14155353,1,1,2) [2025-01-02 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155353', 'tblTempUsageDetail_20' ) start [2025-01-02 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155353', 'tblTempUsageDetail_20' ) end [2025-01-02 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:06:21] Production.INFO: ==20478== Releasing lock... [2025-01-02 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:06:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:07:05 [end_date_ymd] => 2025-01-02 03:07:05 [RateCDR] => 1 ) [2025-01-02 03:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:07:05' and `end` < '2025-01-02 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:07:18] Production.INFO: count ==344 [2025-01-02 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:07:05 - End Time 2025-01-02 03:07:05 [2025-01-02 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155358', 'tblTempUsageDetail_20' ) start [2025-01-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155358', 'tblTempUsageDetail_20' ) end [2025-01-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155358', 'tblTempVendorCDR_20' ) start [2025-01-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155358', 'tblTempVendorCDR_20' ) end [2025-01-02 03:07:18] Production.INFO: ProcessCDR(1,14155358,1,1,2) [2025-01-02 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155358', 'tblTempUsageDetail_20' ) start [2025-01-02 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155358', 'tblTempUsageDetail_20' ) end [2025-01-02 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:07:21] Production.INFO: ==20549== Releasing lock... [2025-01-02 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:07:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:08:05 [end_date_ymd] => 2025-01-02 03:08:05 [RateCDR] => 1 ) [2025-01-02 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:08:05' and `end` < '2025-01-02 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:08:18] Production.INFO: count ==343 [2025-01-02 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:08:05 - End Time 2025-01-02 03:08:05 [2025-01-02 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155363', 'tblTempUsageDetail_20' ) start [2025-01-02 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155363', 'tblTempUsageDetail_20' ) end [2025-01-02 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155363', 'tblTempVendorCDR_20' ) start [2025-01-02 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155363', 'tblTempVendorCDR_20' ) end [2025-01-02 03:08:18] Production.INFO: ProcessCDR(1,14155363,1,1,2) [2025-01-02 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155363', 'tblTempUsageDetail_20' ) start [2025-01-02 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155363', 'tblTempUsageDetail_20' ) end [2025-01-02 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:08:21] Production.INFO: ==20620== Releasing lock... [2025-01-02 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:08:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:09:05 [end_date_ymd] => 2025-01-02 03:09:05 [RateCDR] => 1 ) [2025-01-02 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:09:05' and `end` < '2025-01-02 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:09:18] Production.INFO: count ==343 [2025-01-02 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:09:05 - End Time 2025-01-02 03:09:05 [2025-01-02 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155368', 'tblTempUsageDetail_20' ) start [2025-01-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155368', 'tblTempUsageDetail_20' ) end [2025-01-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155368', 'tblTempVendorCDR_20' ) start [2025-01-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155368', 'tblTempVendorCDR_20' ) end [2025-01-02 03:09:18] Production.INFO: ProcessCDR(1,14155368,1,1,2) [2025-01-02 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155368', 'tblTempUsageDetail_20' ) start [2025-01-02 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155368', 'tblTempUsageDetail_20' ) end [2025-01-02 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:09:21] Production.INFO: ==20766== Releasing lock... [2025-01-02 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:09:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:10:05 [end_date_ymd] => 2025-01-02 03:10:05 [RateCDR] => 1 ) [2025-01-02 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:10:05' and `end` < '2025-01-02 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:10:18] Production.INFO: count ==335 [2025-01-02 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:10:05 - End Time 2025-01-02 03:10:05 [2025-01-02 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155374', 'tblTempUsageDetail_20' ) start [2025-01-02 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155374', 'tblTempUsageDetail_20' ) end [2025-01-02 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155374', 'tblTempVendorCDR_20' ) start [2025-01-02 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155374', 'tblTempVendorCDR_20' ) end [2025-01-02 03:10:18] Production.INFO: ProcessCDR(1,14155374,1,1,2) [2025-01-02 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155374', 'tblTempUsageDetail_20' ) start [2025-01-02 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155374', 'tblTempUsageDetail_20' ) end [2025-01-02 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:10:21] Production.INFO: ==20838== Releasing lock... [2025-01-02 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:11:04 [end_date_ymd] => 2025-01-02 03:11:04 [RateCDR] => 1 ) [2025-01-02 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:11:04' and `end` < '2025-01-02 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:11:17] Production.INFO: count ==313 [2025-01-02 03:11:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:11:04 - End Time 2025-01-02 03:11:04 [2025-01-02 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155377', 'tblTempUsageDetail_20' ) start [2025-01-02 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155377', 'tblTempUsageDetail_20' ) end [2025-01-02 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155377', 'tblTempVendorCDR_20' ) start [2025-01-02 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155377', 'tblTempVendorCDR_20' ) end [2025-01-02 03:11:17] Production.INFO: ProcessCDR(1,14155377,1,1,2) [2025-01-02 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155377', 'tblTempUsageDetail_20' ) start [2025-01-02 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155377', 'tblTempUsageDetail_20' ) end [2025-01-02 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:11:20] Production.INFO: ==20909== Releasing lock... [2025-01-02 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:12:04 [end_date_ymd] => 2025-01-02 03:12:04 [RateCDR] => 1 ) [2025-01-02 03:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:12:04' and `end` < '2025-01-02 03:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:12:17] Production.INFO: count ==314 [2025-01-02 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:12:04 - End Time 2025-01-02 03:12:04 [2025-01-02 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155384', 'tblTempUsageDetail_20' ) start [2025-01-02 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155384', 'tblTempUsageDetail_20' ) end [2025-01-02 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155384', 'tblTempVendorCDR_20' ) start [2025-01-02 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155384', 'tblTempVendorCDR_20' ) end [2025-01-02 03:12:17] Production.INFO: ProcessCDR(1,14155384,1,1,2) [2025-01-02 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155384', 'tblTempUsageDetail_20' ) start [2025-01-02 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155384', 'tblTempUsageDetail_20' ) end [2025-01-02 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:12:22] Production.INFO: ==20978== Releasing lock... [2025-01-02 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:13:05 [end_date_ymd] => 2025-01-02 03:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:13:05' and `end` < '2025-01-02 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-01-02 03:13:18] Production.INFO: count ==314 [2025-01-02 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:13:05 - End Time 2025-01-02 03:13:05 [2025-01-02 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155389', 'tblTempUsageDetail_20' ) start [2025-01-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155389', 'tblTempUsageDetail_20' ) end [2025-01-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155389', 'tblTempVendorCDR_20' ) start [2025-01-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155389', 'tblTempVendorCDR_20' ) end [2025-01-02 03:13:18] Production.INFO: ProcessCDR(1,14155389,1,1,2) [2025-01-02 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155389', 'tblTempUsageDetail_20' ) start [2025-01-02 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155389', 'tblTempUsageDetail_20' ) end [2025-01-02 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:13:21] Production.INFO: ==21127== Releasing lock... [2025-01-02 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:14:05 [end_date_ymd] => 2025-01-02 03:14:05 [RateCDR] => 1 ) [2025-01-02 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:14:05' and `end` < '2025-01-02 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:14:18] Production.INFO: count ==314 [2025-01-02 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:14:05 - End Time 2025-01-02 03:14:05 [2025-01-02 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155394', 'tblTempUsageDetail_20' ) start [2025-01-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155394', 'tblTempUsageDetail_20' ) end [2025-01-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155394', 'tblTempVendorCDR_20' ) start [2025-01-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155394', 'tblTempVendorCDR_20' ) end [2025-01-02 03:14:18] Production.INFO: ProcessCDR(1,14155394,1,1,2) [2025-01-02 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155394', 'tblTempUsageDetail_20' ) start [2025-01-02 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155394', 'tblTempUsageDetail_20' ) end [2025-01-02 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:14:21] Production.INFO: ==21196== Releasing lock... [2025-01-02 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:15:04 [end_date_ymd] => 2025-01-02 03:15:04 [RateCDR] => 1 ) [2025-01-02 03:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:15:04' and `end` < '2025-01-02 03:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:15:18] Production.INFO: count ==314 [2025-01-02 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:15:04 - End Time 2025-01-02 03:15:04 [2025-01-02 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155399', 'tblTempUsageDetail_20' ) start [2025-01-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155399', 'tblTempUsageDetail_20' ) end [2025-01-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155399', 'tblTempVendorCDR_20' ) start [2025-01-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155399', 'tblTempVendorCDR_20' ) end [2025-01-02 03:15:18] Production.INFO: ProcessCDR(1,14155399,1,1,2) [2025-01-02 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155399', 'tblTempUsageDetail_20' ) start [2025-01-02 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155399', 'tblTempUsageDetail_20' ) end [2025-01-02 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:15:21] Production.INFO: ==21266== Releasing lock... [2025-01-02 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:16:05 [end_date_ymd] => 2025-01-02 03:16:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:16:05' and `end` < '2025-01-02 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-01-02 03:16:18] Production.INFO: count ==314 [2025-01-02 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:16:05 - End Time 2025-01-02 03:16:05 [2025-01-02 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155404', 'tblTempUsageDetail_20' ) start [2025-01-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155404', 'tblTempUsageDetail_20' ) end [2025-01-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155404', 'tblTempVendorCDR_20' ) start [2025-01-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155404', 'tblTempVendorCDR_20' ) end [2025-01-02 03:16:18] Production.INFO: ProcessCDR(1,14155404,1,1,2) [2025-01-02 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155404', 'tblTempUsageDetail_20' ) start [2025-01-02 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155404', 'tblTempUsageDetail_20' ) end [2025-01-02 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:16:21] Production.INFO: ==21335== Releasing lock... [2025-01-02 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:16:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:17:05 [end_date_ymd] => 2025-01-02 03:17:05 [RateCDR] => 1 ) [2025-01-02 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:17:05' and `end` < '2025-01-02 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:17:18] Production.INFO: count ==314 [2025-01-02 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:17:05 - End Time 2025-01-02 03:17:05 [2025-01-02 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155409', 'tblTempUsageDetail_20' ) start [2025-01-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155409', 'tblTempUsageDetail_20' ) end [2025-01-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155409', 'tblTempVendorCDR_20' ) start [2025-01-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155409', 'tblTempVendorCDR_20' ) end [2025-01-02 03:17:18] Production.INFO: ProcessCDR(1,14155409,1,1,2) [2025-01-02 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155409', 'tblTempUsageDetail_20' ) start [2025-01-02 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155409', 'tblTempUsageDetail_20' ) end [2025-01-02 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:17:21] Production.INFO: ==21482== Releasing lock... [2025-01-02 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:18:05 [end_date_ymd] => 2025-01-02 03:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:18:05' and `end` < '2025-01-02 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-01-02 03:18:18] Production.INFO: count ==311 [2025-01-02 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:18:05 - End Time 2025-01-02 03:18:05 [2025-01-02 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155414', 'tblTempUsageDetail_20' ) start [2025-01-02 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155414', 'tblTempUsageDetail_20' ) end [2025-01-02 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155414', 'tblTempVendorCDR_20' ) start [2025-01-02 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155414', 'tblTempVendorCDR_20' ) end [2025-01-02 03:18:19] Production.INFO: ProcessCDR(1,14155414,1,1,2) [2025-01-02 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155414', 'tblTempUsageDetail_20' ) start [2025-01-02 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155414', 'tblTempUsageDetail_20' ) end [2025-01-02 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:18:22] Production.INFO: ==21552== Releasing lock... [2025-01-02 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:19:04 [end_date_ymd] => 2025-01-02 03:19:04 [RateCDR] => 1 ) [2025-01-02 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:19:04' and `end` < '2025-01-02 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:19:17] Production.INFO: count ==311 [2025-01-02 03:19:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:19:04 - End Time 2025-01-02 03:19:04 [2025-01-02 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155419', 'tblTempUsageDetail_20' ) start [2025-01-02 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155419', 'tblTempUsageDetail_20' ) end [2025-01-02 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155419', 'tblTempVendorCDR_20' ) start [2025-01-02 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155419', 'tblTempVendorCDR_20' ) end [2025-01-02 03:19:17] Production.INFO: ProcessCDR(1,14155419,1,1,2) [2025-01-02 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155419', 'tblTempUsageDetail_20' ) start [2025-01-02 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155419', 'tblTempUsageDetail_20' ) end [2025-01-02 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:19:20] Production.INFO: ==21621== Releasing lock... [2025-01-02 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:20:05 [end_date_ymd] => 2025-01-02 03:20:05 [RateCDR] => 1 ) [2025-01-02 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:20:05' and `end` < '2025-01-02 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:20:18] Production.INFO: count ==305 [2025-01-02 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:20:05 - End Time 2025-01-02 03:20:05 [2025-01-02 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155425', 'tblTempUsageDetail_20' ) start [2025-01-02 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155425', 'tblTempUsageDetail_20' ) end [2025-01-02 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155425', 'tblTempVendorCDR_20' ) start [2025-01-02 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155425', 'tblTempVendorCDR_20' ) end [2025-01-02 03:20:18] Production.INFO: ProcessCDR(1,14155425,1,1,2) [2025-01-02 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155425', 'tblTempUsageDetail_20' ) start [2025-01-02 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155425', 'tblTempUsageDetail_20' ) end [2025-01-02 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:20:21] Production.INFO: ==21694== Releasing lock... [2025-01-02 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:21:06 [end_date_ymd] => 2025-01-02 03:21:06 [RateCDR] => 1 ) [2025-01-02 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:21:06' and `end` < '2025-01-02 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:21:19] Production.INFO: count ==291 [2025-01-02 03:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:21:06 - End Time 2025-01-02 03:21:06 [2025-01-02 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155430', 'tblTempUsageDetail_20' ) start [2025-01-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155430', 'tblTempUsageDetail_20' ) end [2025-01-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155430', 'tblTempVendorCDR_20' ) start [2025-01-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155430', 'tblTempVendorCDR_20' ) end [2025-01-02 03:21:19] Production.INFO: ProcessCDR(1,14155430,1,1,2) [2025-01-02 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155430', 'tblTempUsageDetail_20' ) start [2025-01-02 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155430', 'tblTempUsageDetail_20' ) end [2025-01-02 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:21:22] Production.INFO: ==21767== Releasing lock... [2025-01-02 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:22:04 [end_date_ymd] => 2025-01-02 03:22:04 [RateCDR] => 1 ) [2025-01-02 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:22:04' and `end` < '2025-01-02 03:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:22:17] Production.INFO: count ==291 [2025-01-02 03:22:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:22:04 - End Time 2025-01-02 03:22:04 [2025-01-02 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155435', 'tblTempUsageDetail_20' ) start [2025-01-02 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155435', 'tblTempUsageDetail_20' ) end [2025-01-02 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155435', 'tblTempVendorCDR_20' ) start [2025-01-02 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155435', 'tblTempVendorCDR_20' ) end [2025-01-02 03:22:17] Production.INFO: ProcessCDR(1,14155435,1,1,2) [2025-01-02 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155435', 'tblTempUsageDetail_20' ) start [2025-01-02 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155435', 'tblTempUsageDetail_20' ) end [2025-01-02 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:22:20] Production.INFO: ==21875== Releasing lock... [2025-01-02 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:22:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:23:05 [end_date_ymd] => 2025-01-02 03:23:05 [RateCDR] => 1 ) [2025-01-02 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:23:05' and `end` < '2025-01-02 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:23:18] Production.INFO: count ==291 [2025-01-02 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:23:05 - End Time 2025-01-02 03:23:05 [2025-01-02 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155440', 'tblTempUsageDetail_20' ) start [2025-01-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155440', 'tblTempUsageDetail_20' ) end [2025-01-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155440', 'tblTempVendorCDR_20' ) start [2025-01-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155440', 'tblTempVendorCDR_20' ) end [2025-01-02 03:23:18] Production.INFO: ProcessCDR(1,14155440,1,1,2) [2025-01-02 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155440', 'tblTempUsageDetail_20' ) start [2025-01-02 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155440', 'tblTempUsageDetail_20' ) end [2025-01-02 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:23:21] Production.INFO: ==21946== Releasing lock... [2025-01-02 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:24:05 [end_date_ymd] => 2025-01-02 03:24:05 [RateCDR] => 1 ) [2025-01-02 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:24:05' and `end` < '2025-01-02 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:24:19] Production.INFO: count ==291 [2025-01-02 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:24:05 - End Time 2025-01-02 03:24:05 [2025-01-02 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155445', 'tblTempUsageDetail_20' ) start [2025-01-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155445', 'tblTempUsageDetail_20' ) end [2025-01-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155445', 'tblTempVendorCDR_20' ) start [2025-01-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155445', 'tblTempVendorCDR_20' ) end [2025-01-02 03:24:19] Production.INFO: ProcessCDR(1,14155445,1,1,2) [2025-01-02 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155445', 'tblTempUsageDetail_20' ) start [2025-01-02 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155445', 'tblTempUsageDetail_20' ) end [2025-01-02 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:24:22] Production.INFO: ==22014== Releasing lock... [2025-01-02 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:25:05 [end_date_ymd] => 2025-01-02 03:25:05 [RateCDR] => 1 ) [2025-01-02 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:25:05' and `end` < '2025-01-02 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:25:17] Production.INFO: count ==288 [2025-01-02 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:25:05 - End Time 2025-01-02 03:25:05 [2025-01-02 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155450', 'tblTempUsageDetail_20' ) start [2025-01-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155450', 'tblTempUsageDetail_20' ) end [2025-01-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155450', 'tblTempVendorCDR_20' ) start [2025-01-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155450', 'tblTempVendorCDR_20' ) end [2025-01-02 03:25:17] Production.INFO: ProcessCDR(1,14155450,1,1,2) [2025-01-02 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155450', 'tblTempUsageDetail_20' ) start [2025-01-02 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155450', 'tblTempUsageDetail_20' ) end [2025-01-02 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:25:21] Production.INFO: ==22083== Releasing lock... [2025-01-02 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:26:06 [end_date_ymd] => 2025-01-02 03:26:06 [RateCDR] => 1 ) [2025-01-02 03:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:26:06' and `end` < '2025-01-02 03:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:26:18] Production.INFO: count ==287 [2025-01-02 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:26:06 - End Time 2025-01-02 03:26:06 [2025-01-02 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155455', 'tblTempUsageDetail_20' ) start [2025-01-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155455', 'tblTempUsageDetail_20' ) end [2025-01-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155455', 'tblTempVendorCDR_20' ) start [2025-01-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155455', 'tblTempVendorCDR_20' ) end [2025-01-02 03:26:18] Production.INFO: ProcessCDR(1,14155455,1,1,2) [2025-01-02 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155455', 'tblTempUsageDetail_20' ) start [2025-01-02 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155455', 'tblTempUsageDetail_20' ) end [2025-01-02 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:26:22] Production.INFO: ==22153== Releasing lock... [2025-01-02 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:27:05 [end_date_ymd] => 2025-01-02 03:27:05 [RateCDR] => 1 ) [2025-01-02 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:27:05' and `end` < '2025-01-02 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:27:18] Production.INFO: count ==287 [2025-01-02 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:27:05 - End Time 2025-01-02 03:27:05 [2025-01-02 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155460', 'tblTempUsageDetail_20' ) start [2025-01-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155460', 'tblTempUsageDetail_20' ) end [2025-01-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155460', 'tblTempVendorCDR_20' ) start [2025-01-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155460', 'tblTempVendorCDR_20' ) end [2025-01-02 03:27:18] Production.INFO: ProcessCDR(1,14155460,1,1,2) [2025-01-02 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155460', 'tblTempUsageDetail_20' ) start [2025-01-02 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155460', 'tblTempUsageDetail_20' ) end [2025-01-02 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:27:21] Production.INFO: ==22221== Releasing lock... [2025-01-02 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:28:05 [end_date_ymd] => 2025-01-02 03:28:05 [RateCDR] => 1 ) [2025-01-02 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:28:05' and `end` < '2025-01-02 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:28:18] Production.INFO: count ==287 [2025-01-02 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:28:05 - End Time 2025-01-02 03:28:05 [2025-01-02 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155465', 'tblTempUsageDetail_20' ) start [2025-01-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155465', 'tblTempUsageDetail_20' ) end [2025-01-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155465', 'tblTempVendorCDR_20' ) start [2025-01-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155465', 'tblTempVendorCDR_20' ) end [2025-01-02 03:28:18] Production.INFO: ProcessCDR(1,14155465,1,1,2) [2025-01-02 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155465', 'tblTempUsageDetail_20' ) start [2025-01-02 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155465', 'tblTempUsageDetail_20' ) end [2025-01-02 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:28:21] Production.INFO: ==22292== Releasing lock... [2025-01-02 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:29:05 [end_date_ymd] => 2025-01-02 03:29:05 [RateCDR] => 1 ) [2025-01-02 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:29:05' and `end` < '2025-01-02 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:29:18] Production.INFO: count ==286 [2025-01-02 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:29:05 - End Time 2025-01-02 03:29:05 [2025-01-02 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155470', 'tblTempUsageDetail_20' ) start [2025-01-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155470', 'tblTempUsageDetail_20' ) end [2025-01-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155470', 'tblTempVendorCDR_20' ) start [2025-01-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155470', 'tblTempVendorCDR_20' ) end [2025-01-02 03:29:18] Production.INFO: ProcessCDR(1,14155470,1,1,2) [2025-01-02 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155470', 'tblTempUsageDetail_20' ) start [2025-01-02 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155470', 'tblTempUsageDetail_20' ) end [2025-01-02 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:29:21] Production.INFO: ==22368== Releasing lock... [2025-01-02 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:30:05 [end_date_ymd] => 2025-01-02 03:30:05 [RateCDR] => 1 ) [2025-01-02 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:30:05' and `end` < '2025-01-02 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:30:18] Production.INFO: count ==284 [2025-01-02 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:30:05 - End Time 2025-01-02 03:30:05 [2025-01-02 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155476', 'tblTempUsageDetail_20' ) start [2025-01-02 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155476', 'tblTempUsageDetail_20' ) end [2025-01-02 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155476', 'tblTempVendorCDR_20' ) start [2025-01-02 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155476', 'tblTempVendorCDR_20' ) end [2025-01-02 03:30:18] Production.INFO: ProcessCDR(1,14155476,1,1,2) [2025-01-02 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155476', 'tblTempUsageDetail_20' ) start [2025-01-02 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155476', 'tblTempUsageDetail_20' ) end [2025-01-02 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:30:21] Production.INFO: ==22446== Releasing lock... [2025-01-02 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:31:05 [end_date_ymd] => 2025-01-02 03:31:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:31:05' and `end` < '2025-01-02 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:31:18] Production.INFO: count ==284 [2025-01-02 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:31:05 - End Time 2025-01-02 03:31:05 [2025-01-02 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155481', 'tblTempUsageDetail_20' ) start [2025-01-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155481', 'tblTempUsageDetail_20' ) end [2025-01-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155481', 'tblTempVendorCDR_20' ) start [2025-01-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155481', 'tblTempVendorCDR_20' ) end [2025-01-02 03:31:18] Production.INFO: ProcessCDR(1,14155481,1,1,2) [2025-01-02 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155481', 'tblTempUsageDetail_20' ) start [2025-01-02 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155481', 'tblTempUsageDetail_20' ) end [2025-01-02 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:31:21] Production.INFO: ==22527== Releasing lock... [2025-01-02 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:32:05 [end_date_ymd] => 2025-01-02 03:32:05 [RateCDR] => 1 ) [2025-01-02 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:32:05' and `end` < '2025-01-02 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:32:20] Production.INFO: count ==284 [2025-01-02 03:32:20] Production.ERROR: pbx CDR StartTime 2025-01-02 00:32:05 - End Time 2025-01-02 03:32:05 [2025-01-02 03:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155486', 'tblTempUsageDetail_20' ) start [2025-01-02 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155486', 'tblTempUsageDetail_20' ) end [2025-01-02 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155486', 'tblTempVendorCDR_20' ) start [2025-01-02 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155486', 'tblTempVendorCDR_20' ) end [2025-01-02 03:32:20] Production.INFO: ProcessCDR(1,14155486,1,1,2) [2025-01-02 03:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155486', 'tblTempUsageDetail_20' ) start [2025-01-02 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155486', 'tblTempUsageDetail_20' ) end [2025-01-02 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:32:23] Production.INFO: ==22610== Releasing lock... [2025-01-02 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:32:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:33:05 [end_date_ymd] => 2025-01-02 03:33:05 [RateCDR] => 1 ) [2025-01-02 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:33:05' and `end` < '2025-01-02 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:33:19] Production.INFO: count ==282 [2025-01-02 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:33:05 - End Time 2025-01-02 03:33:05 [2025-01-02 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155491', 'tblTempUsageDetail_20' ) start [2025-01-02 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155491', 'tblTempUsageDetail_20' ) end [2025-01-02 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155491', 'tblTempVendorCDR_20' ) start [2025-01-02 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155491', 'tblTempVendorCDR_20' ) end [2025-01-02 03:33:19] Production.INFO: ProcessCDR(1,14155491,1,1,2) [2025-01-02 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155491', 'tblTempUsageDetail_20' ) start [2025-01-02 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155491', 'tblTempUsageDetail_20' ) end [2025-01-02 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:33:22] Production.INFO: ==22693== Releasing lock... [2025-01-02 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:34:04 [end_date_ymd] => 2025-01-02 03:34:04 [RateCDR] => 1 ) [2025-01-02 03:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:34:04' and `end` < '2025-01-02 03:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:34:17] Production.INFO: count ==280 [2025-01-02 03:34:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:34:04 - End Time 2025-01-02 03:34:04 [2025-01-02 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155496', 'tblTempUsageDetail_20' ) start [2025-01-02 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155496', 'tblTempUsageDetail_20' ) end [2025-01-02 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155496', 'tblTempVendorCDR_20' ) start [2025-01-02 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155496', 'tblTempVendorCDR_20' ) end [2025-01-02 03:34:17] Production.INFO: ProcessCDR(1,14155496,1,1,2) [2025-01-02 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155496', 'tblTempUsageDetail_20' ) start [2025-01-02 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155496', 'tblTempUsageDetail_20' ) end [2025-01-02 03:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:34:20] Production.INFO: ==22773== Releasing lock... [2025-01-02 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:34:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:35:05 [end_date_ymd] => 2025-01-02 03:35:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:35:05' and `end` < '2025-01-02 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-01-02 03:35:18] Production.INFO: count ==279 [2025-01-02 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:35:05 - End Time 2025-01-02 03:35:05 [2025-01-02 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155501', 'tblTempUsageDetail_20' ) start [2025-01-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155501', 'tblTempUsageDetail_20' ) end [2025-01-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155501', 'tblTempVendorCDR_20' ) start [2025-01-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155501', 'tblTempVendorCDR_20' ) end [2025-01-02 03:35:18] Production.INFO: ProcessCDR(1,14155501,1,1,2) [2025-01-02 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155501', 'tblTempUsageDetail_20' ) start [2025-01-02 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155501', 'tblTempUsageDetail_20' ) end [2025-01-02 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:35:22] Production.INFO: ==22861== Releasing lock... [2025-01-02 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:36:05 [end_date_ymd] => 2025-01-02 03:36:05 [RateCDR] => 1 ) [2025-01-02 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:36:05' and `end` < '2025-01-02 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:36:18] Production.INFO: count ==279 [2025-01-02 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:36:05 - End Time 2025-01-02 03:36:05 [2025-01-02 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155506', 'tblTempUsageDetail_20' ) start [2025-01-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155506', 'tblTempUsageDetail_20' ) end [2025-01-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155506', 'tblTempVendorCDR_20' ) start [2025-01-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155506', 'tblTempVendorCDR_20' ) end [2025-01-02 03:36:18] Production.INFO: ProcessCDR(1,14155506,1,1,2) [2025-01-02 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155506', 'tblTempUsageDetail_20' ) start [2025-01-02 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155506', 'tblTempUsageDetail_20' ) end [2025-01-02 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:36:21] Production.INFO: ==22942== Releasing lock... [2025-01-02 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:37:05 [end_date_ymd] => 2025-01-02 03:37:05 [RateCDR] => 1 ) [2025-01-02 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:37:05' and `end` < '2025-01-02 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:37:18] Production.INFO: count ==279 [2025-01-02 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:37:05 - End Time 2025-01-02 03:37:05 [2025-01-02 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155511', 'tblTempUsageDetail_20' ) start [2025-01-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155511', 'tblTempUsageDetail_20' ) end [2025-01-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155511', 'tblTempVendorCDR_20' ) start [2025-01-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155511', 'tblTempVendorCDR_20' ) end [2025-01-02 03:37:18] Production.INFO: ProcessCDR(1,14155511,1,1,2) [2025-01-02 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155511', 'tblTempUsageDetail_20' ) start [2025-01-02 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155511', 'tblTempUsageDetail_20' ) end [2025-01-02 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:37:21] Production.INFO: ==23061== Releasing lock... [2025-01-02 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:38:04 [end_date_ymd] => 2025-01-02 03:38:04 [RateCDR] => 1 ) [2025-01-02 03:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:38:04' and `end` < '2025-01-02 03:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:38:17] Production.INFO: count ==279 [2025-01-02 03:38:17] Production.ERROR: pbx CDR StartTime 2025-01-02 00:38:04 - End Time 2025-01-02 03:38:04 [2025-01-02 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155516', 'tblTempUsageDetail_20' ) start [2025-01-02 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155516', 'tblTempUsageDetail_20' ) end [2025-01-02 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155516', 'tblTempVendorCDR_20' ) start [2025-01-02 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155516', 'tblTempVendorCDR_20' ) end [2025-01-02 03:38:17] Production.INFO: ProcessCDR(1,14155516,1,1,2) [2025-01-02 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155516', 'tblTempUsageDetail_20' ) start [2025-01-02 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155516', 'tblTempUsageDetail_20' ) end [2025-01-02 03:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:38:21] Production.INFO: ==23138== Releasing lock... [2025-01-02 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-02 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:39:05 [end_date_ymd] => 2025-01-02 03:39:05 [RateCDR] => 1 ) [2025-01-02 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:39:05' and `end` < '2025-01-02 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:39:19] Production.INFO: count ==278 [2025-01-02 03:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:39:05 - End Time 2025-01-02 03:39:05 [2025-01-02 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155521', 'tblTempUsageDetail_20' ) start [2025-01-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155521', 'tblTempUsageDetail_20' ) end [2025-01-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155521', 'tblTempVendorCDR_20' ) start [2025-01-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155521', 'tblTempVendorCDR_20' ) end [2025-01-02 03:39:19] Production.INFO: ProcessCDR(1,14155521,1,1,2) [2025-01-02 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155521', 'tblTempUsageDetail_20' ) start [2025-01-02 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155521', 'tblTempUsageDetail_20' ) end [2025-01-02 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:39:23] Production.INFO: ==23226== Releasing lock... [2025-01-02 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:39:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:40:05 [end_date_ymd] => 2025-01-02 03:40:05 [RateCDR] => 1 ) [2025-01-02 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:40:05' and `end` < '2025-01-02 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:40:18] Production.INFO: count ==271 [2025-01-02 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:40:05 - End Time 2025-01-02 03:40:05 [2025-01-02 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155526', 'tblTempUsageDetail_20' ) start [2025-01-02 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155526', 'tblTempUsageDetail_20' ) end [2025-01-02 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155526', 'tblTempVendorCDR_20' ) start [2025-01-02 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155526', 'tblTempVendorCDR_20' ) end [2025-01-02 03:40:18] Production.INFO: ProcessCDR(1,14155526,1,1,2) [2025-01-02 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155526', 'tblTempUsageDetail_20' ) start [2025-01-02 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155526', 'tblTempUsageDetail_20' ) end [2025-01-02 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:40:21] Production.INFO: ==23308== Releasing lock... [2025-01-02 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:41:05 [end_date_ymd] => 2025-01-02 03:41:05 [RateCDR] => 1 ) [2025-01-02 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:41:05' and `end` < '2025-01-02 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:41:18] Production.INFO: count ==249 [2025-01-02 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:41:05 - End Time 2025-01-02 03:41:05 [2025-01-02 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155532', 'tblTempUsageDetail_20' ) start [2025-01-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155532', 'tblTempUsageDetail_20' ) end [2025-01-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155532', 'tblTempVendorCDR_20' ) start [2025-01-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155532', 'tblTempVendorCDR_20' ) end [2025-01-02 03:41:18] Production.INFO: ProcessCDR(1,14155532,1,1,2) [2025-01-02 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155532', 'tblTempUsageDetail_20' ) start [2025-01-02 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155532', 'tblTempUsageDetail_20' ) end [2025-01-02 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:41:21] Production.INFO: ==23390== Releasing lock... [2025-01-02 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:42:05 [end_date_ymd] => 2025-01-02 03:42:05 [RateCDR] => 1 ) [2025-01-02 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:42:05' and `end` < '2025-01-02 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:42:20] Production.INFO: count ==249 [2025-01-02 03:42:20] Production.ERROR: pbx CDR StartTime 2025-01-02 00:42:05 - End Time 2025-01-02 03:42:05 [2025-01-02 03:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155537', 'tblTempUsageDetail_20' ) start [2025-01-02 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155537', 'tblTempUsageDetail_20' ) end [2025-01-02 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155537', 'tblTempVendorCDR_20' ) start [2025-01-02 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155537', 'tblTempVendorCDR_20' ) end [2025-01-02 03:42:20] Production.INFO: ProcessCDR(1,14155537,1,1,2) [2025-01-02 03:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155537', 'tblTempUsageDetail_20' ) start [2025-01-02 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155537', 'tblTempUsageDetail_20' ) end [2025-01-02 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:42:23] Production.INFO: ==23473== Releasing lock... [2025-01-02 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:42:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:43:05 [end_date_ymd] => 2025-01-02 03:43:05 [RateCDR] => 1 ) [2025-01-02 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:43:05' and `end` < '2025-01-02 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:43:18] Production.INFO: count ==249 [2025-01-02 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:43:05 - End Time 2025-01-02 03:43:05 [2025-01-02 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155542', 'tblTempUsageDetail_20' ) start [2025-01-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155542', 'tblTempUsageDetail_20' ) end [2025-01-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155542', 'tblTempVendorCDR_20' ) start [2025-01-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155542', 'tblTempVendorCDR_20' ) end [2025-01-02 03:43:18] Production.INFO: ProcessCDR(1,14155542,1,1,2) [2025-01-02 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155542', 'tblTempUsageDetail_20' ) start [2025-01-02 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155542', 'tblTempUsageDetail_20' ) end [2025-01-02 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:43:21] Production.INFO: ==23555== Releasing lock... [2025-01-02 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:44:05 [end_date_ymd] => 2025-01-02 03:44:05 [RateCDR] => 1 ) [2025-01-02 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:44:05' and `end` < '2025-01-02 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:44:19] Production.INFO: count ==249 [2025-01-02 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:44:05 - End Time 2025-01-02 03:44:05 [2025-01-02 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155547', 'tblTempUsageDetail_20' ) start [2025-01-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155547', 'tblTempUsageDetail_20' ) end [2025-01-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155547', 'tblTempVendorCDR_20' ) start [2025-01-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155547', 'tblTempVendorCDR_20' ) end [2025-01-02 03:44:19] Production.INFO: ProcessCDR(1,14155547,1,1,2) [2025-01-02 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155547', 'tblTempUsageDetail_20' ) start [2025-01-02 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155547', 'tblTempUsageDetail_20' ) end [2025-01-02 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:44:22] Production.INFO: ==23634== Releasing lock... [2025-01-02 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:45:05 [end_date_ymd] => 2025-01-02 03:45:05 [RateCDR] => 1 ) [2025-01-02 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:45:05' and `end` < '2025-01-02 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:45:18] Production.INFO: count ==249 [2025-01-02 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:45:05 - End Time 2025-01-02 03:45:05 [2025-01-02 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155552', 'tblTempUsageDetail_20' ) start [2025-01-02 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155552', 'tblTempUsageDetail_20' ) end [2025-01-02 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155552', 'tblTempVendorCDR_20' ) start [2025-01-02 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155552', 'tblTempVendorCDR_20' ) end [2025-01-02 03:45:18] Production.INFO: ProcessCDR(1,14155552,1,1,2) [2025-01-02 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155552', 'tblTempUsageDetail_20' ) start [2025-01-02 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155552', 'tblTempUsageDetail_20' ) end [2025-01-02 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:45:21] Production.INFO: ==23714== Releasing lock... [2025-01-02 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:46:05 [end_date_ymd] => 2025-01-02 03:46:05 [RateCDR] => 1 ) [2025-01-02 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:46:05' and `end` < '2025-01-02 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:46:18] Production.INFO: count ==245 [2025-01-02 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:46:05 - End Time 2025-01-02 03:46:05 [2025-01-02 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155557', 'tblTempUsageDetail_20' ) start [2025-01-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155557', 'tblTempUsageDetail_20' ) end [2025-01-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155557', 'tblTempVendorCDR_20' ) start [2025-01-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155557', 'tblTempVendorCDR_20' ) end [2025-01-02 03:46:18] Production.INFO: ProcessCDR(1,14155557,1,1,2) [2025-01-02 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155557', 'tblTempUsageDetail_20' ) start [2025-01-02 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155557', 'tblTempUsageDetail_20' ) end [2025-01-02 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:46:21] Production.INFO: ==23798== Releasing lock... [2025-01-02 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:47:05 [end_date_ymd] => 2025-01-02 03:47:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:47:05' and `end` < '2025-01-02 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-01-02 03:47:19] Production.INFO: count ==242 [2025-01-02 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:47:05 - End Time 2025-01-02 03:47:05 [2025-01-02 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155562', 'tblTempUsageDetail_20' ) start [2025-01-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155562', 'tblTempUsageDetail_20' ) end [2025-01-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155562', 'tblTempVendorCDR_20' ) start [2025-01-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155562', 'tblTempVendorCDR_20' ) end [2025-01-02 03:47:19] Production.INFO: ProcessCDR(1,14155562,1,1,2) [2025-01-02 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155562', 'tblTempUsageDetail_20' ) start [2025-01-02 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155562', 'tblTempUsageDetail_20' ) end [2025-01-02 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:47:22] Production.INFO: ==23878== Releasing lock... [2025-01-02 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:48:05 [end_date_ymd] => 2025-01-02 03:48:05 [RateCDR] => 1 ) [2025-01-02 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:48:05' and `end` < '2025-01-02 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:48:19] Production.INFO: count ==241 [2025-01-02 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:48:05 - End Time 2025-01-02 03:48:05 [2025-01-02 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155567', 'tblTempUsageDetail_20' ) start [2025-01-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155567', 'tblTempUsageDetail_20' ) end [2025-01-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155567', 'tblTempVendorCDR_20' ) start [2025-01-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155567', 'tblTempVendorCDR_20' ) end [2025-01-02 03:48:19] Production.INFO: ProcessCDR(1,14155567,1,1,2) [2025-01-02 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155567', 'tblTempUsageDetail_20' ) start [2025-01-02 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155567', 'tblTempUsageDetail_20' ) end [2025-01-02 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:48:22] Production.INFO: ==23953== Releasing lock... [2025-01-02 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:49:05 [end_date_ymd] => 2025-01-02 03:49:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:49:05' and `end` < '2025-01-02 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-01-02 03:49:18] Production.INFO: count ==241 [2025-01-02 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:49:05 - End Time 2025-01-02 03:49:05 [2025-01-02 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155572', 'tblTempUsageDetail_20' ) start [2025-01-02 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155572', 'tblTempUsageDetail_20' ) end [2025-01-02 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155572', 'tblTempVendorCDR_20' ) start [2025-01-02 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155572', 'tblTempVendorCDR_20' ) end [2025-01-02 03:49:18] Production.INFO: ProcessCDR(1,14155572,1,1,2) [2025-01-02 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155572', 'tblTempUsageDetail_20' ) start [2025-01-02 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155572', 'tblTempUsageDetail_20' ) end [2025-01-02 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:49:21] Production.INFO: ==24035== Releasing lock... [2025-01-02 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:50:06 [end_date_ymd] => 2025-01-02 03:50:06 [RateCDR] => 1 ) [2025-01-02 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:50:06' and `end` < '2025-01-02 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:50:18] Production.INFO: count ==234 [2025-01-02 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:50:06 - End Time 2025-01-02 03:50:06 [2025-01-02 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155577', 'tblTempUsageDetail_20' ) start [2025-01-02 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155577', 'tblTempUsageDetail_20' ) end [2025-01-02 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155577', 'tblTempVendorCDR_20' ) start [2025-01-02 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155577', 'tblTempVendorCDR_20' ) end [2025-01-02 03:50:18] Production.INFO: ProcessCDR(1,14155577,1,1,2) [2025-01-02 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155577', 'tblTempUsageDetail_20' ) start [2025-01-02 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155577', 'tblTempUsageDetail_20' ) end [2025-01-02 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:50:21] Production.INFO: ==24130== Releasing lock... [2025-01-02 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:51:05 [end_date_ymd] => 2025-01-02 03:51:05 [RateCDR] => 1 ) [2025-01-02 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:51:05' and `end` < '2025-01-02 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:51:18] Production.INFO: count ==228 [2025-01-02 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:51:05 - End Time 2025-01-02 03:51:05 [2025-01-02 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155583', 'tblTempUsageDetail_20' ) start [2025-01-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155583', 'tblTempUsageDetail_20' ) end [2025-01-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155583', 'tblTempVendorCDR_20' ) start [2025-01-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155583', 'tblTempVendorCDR_20' ) end [2025-01-02 03:51:18] Production.INFO: ProcessCDR(1,14155583,1,1,2) [2025-01-02 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155583', 'tblTempUsageDetail_20' ) start [2025-01-02 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155583', 'tblTempUsageDetail_20' ) end [2025-01-02 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:51:21] Production.INFO: ==24234== Releasing lock... [2025-01-02 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:51:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:52:05 [end_date_ymd] => 2025-01-02 03:52:05 [RateCDR] => 1 ) [2025-01-02 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:52:05' and `end` < '2025-01-02 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:52:18] Production.INFO: count ==227 [2025-01-02 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:52:05 - End Time 2025-01-02 03:52:05 [2025-01-02 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155588', 'tblTempUsageDetail_20' ) start [2025-01-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155588', 'tblTempUsageDetail_20' ) end [2025-01-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155588', 'tblTempVendorCDR_20' ) start [2025-01-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155588', 'tblTempVendorCDR_20' ) end [2025-01-02 03:52:18] Production.INFO: ProcessCDR(1,14155588,1,1,2) [2025-01-02 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155588', 'tblTempUsageDetail_20' ) start [2025-01-02 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155588', 'tblTempUsageDetail_20' ) end [2025-01-02 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:52:21] Production.INFO: ==24334== Releasing lock... [2025-01-02 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:52:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:53:05 [end_date_ymd] => 2025-01-02 03:53:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:53:05' and `end` < '2025-01-02 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-01-02 03:53:20] Production.INFO: count ==227 [2025-01-02 03:53:20] Production.ERROR: pbx CDR StartTime 2025-01-02 00:53:05 - End Time 2025-01-02 03:53:05 [2025-01-02 03:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155593', 'tblTempUsageDetail_20' ) start [2025-01-02 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155593', 'tblTempUsageDetail_20' ) end [2025-01-02 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155593', 'tblTempVendorCDR_20' ) start [2025-01-02 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155593', 'tblTempVendorCDR_20' ) end [2025-01-02 03:53:20] Production.INFO: ProcessCDR(1,14155593,1,1,2) [2025-01-02 03:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155593', 'tblTempUsageDetail_20' ) start [2025-01-02 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155593', 'tblTempUsageDetail_20' ) end [2025-01-02 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:53:23] Production.INFO: ==24476== Releasing lock... [2025-01-02 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:53:23] Production.INFO: 29 MB #Memory Used# [2025-01-02 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:54:04 [end_date_ymd] => 2025-01-02 03:54:04 [RateCDR] => 1 ) [2025-01-02 03:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:54:04' and `end` < '2025-01-02 03:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:54:19] Production.INFO: count ==227 [2025-01-02 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:54:04 - End Time 2025-01-02 03:54:04 [2025-01-02 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155598', 'tblTempUsageDetail_20' ) start [2025-01-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155598', 'tblTempUsageDetail_20' ) end [2025-01-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155598', 'tblTempVendorCDR_20' ) start [2025-01-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155598', 'tblTempVendorCDR_20' ) end [2025-01-02 03:54:19] Production.INFO: ProcessCDR(1,14155598,1,1,2) [2025-01-02 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155598', 'tblTempUsageDetail_20' ) start [2025-01-02 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155598', 'tblTempUsageDetail_20' ) end [2025-01-02 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:54:22] Production.INFO: ==24575== Releasing lock... [2025-01-02 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:55:05 [end_date_ymd] => 2025-01-02 03:55:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:55:05' and `end` < '2025-01-02 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-01-02 03:55:18] Production.INFO: count ==225 [2025-01-02 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:55:05 - End Time 2025-01-02 03:55:05 [2025-01-02 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155603', 'tblTempUsageDetail_20' ) start [2025-01-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155603', 'tblTempUsageDetail_20' ) end [2025-01-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155603', 'tblTempVendorCDR_20' ) start [2025-01-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155603', 'tblTempVendorCDR_20' ) end [2025-01-02 03:55:18] Production.INFO: ProcessCDR(1,14155603,1,1,2) [2025-01-02 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155603', 'tblTempUsageDetail_20' ) start [2025-01-02 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155603', 'tblTempUsageDetail_20' ) end [2025-01-02 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:55:21] Production.INFO: ==24674== Releasing lock... [2025-01-02 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:56:05 [end_date_ymd] => 2025-01-02 03:56:05 [RateCDR] => 1 ) [2025-01-02 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:56:05' and `end` < '2025-01-02 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:56:18] Production.INFO: count ==224 [2025-01-02 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:56:05 - End Time 2025-01-02 03:56:05 [2025-01-02 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155608', 'tblTempUsageDetail_20' ) start [2025-01-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155608', 'tblTempUsageDetail_20' ) end [2025-01-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155608', 'tblTempVendorCDR_20' ) start [2025-01-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155608', 'tblTempVendorCDR_20' ) end [2025-01-02 03:56:18] Production.INFO: ProcessCDR(1,14155608,1,1,2) [2025-01-02 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155608', 'tblTempUsageDetail_20' ) start [2025-01-02 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155608', 'tblTempUsageDetail_20' ) end [2025-01-02 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:56:21] Production.INFO: ==24782== Releasing lock... [2025-01-02 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:57:05 [end_date_ymd] => 2025-01-02 03:57:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 00:57:05' and `end` < '2025-01-02 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-01-02 03:57:19] Production.INFO: count ==224 [2025-01-02 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-02 00:57:05 - End Time 2025-01-02 03:57:05 [2025-01-02 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155609', 'tblTempUsageDetail_20' ) start [2025-01-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155609', 'tblTempUsageDetail_20' ) end [2025-01-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155609', 'tblTempVendorCDR_20' ) start [2025-01-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155609', 'tblTempVendorCDR_20' ) end [2025-01-02 03:57:19] Production.INFO: ProcessCDR(1,14155609,1,1,2) [2025-01-02 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155609', 'tblTempUsageDetail_20' ) start [2025-01-02 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155609', 'tblTempUsageDetail_20' ) end [2025-01-02 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:57:22] Production.INFO: ==24887== Releasing lock... [2025-01-02 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:58:05 [end_date_ymd] => 2025-01-02 03:58:05 [RateCDR] => 1 ) [2025-01-02 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:58:05' and `end` < '2025-01-02 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:58:18] Production.INFO: count ==223 [2025-01-02 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:58:05 - End Time 2025-01-02 03:58:05 [2025-01-02 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155618', 'tblTempUsageDetail_20' ) start [2025-01-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155618', 'tblTempUsageDetail_20' ) end [2025-01-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155618', 'tblTempVendorCDR_20' ) start [2025-01-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155618', 'tblTempVendorCDR_20' ) end [2025-01-02 03:58:18] Production.INFO: ProcessCDR(1,14155618,1,1,2) [2025-01-02 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155618', 'tblTempUsageDetail_20' ) start [2025-01-02 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155618', 'tblTempUsageDetail_20' ) end [2025-01-02 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:58:21] Production.INFO: ==24991== Releasing lock... [2025-01-02 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 00:59:04 [end_date_ymd] => 2025-01-02 03:59:04 [RateCDR] => 1 ) [2025-01-02 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 00:59:04' and `end` < '2025-01-02 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 03:59:18] Production.INFO: count ==223 [2025-01-02 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 00:59:04 - End Time 2025-01-02 03:59:04 [2025-01-02 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155623', 'tblTempUsageDetail_20' ) start [2025-01-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155623', 'tblTempUsageDetail_20' ) end [2025-01-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155623', 'tblTempVendorCDR_20' ) start [2025-01-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155623', 'tblTempVendorCDR_20' ) end [2025-01-02 03:59:18] Production.INFO: ProcessCDR(1,14155623,1,1,2) [2025-01-02 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155623', 'tblTempUsageDetail_20' ) start [2025-01-02 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155623', 'tblTempUsageDetail_20' ) end [2025-01-02 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 03:59:21] Production.INFO: ==25091== Releasing lock... [2025-01-02 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 03:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:00:06 [end_date_ymd] => 2025-01-02 04:00:06 [RateCDR] => 1 ) [2025-01-02 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:00:06' and `end` < '2025-01-02 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:00:19] Production.INFO: count ==211 [2025-01-02 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:00:06 - End Time 2025-01-02 04:00:06 [2025-01-02 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155630', 'tblTempUsageDetail_20' ) start [2025-01-02 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155630', 'tblTempUsageDetail_20' ) end [2025-01-02 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155630', 'tblTempVendorCDR_20' ) start [2025-01-02 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155630', 'tblTempVendorCDR_20' ) end [2025-01-02 04:00:19] Production.INFO: ProcessCDR(1,14155630,1,1,2) [2025-01-02 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155630', 'tblTempUsageDetail_20' ) start [2025-01-02 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155630', 'tblTempUsageDetail_20' ) end [2025-01-02 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:00:22] Production.INFO: ==25196== Releasing lock... [2025-01-02 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:01:05 [end_date_ymd] => 2025-01-02 04:01:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:01:05' and `end` < '2025-01-02 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-01-02 04:01:17] Production.INFO: count ==193 [2025-01-02 04:01:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:01:05 - End Time 2025-01-02 04:01:05 [2025-01-02 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155635', 'tblTempUsageDetail_20' ) start [2025-01-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155635', 'tblTempUsageDetail_20' ) end [2025-01-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155635', 'tblTempVendorCDR_20' ) start [2025-01-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155635', 'tblTempVendorCDR_20' ) end [2025-01-02 04:01:17] Production.INFO: ProcessCDR(1,14155635,1,1,2) [2025-01-02 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155635', 'tblTempUsageDetail_20' ) start [2025-01-02 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155635', 'tblTempUsageDetail_20' ) end [2025-01-02 04:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:01:20] Production.INFO: ==25308== Releasing lock... [2025-01-02 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:01:20] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:02:05 [end_date_ymd] => 2025-01-02 04:02:05 [RateCDR] => 1 ) [2025-01-02 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:02:05' and `end` < '2025-01-02 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:02:19] Production.INFO: count ==193 [2025-01-02 04:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:02:05 - End Time 2025-01-02 04:02:05 [2025-01-02 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155640', 'tblTempUsageDetail_20' ) start [2025-01-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155640', 'tblTempUsageDetail_20' ) end [2025-01-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155640', 'tblTempVendorCDR_20' ) start [2025-01-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155640', 'tblTempVendorCDR_20' ) end [2025-01-02 04:02:19] Production.INFO: ProcessCDR(1,14155640,1,1,2) [2025-01-02 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155640', 'tblTempUsageDetail_20' ) start [2025-01-02 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155640', 'tblTempUsageDetail_20' ) end [2025-01-02 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:02:22] Production.INFO: ==25410== Releasing lock... [2025-01-02 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:02:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:03:05 [end_date_ymd] => 2025-01-02 04:03:05 [RateCDR] => 1 ) [2025-01-02 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:03:05' and `end` < '2025-01-02 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:03:17] Production.INFO: count ==191 [2025-01-02 04:03:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:03:05 - End Time 2025-01-02 04:03:05 [2025-01-02 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155645', 'tblTempUsageDetail_20' ) start [2025-01-02 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155645', 'tblTempUsageDetail_20' ) end [2025-01-02 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155645', 'tblTempVendorCDR_20' ) start [2025-01-02 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155645', 'tblTempVendorCDR_20' ) end [2025-01-02 04:03:17] Production.INFO: ProcessCDR(1,14155645,1,1,2) [2025-01-02 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155645', 'tblTempUsageDetail_20' ) start [2025-01-02 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155645', 'tblTempUsageDetail_20' ) end [2025-01-02 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:03:21] Production.INFO: ==25516== Releasing lock... [2025-01-02 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:04:05 [end_date_ymd] => 2025-01-02 04:04:05 [RateCDR] => 1 ) [2025-01-02 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:04:05' and `end` < '2025-01-02 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:04:18] Production.INFO: count ==191 [2025-01-02 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:04:05 - End Time 2025-01-02 04:04:05 [2025-01-02 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155650', 'tblTempUsageDetail_20' ) start [2025-01-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155650', 'tblTempUsageDetail_20' ) end [2025-01-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155650', 'tblTempVendorCDR_20' ) start [2025-01-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155650', 'tblTempVendorCDR_20' ) end [2025-01-02 04:04:18] Production.INFO: ProcessCDR(1,14155650,1,1,2) [2025-01-02 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155650', 'tblTempUsageDetail_20' ) start [2025-01-02 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155650', 'tblTempUsageDetail_20' ) end [2025-01-02 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:04:21] Production.INFO: ==25621== Releasing lock... [2025-01-02 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:05:05 [end_date_ymd] => 2025-01-02 04:05:05 [RateCDR] => 1 ) [2025-01-02 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:05:05' and `end` < '2025-01-02 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:05:18] Production.INFO: count ==191 [2025-01-02 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:05:05 - End Time 2025-01-02 04:05:05 [2025-01-02 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155655', 'tblTempUsageDetail_20' ) start [2025-01-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155655', 'tblTempUsageDetail_20' ) end [2025-01-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155655', 'tblTempVendorCDR_20' ) start [2025-01-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155655', 'tblTempVendorCDR_20' ) end [2025-01-02 04:05:18] Production.INFO: ProcessCDR(1,14155655,1,1,2) [2025-01-02 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155655', 'tblTempUsageDetail_20' ) start [2025-01-02 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155655', 'tblTempUsageDetail_20' ) end [2025-01-02 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:05:22] Production.INFO: ==25720== Releasing lock... [2025-01-02 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:05:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:06:05 [end_date_ymd] => 2025-01-02 04:06:05 [RateCDR] => 1 ) [2025-01-02 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:06:05' and `end` < '2025-01-02 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:06:18] Production.INFO: count ==191 [2025-01-02 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:06:05 - End Time 2025-01-02 04:06:05 [2025-01-02 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155660', 'tblTempUsageDetail_20' ) start [2025-01-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155660', 'tblTempUsageDetail_20' ) end [2025-01-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155660', 'tblTempVendorCDR_20' ) start [2025-01-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155660', 'tblTempVendorCDR_20' ) end [2025-01-02 04:06:18] Production.INFO: ProcessCDR(1,14155660,1,1,2) [2025-01-02 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155660', 'tblTempUsageDetail_20' ) start [2025-01-02 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155660', 'tblTempUsageDetail_20' ) end [2025-01-02 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:06:22] Production.INFO: ==25820== Releasing lock... [2025-01-02 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:07:05 [end_date_ymd] => 2025-01-02 04:07:05 [RateCDR] => 1 ) [2025-01-02 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:07:05' and `end` < '2025-01-02 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:07:18] Production.INFO: count ==191 [2025-01-02 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:07:05 - End Time 2025-01-02 04:07:05 [2025-01-02 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155665', 'tblTempUsageDetail_20' ) start [2025-01-02 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155665', 'tblTempUsageDetail_20' ) end [2025-01-02 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155665', 'tblTempVendorCDR_20' ) start [2025-01-02 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155665', 'tblTempVendorCDR_20' ) end [2025-01-02 04:07:18] Production.INFO: ProcessCDR(1,14155665,1,1,2) [2025-01-02 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155665', 'tblTempUsageDetail_20' ) start [2025-01-02 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155665', 'tblTempUsageDetail_20' ) end [2025-01-02 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:07:21] Production.INFO: ==25922== Releasing lock... [2025-01-02 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:08:05 [end_date_ymd] => 2025-01-02 04:08:05 [RateCDR] => 1 ) [2025-01-02 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:08:05' and `end` < '2025-01-02 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:08:19] Production.INFO: count ==191 [2025-01-02 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:08:05 - End Time 2025-01-02 04:08:05 [2025-01-02 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155670', 'tblTempUsageDetail_20' ) start [2025-01-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155670', 'tblTempUsageDetail_20' ) end [2025-01-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155670', 'tblTempVendorCDR_20' ) start [2025-01-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155670', 'tblTempVendorCDR_20' ) end [2025-01-02 04:08:19] Production.INFO: ProcessCDR(1,14155670,1,1,2) [2025-01-02 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155670', 'tblTempUsageDetail_20' ) start [2025-01-02 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155670', 'tblTempUsageDetail_20' ) end [2025-01-02 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:08:22] Production.INFO: ==26028== Releasing lock... [2025-01-02 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:09:05 [end_date_ymd] => 2025-01-02 04:09:05 [RateCDR] => 1 ) [2025-01-02 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:09:05' and `end` < '2025-01-02 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:09:18] Production.INFO: count ==191 [2025-01-02 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:09:05 - End Time 2025-01-02 04:09:05 [2025-01-02 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155675', 'tblTempUsageDetail_20' ) start [2025-01-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155675', 'tblTempUsageDetail_20' ) end [2025-01-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155675', 'tblTempVendorCDR_20' ) start [2025-01-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155675', 'tblTempVendorCDR_20' ) end [2025-01-02 04:09:18] Production.INFO: ProcessCDR(1,14155675,1,1,2) [2025-01-02 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155675', 'tblTempUsageDetail_20' ) start [2025-01-02 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155675', 'tblTempUsageDetail_20' ) end [2025-01-02 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:09:21] Production.INFO: ==26185== Releasing lock... [2025-01-02 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:10:05 [end_date_ymd] => 2025-01-02 04:10:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:10:05' and `end` < '2025-01-02 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:10:18] Production.INFO: count ==185 [2025-01-02 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:10:05 - End Time 2025-01-02 04:10:05 [2025-01-02 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155681', 'tblTempUsageDetail_20' ) start [2025-01-02 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155681', 'tblTempUsageDetail_20' ) end [2025-01-02 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155681', 'tblTempVendorCDR_20' ) start [2025-01-02 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155681', 'tblTempVendorCDR_20' ) end [2025-01-02 04:10:18] Production.INFO: ProcessCDR(1,14155681,1,1,2) [2025-01-02 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155681', 'tblTempUsageDetail_20' ) start [2025-01-02 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155681', 'tblTempUsageDetail_20' ) end [2025-01-02 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:10:22] Production.INFO: ==26269== Releasing lock... [2025-01-02 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:11:04 [end_date_ymd] => 2025-01-02 04:11:04 [RateCDR] => 1 ) [2025-01-02 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:11:04' and `end` < '2025-01-02 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:11:17] Production.INFO: count ==173 [2025-01-02 04:11:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:11:04 - End Time 2025-01-02 04:11:04 [2025-01-02 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155686', 'tblTempUsageDetail_20' ) start [2025-01-02 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155686', 'tblTempUsageDetail_20' ) end [2025-01-02 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155686', 'tblTempVendorCDR_20' ) start [2025-01-02 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155686', 'tblTempVendorCDR_20' ) end [2025-01-02 04:11:17] Production.INFO: ProcessCDR(1,14155686,1,1,2) [2025-01-02 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155686', 'tblTempUsageDetail_20' ) start [2025-01-02 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155686', 'tblTempUsageDetail_20' ) end [2025-01-02 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:11:20] Production.INFO: ==26345== Releasing lock... [2025-01-02 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:11:20] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:12:05 [end_date_ymd] => 2025-01-02 04:12:05 [RateCDR] => 1 ) [2025-01-02 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:12:05' and `end` < '2025-01-02 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:12:19] Production.INFO: count ==173 [2025-01-02 04:12:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:12:05 - End Time 2025-01-02 04:12:05 [2025-01-02 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155691', 'tblTempUsageDetail_20' ) start [2025-01-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155691', 'tblTempUsageDetail_20' ) end [2025-01-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155691', 'tblTempVendorCDR_20' ) start [2025-01-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155691', 'tblTempVendorCDR_20' ) end [2025-01-02 04:12:19] Production.INFO: ProcessCDR(1,14155691,1,1,2) [2025-01-02 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155691', 'tblTempUsageDetail_20' ) start [2025-01-02 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155691', 'tblTempUsageDetail_20' ) end [2025-01-02 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:12:22] Production.INFO: ==26420== Releasing lock... [2025-01-02 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:13:05 [end_date_ymd] => 2025-01-02 04:13:05 [RateCDR] => 1 ) [2025-01-02 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:13:05' and `end` < '2025-01-02 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:13:18] Production.INFO: count ==173 [2025-01-02 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:13:05 - End Time 2025-01-02 04:13:05 [2025-01-02 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155696', 'tblTempUsageDetail_20' ) start [2025-01-02 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155696', 'tblTempUsageDetail_20' ) end [2025-01-02 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155696', 'tblTempVendorCDR_20' ) start [2025-01-02 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155696', 'tblTempVendorCDR_20' ) end [2025-01-02 04:13:18] Production.INFO: ProcessCDR(1,14155696,1,1,2) [2025-01-02 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155696', 'tblTempUsageDetail_20' ) start [2025-01-02 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155696', 'tblTempUsageDetail_20' ) end [2025-01-02 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:13:21] Production.INFO: ==26492== Releasing lock... [2025-01-02 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:14:05 [end_date_ymd] => 2025-01-02 04:14:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:14:05' and `end` < '2025-01-02 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-01-02 04:14:20] Production.INFO: count ==173 [2025-01-02 04:14:20] Production.ERROR: pbx CDR StartTime 2025-01-02 01:14:05 - End Time 2025-01-02 04:14:05 [2025-01-02 04:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155701', 'tblTempUsageDetail_20' ) start [2025-01-02 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155701', 'tblTempUsageDetail_20' ) end [2025-01-02 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155701', 'tblTempVendorCDR_20' ) start [2025-01-02 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155701', 'tblTempVendorCDR_20' ) end [2025-01-02 04:14:20] Production.INFO: ProcessCDR(1,14155701,1,1,2) [2025-01-02 04:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155701', 'tblTempUsageDetail_20' ) start [2025-01-02 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155701', 'tblTempUsageDetail_20' ) end [2025-01-02 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:14:23] Production.INFO: ==26570== Releasing lock... [2025-01-02 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:14:23] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:15:06 [end_date_ymd] => 2025-01-02 04:15:06 [RateCDR] => 1 ) [2025-01-02 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:15:06' and `end` < '2025-01-02 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:15:19] Production.INFO: count ==173 [2025-01-02 04:15:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:15:06 - End Time 2025-01-02 04:15:06 [2025-01-02 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155706', 'tblTempUsageDetail_20' ) start [2025-01-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155706', 'tblTempUsageDetail_20' ) end [2025-01-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155706', 'tblTempVendorCDR_20' ) start [2025-01-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155706', 'tblTempVendorCDR_20' ) end [2025-01-02 04:15:19] Production.INFO: ProcessCDR(1,14155706,1,1,2) [2025-01-02 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155706', 'tblTempUsageDetail_20' ) start [2025-01-02 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155706', 'tblTempUsageDetail_20' ) end [2025-01-02 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:15:22] Production.INFO: ==26655== Releasing lock... [2025-01-02 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:15:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:16:05 [end_date_ymd] => 2025-01-02 04:16:05 [RateCDR] => 1 ) [2025-01-02 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:16:05' and `end` < '2025-01-02 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:16:18] Production.INFO: count ==172 [2025-01-02 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:16:05 - End Time 2025-01-02 04:16:05 [2025-01-02 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155711', 'tblTempUsageDetail_20' ) start [2025-01-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155711', 'tblTempUsageDetail_20' ) end [2025-01-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155711', 'tblTempVendorCDR_20' ) start [2025-01-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155711', 'tblTempVendorCDR_20' ) end [2025-01-02 04:16:18] Production.INFO: ProcessCDR(1,14155711,1,1,2) [2025-01-02 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155711', 'tblTempUsageDetail_20' ) start [2025-01-02 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155711', 'tblTempUsageDetail_20' ) end [2025-01-02 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:16:21] Production.INFO: ==26735== Releasing lock... [2025-01-02 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:17:05 [end_date_ymd] => 2025-01-02 04:17:05 [RateCDR] => 1 ) [2025-01-02 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:17:05' and `end` < '2025-01-02 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:17:19] Production.INFO: count ==172 [2025-01-02 04:17:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:17:05 - End Time 2025-01-02 04:17:05 [2025-01-02 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155716', 'tblTempUsageDetail_20' ) start [2025-01-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155716', 'tblTempUsageDetail_20' ) end [2025-01-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155716', 'tblTempVendorCDR_20' ) start [2025-01-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155716', 'tblTempVendorCDR_20' ) end [2025-01-02 04:17:19] Production.INFO: ProcessCDR(1,14155716,1,1,2) [2025-01-02 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155716', 'tblTempUsageDetail_20' ) start [2025-01-02 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155716', 'tblTempUsageDetail_20' ) end [2025-01-02 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:17:22] Production.INFO: ==26822== Releasing lock... [2025-01-02 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:18:05 [end_date_ymd] => 2025-01-02 04:18:05 [RateCDR] => 1 ) [2025-01-02 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:18:05' and `end` < '2025-01-02 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:18:18] Production.INFO: count ==171 [2025-01-02 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:18:05 - End Time 2025-01-02 04:18:05 [2025-01-02 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155721', 'tblTempUsageDetail_20' ) start [2025-01-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155721', 'tblTempUsageDetail_20' ) end [2025-01-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155721', 'tblTempVendorCDR_20' ) start [2025-01-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155721', 'tblTempVendorCDR_20' ) end [2025-01-02 04:18:18] Production.INFO: ProcessCDR(1,14155721,1,1,2) [2025-01-02 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155721', 'tblTempUsageDetail_20' ) start [2025-01-02 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155721', 'tblTempUsageDetail_20' ) end [2025-01-02 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:18:21] Production.INFO: ==26895== Releasing lock... [2025-01-02 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:19:05 [end_date_ymd] => 2025-01-02 04:19:05 [RateCDR] => 1 ) [2025-01-02 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:19:05' and `end` < '2025-01-02 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:19:18] Production.INFO: count ==171 [2025-01-02 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:19:05 - End Time 2025-01-02 04:19:05 [2025-01-02 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155726', 'tblTempUsageDetail_20' ) start [2025-01-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155726', 'tblTempUsageDetail_20' ) end [2025-01-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155726', 'tblTempVendorCDR_20' ) start [2025-01-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155726', 'tblTempVendorCDR_20' ) end [2025-01-02 04:19:18] Production.INFO: ProcessCDR(1,14155726,1,1,2) [2025-01-02 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155726', 'tblTempUsageDetail_20' ) start [2025-01-02 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155726', 'tblTempUsageDetail_20' ) end [2025-01-02 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:19:22] Production.INFO: ==26967== Releasing lock... [2025-01-02 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:19:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:20:05 [end_date_ymd] => 2025-01-02 04:20:05 [RateCDR] => 1 ) [2025-01-02 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:20:05' and `end` < '2025-01-02 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:20:19] Production.INFO: count ==167 [2025-01-02 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:20:05 - End Time 2025-01-02 04:20:05 [2025-01-02 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155731', 'tblTempUsageDetail_20' ) start [2025-01-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155731', 'tblTempUsageDetail_20' ) end [2025-01-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155731', 'tblTempVendorCDR_20' ) start [2025-01-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155731', 'tblTempVendorCDR_20' ) end [2025-01-02 04:20:19] Production.INFO: ProcessCDR(1,14155731,1,1,2) [2025-01-02 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155731', 'tblTempUsageDetail_20' ) start [2025-01-02 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155731', 'tblTempUsageDetail_20' ) end [2025-01-02 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:20:22] Production.INFO: ==27040== Releasing lock... [2025-01-02 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:21:05 [end_date_ymd] => 2025-01-02 04:21:05 [RateCDR] => 1 ) [2025-01-02 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:21:05' and `end` < '2025-01-02 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:21:19] Production.INFO: count ==159 [2025-01-02 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:21:05 - End Time 2025-01-02 04:21:05 [2025-01-02 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155737', 'tblTempUsageDetail_20' ) start [2025-01-02 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155737', 'tblTempUsageDetail_20' ) end [2025-01-02 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155737', 'tblTempVendorCDR_20' ) start [2025-01-02 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155737', 'tblTempVendorCDR_20' ) end [2025-01-02 04:21:19] Production.INFO: ProcessCDR(1,14155737,1,1,2) [2025-01-02 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155737', 'tblTempUsageDetail_20' ) start [2025-01-02 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155737', 'tblTempUsageDetail_20' ) end [2025-01-02 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:21:22] Production.INFO: ==27119== Releasing lock... [2025-01-02 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:22:05 [end_date_ymd] => 2025-01-02 04:22:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:22:05' and `end` < '2025-01-02 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-01-02 04:22:18] Production.INFO: count ==159 [2025-01-02 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:22:05 - End Time 2025-01-02 04:22:05 [2025-01-02 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155742', 'tblTempUsageDetail_20' ) start [2025-01-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155742', 'tblTempUsageDetail_20' ) end [2025-01-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155742', 'tblTempVendorCDR_20' ) start [2025-01-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155742', 'tblTempVendorCDR_20' ) end [2025-01-02 04:22:18] Production.INFO: ProcessCDR(1,14155742,1,1,2) [2025-01-02 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155742', 'tblTempUsageDetail_20' ) start [2025-01-02 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155742', 'tblTempUsageDetail_20' ) end [2025-01-02 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:22:21] Production.INFO: ==27207== Releasing lock... [2025-01-02 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:23:05 [end_date_ymd] => 2025-01-02 04:23:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:23:05' and `end` < '2025-01-02 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-01-02 04:23:18] Production.INFO: count ==159 [2025-01-02 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:23:05 - End Time 2025-01-02 04:23:05 [2025-01-02 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155747', 'tblTempUsageDetail_20' ) start [2025-01-02 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155747', 'tblTempUsageDetail_20' ) end [2025-01-02 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155747', 'tblTempVendorCDR_20' ) start [2025-01-02 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155747', 'tblTempVendorCDR_20' ) end [2025-01-02 04:23:18] Production.INFO: ProcessCDR(1,14155747,1,1,2) [2025-01-02 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155747', 'tblTempUsageDetail_20' ) start [2025-01-02 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155747', 'tblTempUsageDetail_20' ) end [2025-01-02 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:23:21] Production.INFO: ==27283== Releasing lock... [2025-01-02 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:24:04 [end_date_ymd] => 2025-01-02 04:24:04 [RateCDR] => 1 ) [2025-01-02 04:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:24:04' and `end` < '2025-01-02 04:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:24:18] Production.INFO: count ==159 [2025-01-02 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:24:04 - End Time 2025-01-02 04:24:04 [2025-01-02 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155752', 'tblTempUsageDetail_20' ) start [2025-01-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155752', 'tblTempUsageDetail_20' ) end [2025-01-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155752', 'tblTempVendorCDR_20' ) start [2025-01-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155752', 'tblTempVendorCDR_20' ) end [2025-01-02 04:24:18] Production.INFO: ProcessCDR(1,14155752,1,1,2) [2025-01-02 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155752', 'tblTempUsageDetail_20' ) start [2025-01-02 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155752', 'tblTempUsageDetail_20' ) end [2025-01-02 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:24:21] Production.INFO: ==27394== Releasing lock... [2025-01-02 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:25:05 [end_date_ymd] => 2025-01-02 04:25:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:25:05' and `end` < '2025-01-02 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-01-02 04:25:17] Production.INFO: count ==159 [2025-01-02 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:25:05 - End Time 2025-01-02 04:25:05 [2025-01-02 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155757', 'tblTempUsageDetail_20' ) start [2025-01-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155757', 'tblTempUsageDetail_20' ) end [2025-01-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155757', 'tblTempVendorCDR_20' ) start [2025-01-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155757', 'tblTempVendorCDR_20' ) end [2025-01-02 04:25:17] Production.INFO: ProcessCDR(1,14155757,1,1,2) [2025-01-02 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155757', 'tblTempUsageDetail_20' ) start [2025-01-02 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155757', 'tblTempUsageDetail_20' ) end [2025-01-02 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:25:21] Production.INFO: ==27466== Releasing lock... [2025-01-02 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:26:05 [end_date_ymd] => 2025-01-02 04:26:05 [RateCDR] => 1 ) [2025-01-02 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:26:05' and `end` < '2025-01-02 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:26:19] Production.INFO: count ==159 [2025-01-02 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:26:05 - End Time 2025-01-02 04:26:05 [2025-01-02 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155762', 'tblTempUsageDetail_20' ) start [2025-01-02 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155762', 'tblTempUsageDetail_20' ) end [2025-01-02 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155762', 'tblTempVendorCDR_20' ) start [2025-01-02 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155762', 'tblTempVendorCDR_20' ) end [2025-01-02 04:26:19] Production.INFO: ProcessCDR(1,14155762,1,1,2) [2025-01-02 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155762', 'tblTempUsageDetail_20' ) start [2025-01-02 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155762', 'tblTempUsageDetail_20' ) end [2025-01-02 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:26:22] Production.INFO: ==27538== Releasing lock... [2025-01-02 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:27:05 [end_date_ymd] => 2025-01-02 04:27:05 [RateCDR] => 1 ) [2025-01-02 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:27:05' and `end` < '2025-01-02 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:27:18] Production.INFO: count ==159 [2025-01-02 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:27:05 - End Time 2025-01-02 04:27:05 [2025-01-02 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155767', 'tblTempUsageDetail_20' ) start [2025-01-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155767', 'tblTempUsageDetail_20' ) end [2025-01-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155767', 'tblTempVendorCDR_20' ) start [2025-01-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155767', 'tblTempVendorCDR_20' ) end [2025-01-02 04:27:18] Production.INFO: ProcessCDR(1,14155767,1,1,2) [2025-01-02 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155767', 'tblTempUsageDetail_20' ) start [2025-01-02 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155767', 'tblTempUsageDetail_20' ) end [2025-01-02 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:27:21] Production.INFO: ==27611== Releasing lock... [2025-01-02 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:28:05 [end_date_ymd] => 2025-01-02 04:28:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:28:05' and `end` < '2025-01-02 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-01-02 04:28:18] Production.INFO: count ==159 [2025-01-02 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:28:05 - End Time 2025-01-02 04:28:05 [2025-01-02 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155772', 'tblTempUsageDetail_20' ) start [2025-01-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155772', 'tblTempUsageDetail_20' ) end [2025-01-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155772', 'tblTempVendorCDR_20' ) start [2025-01-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155772', 'tblTempVendorCDR_20' ) end [2025-01-02 04:28:18] Production.INFO: ProcessCDR(1,14155772,1,1,2) [2025-01-02 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155772', 'tblTempUsageDetail_20' ) start [2025-01-02 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155772', 'tblTempUsageDetail_20' ) end [2025-01-02 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:28:21] Production.INFO: ==27683== Releasing lock... [2025-01-02 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:29:05 [end_date_ymd] => 2025-01-02 04:29:05 [RateCDR] => 1 ) [2025-01-02 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:29:05' and `end` < '2025-01-02 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:29:18] Production.INFO: count ==157 [2025-01-02 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:29:05 - End Time 2025-01-02 04:29:05 [2025-01-02 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155777', 'tblTempUsageDetail_20' ) start [2025-01-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155777', 'tblTempUsageDetail_20' ) end [2025-01-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155777', 'tblTempVendorCDR_20' ) start [2025-01-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155777', 'tblTempVendorCDR_20' ) end [2025-01-02 04:29:18] Production.INFO: ProcessCDR(1,14155777,1,1,2) [2025-01-02 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155777', 'tblTempUsageDetail_20' ) start [2025-01-02 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155777', 'tblTempUsageDetail_20' ) end [2025-01-02 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:29:21] Production.INFO: ==27755== Releasing lock... [2025-01-02 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:30:06 [end_date_ymd] => 2025-01-02 04:30:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:30:06' and `end` < '2025-01-02 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-01-02 04:30:19] Production.INFO: count ==151 [2025-01-02 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:30:06 - End Time 2025-01-02 04:30:06 [2025-01-02 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155784', 'tblTempUsageDetail_20' ) start [2025-01-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155784', 'tblTempUsageDetail_20' ) end [2025-01-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155784', 'tblTempVendorCDR_20' ) start [2025-01-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155784', 'tblTempVendorCDR_20' ) end [2025-01-02 04:30:19] Production.INFO: ProcessCDR(1,14155784,1,1,2) [2025-01-02 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155784', 'tblTempUsageDetail_20' ) start [2025-01-02 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155784', 'tblTempUsageDetail_20' ) end [2025-01-02 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:30:22] Production.INFO: ==27833== Releasing lock... [2025-01-02 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:31:05 [end_date_ymd] => 2025-01-02 04:31:05 [RateCDR] => 1 ) [2025-01-02 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:31:05' and `end` < '2025-01-02 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:31:17] Production.INFO: count ==142 [2025-01-02 04:31:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:31:05 - End Time 2025-01-02 04:31:05 [2025-01-02 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155789', 'tblTempUsageDetail_20' ) start [2025-01-02 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155789', 'tblTempUsageDetail_20' ) end [2025-01-02 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155789', 'tblTempVendorCDR_20' ) start [2025-01-02 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155789', 'tblTempVendorCDR_20' ) end [2025-01-02 04:31:17] Production.INFO: ProcessCDR(1,14155789,1,1,2) [2025-01-02 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155789', 'tblTempUsageDetail_20' ) start [2025-01-02 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155789', 'tblTempUsageDetail_20' ) end [2025-01-02 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:31:21] Production.INFO: ==27945== Releasing lock... [2025-01-02 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:32:05 [end_date_ymd] => 2025-01-02 04:32:05 [RateCDR] => 1 ) [2025-01-02 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:32:05' and `end` < '2025-01-02 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:32:18] Production.INFO: count ==142 [2025-01-02 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:32:05 - End Time 2025-01-02 04:32:05 [2025-01-02 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155794', 'tblTempUsageDetail_20' ) start [2025-01-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155794', 'tblTempUsageDetail_20' ) end [2025-01-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155794', 'tblTempVendorCDR_20' ) start [2025-01-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155794', 'tblTempVendorCDR_20' ) end [2025-01-02 04:32:18] Production.INFO: ProcessCDR(1,14155794,1,1,2) [2025-01-02 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155794', 'tblTempUsageDetail_20' ) start [2025-01-02 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155794', 'tblTempUsageDetail_20' ) end [2025-01-02 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:32:21] Production.INFO: ==28018== Releasing lock... [2025-01-02 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:33:05 [end_date_ymd] => 2025-01-02 04:33:05 [RateCDR] => 1 ) [2025-01-02 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:33:05' and `end` < '2025-01-02 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:33:19] Production.INFO: count ==142 [2025-01-02 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:33:05 - End Time 2025-01-02 04:33:05 [2025-01-02 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155799', 'tblTempUsageDetail_20' ) start [2025-01-02 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155799', 'tblTempUsageDetail_20' ) end [2025-01-02 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155799', 'tblTempVendorCDR_20' ) start [2025-01-02 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155799', 'tblTempVendorCDR_20' ) end [2025-01-02 04:33:19] Production.INFO: ProcessCDR(1,14155799,1,1,2) [2025-01-02 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155799', 'tblTempUsageDetail_20' ) start [2025-01-02 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155799', 'tblTempUsageDetail_20' ) end [2025-01-02 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:33:22] Production.INFO: ==28090== Releasing lock... [2025-01-02 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:34:05 [end_date_ymd] => 2025-01-02 04:34:05 [RateCDR] => 1 ) [2025-01-02 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:34:05' and `end` < '2025-01-02 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:34:18] Production.INFO: count ==142 [2025-01-02 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:34:05 - End Time 2025-01-02 04:34:05 [2025-01-02 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155804', 'tblTempUsageDetail_20' ) start [2025-01-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155804', 'tblTempUsageDetail_20' ) end [2025-01-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155804', 'tblTempVendorCDR_20' ) start [2025-01-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155804', 'tblTempVendorCDR_20' ) end [2025-01-02 04:34:18] Production.INFO: ProcessCDR(1,14155804,1,1,2) [2025-01-02 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155804', 'tblTempUsageDetail_20' ) start [2025-01-02 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155804', 'tblTempUsageDetail_20' ) end [2025-01-02 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:34:21] Production.INFO: ==28162== Releasing lock... [2025-01-02 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:35:05 [end_date_ymd] => 2025-01-02 04:35:05 [RateCDR] => 1 ) [2025-01-02 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:35:05' and `end` < '2025-01-02 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:35:18] Production.INFO: count ==142 [2025-01-02 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:35:05 - End Time 2025-01-02 04:35:05 [2025-01-02 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155809', 'tblTempUsageDetail_20' ) start [2025-01-02 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155809', 'tblTempUsageDetail_20' ) end [2025-01-02 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155809', 'tblTempVendorCDR_20' ) start [2025-01-02 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155809', 'tblTempVendorCDR_20' ) end [2025-01-02 04:35:18] Production.INFO: ProcessCDR(1,14155809,1,1,2) [2025-01-02 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155809', 'tblTempUsageDetail_20' ) start [2025-01-02 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155809', 'tblTempUsageDetail_20' ) end [2025-01-02 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:35:21] Production.INFO: ==28236== Releasing lock... [2025-01-02 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:36:05 [end_date_ymd] => 2025-01-02 04:36:05 [RateCDR] => 1 ) [2025-01-02 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:36:05' and `end` < '2025-01-02 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:36:19] Production.INFO: count ==142 [2025-01-02 04:36:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:36:05 - End Time 2025-01-02 04:36:05 [2025-01-02 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155814', 'tblTempUsageDetail_20' ) start [2025-01-02 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155814', 'tblTempUsageDetail_20' ) end [2025-01-02 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155814', 'tblTempVendorCDR_20' ) start [2025-01-02 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155814', 'tblTempVendorCDR_20' ) end [2025-01-02 04:36:19] Production.INFO: ProcessCDR(1,14155814,1,1,2) [2025-01-02 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155814', 'tblTempUsageDetail_20' ) start [2025-01-02 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155814', 'tblTempUsageDetail_20' ) end [2025-01-02 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:36:22] Production.INFO: ==28309== Releasing lock... [2025-01-02 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:37:05 [end_date_ymd] => 2025-01-02 04:37:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:37:05' and `end` < '2025-01-02 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-01-02 04:37:17] Production.INFO: count ==142 [2025-01-02 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:37:05 - End Time 2025-01-02 04:37:05 [2025-01-02 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155819', 'tblTempUsageDetail_20' ) start [2025-01-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155819', 'tblTempUsageDetail_20' ) end [2025-01-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155819', 'tblTempVendorCDR_20' ) start [2025-01-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155819', 'tblTempVendorCDR_20' ) end [2025-01-02 04:37:17] Production.INFO: ProcessCDR(1,14155819,1,1,2) [2025-01-02 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155819', 'tblTempUsageDetail_20' ) start [2025-01-02 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155819', 'tblTempUsageDetail_20' ) end [2025-01-02 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:37:20] Production.INFO: ==28382== Releasing lock... [2025-01-02 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:38:05 [end_date_ymd] => 2025-01-02 04:38:05 [RateCDR] => 1 ) [2025-01-02 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:38:05' and `end` < '2025-01-02 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:38:18] Production.INFO: count ==142 [2025-01-02 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:38:05 - End Time 2025-01-02 04:38:05 [2025-01-02 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155824', 'tblTempUsageDetail_20' ) start [2025-01-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155824', 'tblTempUsageDetail_20' ) end [2025-01-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155824', 'tblTempVendorCDR_20' ) start [2025-01-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155824', 'tblTempVendorCDR_20' ) end [2025-01-02 04:38:18] Production.INFO: ProcessCDR(1,14155824,1,1,2) [2025-01-02 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155824', 'tblTempUsageDetail_20' ) start [2025-01-02 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155824', 'tblTempUsageDetail_20' ) end [2025-01-02 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:38:22] Production.INFO: ==28461== Releasing lock... [2025-01-02 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:39:05 [end_date_ymd] => 2025-01-02 04:39:05 [RateCDR] => 1 ) [2025-01-02 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:39:05' and `end` < '2025-01-02 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:39:17] Production.INFO: count ==142 [2025-01-02 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:39:05 - End Time 2025-01-02 04:39:05 [2025-01-02 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155829', 'tblTempUsageDetail_20' ) start [2025-01-02 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155829', 'tblTempUsageDetail_20' ) end [2025-01-02 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155829', 'tblTempVendorCDR_20' ) start [2025-01-02 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155829', 'tblTempVendorCDR_20' ) end [2025-01-02 04:39:17] Production.INFO: ProcessCDR(1,14155829,1,1,2) [2025-01-02 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155829', 'tblTempUsageDetail_20' ) start [2025-01-02 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155829', 'tblTempUsageDetail_20' ) end [2025-01-02 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:39:20] Production.INFO: ==28541== Releasing lock... [2025-01-02 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:40:06 [end_date_ymd] => 2025-01-02 04:40:06 [RateCDR] => 1 ) [2025-01-02 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:40:06' and `end` < '2025-01-02 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:40:19] Production.INFO: count ==134 [2025-01-02 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:40:06 - End Time 2025-01-02 04:40:06 [2025-01-02 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155835', 'tblTempUsageDetail_20' ) start [2025-01-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155835', 'tblTempUsageDetail_20' ) end [2025-01-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155835', 'tblTempVendorCDR_20' ) start [2025-01-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155835', 'tblTempVendorCDR_20' ) end [2025-01-02 04:40:19] Production.INFO: ProcessCDR(1,14155835,1,1,2) [2025-01-02 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155835', 'tblTempUsageDetail_20' ) start [2025-01-02 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155835', 'tblTempUsageDetail_20' ) end [2025-01-02 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:40:22] Production.INFO: ==28677== Releasing lock... [2025-01-02 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:41:05 [end_date_ymd] => 2025-01-02 04:41:05 [RateCDR] => 1 ) [2025-01-02 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:41:05' and `end` < '2025-01-02 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:41:18] Production.INFO: count ==134 [2025-01-02 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:41:05 - End Time 2025-01-02 04:41:05 [2025-01-02 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155840', 'tblTempUsageDetail_20' ) start [2025-01-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155840', 'tblTempUsageDetail_20' ) end [2025-01-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155840', 'tblTempVendorCDR_20' ) start [2025-01-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155840', 'tblTempVendorCDR_20' ) end [2025-01-02 04:41:18] Production.INFO: ProcessCDR(1,14155840,1,1,2) [2025-01-02 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155840', 'tblTempUsageDetail_20' ) start [2025-01-02 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155840', 'tblTempUsageDetail_20' ) end [2025-01-02 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:41:22] Production.INFO: ==28753== Releasing lock... [2025-01-02 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:42:05 [end_date_ymd] => 2025-01-02 04:42:05 [RateCDR] => 1 ) [2025-01-02 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:42:05' and `end` < '2025-01-02 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:42:18] Production.INFO: count ==133 [2025-01-02 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:42:05 - End Time 2025-01-02 04:42:05 [2025-01-02 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155845', 'tblTempUsageDetail_20' ) start [2025-01-02 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155845', 'tblTempUsageDetail_20' ) end [2025-01-02 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155845', 'tblTempVendorCDR_20' ) start [2025-01-02 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155845', 'tblTempVendorCDR_20' ) end [2025-01-02 04:42:18] Production.INFO: ProcessCDR(1,14155845,1,1,2) [2025-01-02 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155845', 'tblTempUsageDetail_20' ) start [2025-01-02 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155845', 'tblTempUsageDetail_20' ) end [2025-01-02 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:42:21] Production.INFO: ==28825== Releasing lock... [2025-01-02 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:43:05 [end_date_ymd] => 2025-01-02 04:43:05 [RateCDR] => 1 ) [2025-01-02 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:43:05' and `end` < '2025-01-02 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:43:18] Production.INFO: count ==133 [2025-01-02 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:43:05 - End Time 2025-01-02 04:43:05 [2025-01-02 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155850', 'tblTempUsageDetail_20' ) start [2025-01-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155850', 'tblTempUsageDetail_20' ) end [2025-01-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155850', 'tblTempVendorCDR_20' ) start [2025-01-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155850', 'tblTempVendorCDR_20' ) end [2025-01-02 04:43:18] Production.INFO: ProcessCDR(1,14155850,1,1,2) [2025-01-02 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155850', 'tblTempUsageDetail_20' ) start [2025-01-02 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155850', 'tblTempUsageDetail_20' ) end [2025-01-02 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:43:21] Production.INFO: ==28898== Releasing lock... [2025-01-02 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:44:05 [end_date_ymd] => 2025-01-02 04:44:05 [RateCDR] => 1 ) [2025-01-02 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:44:05' and `end` < '2025-01-02 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:44:18] Production.INFO: count ==133 [2025-01-02 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 01:44:05 - End Time 2025-01-02 04:44:05 [2025-01-02 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155855', 'tblTempUsageDetail_20' ) start [2025-01-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155855', 'tblTempUsageDetail_20' ) end [2025-01-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155855', 'tblTempVendorCDR_20' ) start [2025-01-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155855', 'tblTempVendorCDR_20' ) end [2025-01-02 04:44:18] Production.INFO: ProcessCDR(1,14155855,1,1,2) [2025-01-02 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155855', 'tblTempUsageDetail_20' ) start [2025-01-02 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155855', 'tblTempUsageDetail_20' ) end [2025-01-02 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:44:21] Production.INFO: ==28967== Releasing lock... [2025-01-02 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:45:05 [end_date_ymd] => 2025-01-02 04:45:05 [RateCDR] => 1 ) [2025-01-02 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:45:05' and `end` < '2025-01-02 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:45:17] Production.INFO: count ==133 [2025-01-02 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 01:45:05 - End Time 2025-01-02 04:45:05 [2025-01-02 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155860', 'tblTempUsageDetail_20' ) start [2025-01-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155860', 'tblTempUsageDetail_20' ) end [2025-01-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155860', 'tblTempVendorCDR_20' ) start [2025-01-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155860', 'tblTempVendorCDR_20' ) end [2025-01-02 04:45:17] Production.INFO: ProcessCDR(1,14155860,1,1,2) [2025-01-02 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155860', 'tblTempUsageDetail_20' ) start [2025-01-02 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155860', 'tblTempUsageDetail_20' ) end [2025-01-02 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:45:21] Production.INFO: ==29044== Releasing lock... [2025-01-02 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:46:04 [end_date_ymd] => 2025-01-02 04:46:04 [RateCDR] => 1 ) [2025-01-02 04:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:46:04' and `end` < '2025-01-02 04:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:46:42] Production.INFO: count ==133 [2025-01-02 04:46:42] Production.ERROR: pbx CDR StartTime 2025-01-02 01:46:04 - End Time 2025-01-02 04:46:04 [2025-01-02 04:46:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:46:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155861', 'tblTempUsageDetail_20' ) start [2025-01-02 04:46:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155861', 'tblTempUsageDetail_20' ) end [2025-01-02 04:46:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155861', 'tblTempVendorCDR_20' ) start [2025-01-02 04:46:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155861', 'tblTempVendorCDR_20' ) end [2025-01-02 04:46:42] Production.INFO: ProcessCDR(1,14155861,1,1,2) [2025-01-02 04:46:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:46:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:46:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:46:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:46:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155861', 'tblTempUsageDetail_20' ) start [2025-01-02 04:46:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155861', 'tblTempUsageDetail_20' ) end [2025-01-02 04:46:45] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:46:45] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:46:45] Production.INFO: ==29118== Releasing lock... [2025-01-02 04:46:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:46:45] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:47:05 [end_date_ymd] => 2025-01-02 04:47:05 [RateCDR] => 1 ) [2025-01-02 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:47:05' and `end` < '2025-01-02 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:47:19] Production.INFO: count ==133 [2025-01-02 04:47:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:47:05 - End Time 2025-01-02 04:47:05 [2025-01-02 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155870', 'tblTempUsageDetail_20' ) start [2025-01-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155870', 'tblTempUsageDetail_20' ) end [2025-01-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155870', 'tblTempVendorCDR_20' ) start [2025-01-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155870', 'tblTempVendorCDR_20' ) end [2025-01-02 04:47:19] Production.INFO: ProcessCDR(1,14155870,1,1,2) [2025-01-02 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155870', 'tblTempUsageDetail_20' ) start [2025-01-02 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155870', 'tblTempUsageDetail_20' ) end [2025-01-02 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:47:22] Production.INFO: ==29189== Releasing lock... [2025-01-02 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:48:04 [end_date_ymd] => 2025-01-02 04:48:04 [RateCDR] => 1 ) [2025-01-02 04:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:48:04' and `end` < '2025-01-02 04:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:48:19] Production.INFO: count ==133 [2025-01-02 04:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:48:04 - End Time 2025-01-02 04:48:04 [2025-01-02 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155875', 'tblTempUsageDetail_20' ) start [2025-01-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155875', 'tblTempUsageDetail_20' ) end [2025-01-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155875', 'tblTempVendorCDR_20' ) start [2025-01-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155875', 'tblTempVendorCDR_20' ) end [2025-01-02 04:48:19] Production.INFO: ProcessCDR(1,14155875,1,1,2) [2025-01-02 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155875', 'tblTempUsageDetail_20' ) start [2025-01-02 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155875', 'tblTempUsageDetail_20' ) end [2025-01-02 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:48:22] Production.INFO: ==29259== Releasing lock... [2025-01-02 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:49:04 [end_date_ymd] => 2025-01-02 04:49:04 [RateCDR] => 1 ) [2025-01-02 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:49:04' and `end` < '2025-01-02 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:49:19] Production.INFO: count ==133 [2025-01-02 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:49:04 - End Time 2025-01-02 04:49:04 [2025-01-02 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155880', 'tblTempUsageDetail_20' ) start [2025-01-02 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155880', 'tblTempUsageDetail_20' ) end [2025-01-02 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155880', 'tblTempVendorCDR_20' ) start [2025-01-02 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155880', 'tblTempVendorCDR_20' ) end [2025-01-02 04:49:19] Production.INFO: ProcessCDR(1,14155880,1,1,2) [2025-01-02 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155880', 'tblTempUsageDetail_20' ) start [2025-01-02 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155880', 'tblTempUsageDetail_20' ) end [2025-01-02 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:49:22] Production.INFO: ==29332== Releasing lock... [2025-01-02 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:50:04 [end_date_ymd] => 2025-01-02 04:50:04 [RateCDR] => 1 ) [2025-01-02 04:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:50:04' and `end` < '2025-01-02 04:50:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:50:19] Production.INFO: count ==129 [2025-01-02 04:50:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:50:04 - End Time 2025-01-02 04:50:04 [2025-01-02 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155884', 'tblTempUsageDetail_20' ) start [2025-01-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155884', 'tblTempUsageDetail_20' ) end [2025-01-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155884', 'tblTempVendorCDR_20' ) start [2025-01-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155884', 'tblTempVendorCDR_20' ) end [2025-01-02 04:50:19] Production.INFO: ProcessCDR(1,14155884,1,1,2) [2025-01-02 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155884', 'tblTempUsageDetail_20' ) start [2025-01-02 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155884', 'tblTempUsageDetail_20' ) end [2025-01-02 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:50:22] Production.INFO: ==29404== Releasing lock... [2025-01-02 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:51:04 [end_date_ymd] => 2025-01-02 04:51:04 [RateCDR] => 1 ) [2025-01-02 04:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:51:04' and `end` < '2025-01-02 04:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:51:19] Production.INFO: count ==115 [2025-01-02 04:51:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:51:04 - End Time 2025-01-02 04:51:04 [2025-01-02 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155891', 'tblTempUsageDetail_20' ) start [2025-01-02 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155891', 'tblTempUsageDetail_20' ) end [2025-01-02 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155891', 'tblTempVendorCDR_20' ) start [2025-01-02 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155891', 'tblTempVendorCDR_20' ) end [2025-01-02 04:51:19] Production.INFO: ProcessCDR(1,14155891,1,1,2) [2025-01-02 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155891', 'tblTempUsageDetail_20' ) start [2025-01-02 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155891', 'tblTempUsageDetail_20' ) end [2025-01-02 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:51:22] Production.INFO: ==29476== Releasing lock... [2025-01-02 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:52:04 [end_date_ymd] => 2025-01-02 04:52:04 [RateCDR] => 1 ) [2025-01-02 04:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:52:04' and `end` < '2025-01-02 04:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:52:19] Production.INFO: count ==113 [2025-01-02 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:52:04 - End Time 2025-01-02 04:52:04 [2025-01-02 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155896', 'tblTempUsageDetail_20' ) start [2025-01-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155896', 'tblTempUsageDetail_20' ) end [2025-01-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155896', 'tblTempVendorCDR_20' ) start [2025-01-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155896', 'tblTempVendorCDR_20' ) end [2025-01-02 04:52:19] Production.INFO: ProcessCDR(1,14155896,1,1,2) [2025-01-02 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155896', 'tblTempUsageDetail_20' ) start [2025-01-02 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155896', 'tblTempUsageDetail_20' ) end [2025-01-02 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:52:22] Production.INFO: ==29548== Releasing lock... [2025-01-02 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:53:05 [end_date_ymd] => 2025-01-02 04:53:05 [RateCDR] => 1 ) [2025-01-02 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:53:05' and `end` < '2025-01-02 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:53:20] Production.INFO: count ==112 [2025-01-02 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-02 01:53:05 - End Time 2025-01-02 04:53:05 [2025-01-02 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155901', 'tblTempUsageDetail_20' ) start [2025-01-02 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155901', 'tblTempUsageDetail_20' ) end [2025-01-02 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155901', 'tblTempVendorCDR_20' ) start [2025-01-02 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155901', 'tblTempVendorCDR_20' ) end [2025-01-02 04:53:20] Production.INFO: ProcessCDR(1,14155901,1,1,2) [2025-01-02 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155901', 'tblTempUsageDetail_20' ) start [2025-01-02 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155901', 'tblTempUsageDetail_20' ) end [2025-01-02 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:53:23] Production.INFO: ==29620== Releasing lock... [2025-01-02 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:54:05 [end_date_ymd] => 2025-01-02 04:54:05 [RateCDR] => 1 ) [2025-01-02 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:54:05' and `end` < '2025-01-02 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:54:20] Production.INFO: count ==112 [2025-01-02 04:54:20] Production.ERROR: pbx CDR StartTime 2025-01-02 01:54:05 - End Time 2025-01-02 04:54:05 [2025-01-02 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155906', 'tblTempUsageDetail_20' ) start [2025-01-02 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155906', 'tblTempUsageDetail_20' ) end [2025-01-02 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155906', 'tblTempVendorCDR_20' ) start [2025-01-02 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155906', 'tblTempVendorCDR_20' ) end [2025-01-02 04:54:20] Production.INFO: ProcessCDR(1,14155906,1,1,2) [2025-01-02 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155906', 'tblTempUsageDetail_20' ) start [2025-01-02 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155906', 'tblTempUsageDetail_20' ) end [2025-01-02 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:54:23] Production.INFO: ==29692== Releasing lock... [2025-01-02 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:55:05 [end_date_ymd] => 2025-01-02 04:55:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 01:55:05' and `end` < '2025-01-02 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-01-02 04:55:19] Production.INFO: count ==112 [2025-01-02 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:55:05 - End Time 2025-01-02 04:55:05 [2025-01-02 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155911', 'tblTempUsageDetail_20' ) start [2025-01-02 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155911', 'tblTempUsageDetail_20' ) end [2025-01-02 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155911', 'tblTempVendorCDR_20' ) start [2025-01-02 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155911', 'tblTempVendorCDR_20' ) end [2025-01-02 04:55:19] Production.INFO: ProcessCDR(1,14155911,1,1,2) [2025-01-02 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155911', 'tblTempUsageDetail_20' ) start [2025-01-02 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155911', 'tblTempUsageDetail_20' ) end [2025-01-02 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:55:23] Production.INFO: ==29806== Releasing lock... [2025-01-02 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:55:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:56:05 [end_date_ymd] => 2025-01-02 04:56:05 [RateCDR] => 1 ) [2025-01-02 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:56:05' and `end` < '2025-01-02 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:56:19] Production.INFO: count ==112 [2025-01-02 04:56:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:56:05 - End Time 2025-01-02 04:56:05 [2025-01-02 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155916', 'tblTempUsageDetail_20' ) start [2025-01-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155916', 'tblTempUsageDetail_20' ) end [2025-01-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155916', 'tblTempVendorCDR_20' ) start [2025-01-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155916', 'tblTempVendorCDR_20' ) end [2025-01-02 04:56:19] Production.INFO: ProcessCDR(1,14155916,1,1,2) [2025-01-02 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155916', 'tblTempUsageDetail_20' ) start [2025-01-02 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155916', 'tblTempUsageDetail_20' ) end [2025-01-02 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:56:23] Production.INFO: ==29882== Releasing lock... [2025-01-02 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:56:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:57:05 [end_date_ymd] => 2025-01-02 04:57:05 [RateCDR] => 1 ) [2025-01-02 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:57:05' and `end` < '2025-01-02 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:57:20] Production.INFO: count ==112 [2025-01-02 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-02 01:57:05 - End Time 2025-01-02 04:57:05 [2025-01-02 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155921', 'tblTempUsageDetail_20' ) start [2025-01-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155921', 'tblTempUsageDetail_20' ) end [2025-01-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155921', 'tblTempVendorCDR_20' ) start [2025-01-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155921', 'tblTempVendorCDR_20' ) end [2025-01-02 04:57:20] Production.INFO: ProcessCDR(1,14155921,1,1,2) [2025-01-02 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155921', 'tblTempUsageDetail_20' ) start [2025-01-02 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155921', 'tblTempUsageDetail_20' ) end [2025-01-02 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:57:23] Production.INFO: ==29959== Releasing lock... [2025-01-02 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:57:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:58:05 [end_date_ymd] => 2025-01-02 04:58:05 [RateCDR] => 1 ) [2025-01-02 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:58:05' and `end` < '2025-01-02 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:58:21] Production.INFO: count ==112 [2025-01-02 04:58:21] Production.ERROR: pbx CDR StartTime 2025-01-02 01:58:05 - End Time 2025-01-02 04:58:05 [2025-01-02 04:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155926', 'tblTempUsageDetail_20' ) start [2025-01-02 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155926', 'tblTempUsageDetail_20' ) end [2025-01-02 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155926', 'tblTempVendorCDR_20' ) start [2025-01-02 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155926', 'tblTempVendorCDR_20' ) end [2025-01-02 04:58:21] Production.INFO: ProcessCDR(1,14155926,1,1,2) [2025-01-02 04:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155926', 'tblTempUsageDetail_20' ) start [2025-01-02 04:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155926', 'tblTempUsageDetail_20' ) end [2025-01-02 04:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:58:25] Production.INFO: ==30037== Releasing lock... [2025-01-02 04:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:58:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 01:59:05 [end_date_ymd] => 2025-01-02 04:59:05 [RateCDR] => 1 ) [2025-01-02 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 01:59:05' and `end` < '2025-01-02 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 04:59:19] Production.INFO: count ==112 [2025-01-02 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-02 01:59:05 - End Time 2025-01-02 04:59:05 [2025-01-02 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155931', 'tblTempUsageDetail_20' ) start [2025-01-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155931', 'tblTempUsageDetail_20' ) end [2025-01-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155931', 'tblTempVendorCDR_20' ) start [2025-01-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155931', 'tblTempVendorCDR_20' ) end [2025-01-02 04:59:19] Production.INFO: ProcessCDR(1,14155931,1,1,2) [2025-01-02 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155931', 'tblTempUsageDetail_20' ) start [2025-01-02 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155931', 'tblTempUsageDetail_20' ) end [2025-01-02 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 04:59:22] Production.INFO: ==30118== Releasing lock... [2025-01-02 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 04:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-02 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:00:06 [end_date_ymd] => 2025-01-02 05:00:06 [RateCDR] => 1 ) [2025-01-02 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:00:06' and `end` < '2025-01-02 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:00:20] Production.INFO: count ==103 [2025-01-02 05:00:20] Production.ERROR: pbx CDR StartTime 2025-01-02 02:00:06 - End Time 2025-01-02 05:00:06 [2025-01-02 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155937', 'tblTempUsageDetail_20' ) start [2025-01-02 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155937', 'tblTempUsageDetail_20' ) end [2025-01-02 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155937', 'tblTempVendorCDR_20' ) start [2025-01-02 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155937', 'tblTempVendorCDR_20' ) end [2025-01-02 05:00:20] Production.INFO: ProcessCDR(1,14155937,1,1,2) [2025-01-02 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155937', 'tblTempUsageDetail_20' ) start [2025-01-02 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155937', 'tblTempUsageDetail_20' ) end [2025-01-02 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:00:23] Production.INFO: ==30196== Releasing lock... [2025-01-02 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:01:05 [end_date_ymd] => 2025-01-02 05:01:05 [RateCDR] => 1 ) [2025-01-02 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:01:05' and `end` < '2025-01-02 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:01:20] Production.INFO: count ==101 [2025-01-02 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-02 02:01:05 - End Time 2025-01-02 05:01:05 [2025-01-02 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155942', 'tblTempUsageDetail_20' ) start [2025-01-02 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155942', 'tblTempUsageDetail_20' ) end [2025-01-02 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155942', 'tblTempVendorCDR_20' ) start [2025-01-02 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155942', 'tblTempVendorCDR_20' ) end [2025-01-02 05:01:20] Production.INFO: ProcessCDR(1,14155942,1,1,2) [2025-01-02 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155942', 'tblTempUsageDetail_20' ) start [2025-01-02 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155942', 'tblTempUsageDetail_20' ) end [2025-01-02 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:01:23] Production.INFO: ==30287== Releasing lock... [2025-01-02 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:01:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:02:04 [end_date_ymd] => 2025-01-02 05:02:04 [RateCDR] => 1 ) [2025-01-02 05:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:02:04' and `end` < '2025-01-02 05:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:02:20] Production.INFO: count ==101 [2025-01-02 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-02 02:02:04 - End Time 2025-01-02 05:02:04 [2025-01-02 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155947', 'tblTempUsageDetail_20' ) start [2025-01-02 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155947', 'tblTempUsageDetail_20' ) end [2025-01-02 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155947', 'tblTempVendorCDR_20' ) start [2025-01-02 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155947', 'tblTempVendorCDR_20' ) end [2025-01-02 05:02:20] Production.INFO: ProcessCDR(1,14155947,1,1,2) [2025-01-02 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155947', 'tblTempUsageDetail_20' ) start [2025-01-02 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155947', 'tblTempUsageDetail_20' ) end [2025-01-02 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:02:23] Production.INFO: ==30367== Releasing lock... [2025-01-02 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:02:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:03:05 [end_date_ymd] => 2025-01-02 05:03:05 [RateCDR] => 1 ) [2025-01-02 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:03:05' and `end` < '2025-01-02 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:03:20] Production.INFO: count ==98 [2025-01-02 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-02 02:03:05 - End Time 2025-01-02 05:03:05 [2025-01-02 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155952', 'tblTempUsageDetail_20' ) start [2025-01-02 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155952', 'tblTempUsageDetail_20' ) end [2025-01-02 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155952', 'tblTempVendorCDR_20' ) start [2025-01-02 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155952', 'tblTempVendorCDR_20' ) end [2025-01-02 05:03:20] Production.INFO: ProcessCDR(1,14155952,1,1,2) [2025-01-02 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155952', 'tblTempUsageDetail_20' ) start [2025-01-02 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155952', 'tblTempUsageDetail_20' ) end [2025-01-02 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:03:23] Production.INFO: ==30451== Releasing lock... [2025-01-02 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:03:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:04:05 [end_date_ymd] => 2025-01-02 05:04:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:04:05' and `end` < '2025-01-02 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-01-02 05:04:19] Production.INFO: count ==98 [2025-01-02 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:04:05 - End Time 2025-01-02 05:04:05 [2025-01-02 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155957', 'tblTempUsageDetail_20' ) start [2025-01-02 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155957', 'tblTempUsageDetail_20' ) end [2025-01-02 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155957', 'tblTempVendorCDR_20' ) start [2025-01-02 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155957', 'tblTempVendorCDR_20' ) end [2025-01-02 05:04:19] Production.INFO: ProcessCDR(1,14155957,1,1,2) [2025-01-02 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155957', 'tblTempUsageDetail_20' ) start [2025-01-02 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155957', 'tblTempUsageDetail_20' ) end [2025-01-02 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:04:22] Production.INFO: ==30536== Releasing lock... [2025-01-02 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:05:05 [end_date_ymd] => 2025-01-02 05:05:05 [RateCDR] => 1 ) [2025-01-02 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:05:05' and `end` < '2025-01-02 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:05:17] Production.INFO: count ==98 [2025-01-02 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:05:05 - End Time 2025-01-02 05:05:05 [2025-01-02 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155962', 'tblTempUsageDetail_20' ) start [2025-01-02 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155962', 'tblTempUsageDetail_20' ) end [2025-01-02 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155962', 'tblTempVendorCDR_20' ) start [2025-01-02 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155962', 'tblTempVendorCDR_20' ) end [2025-01-02 05:05:17] Production.INFO: ProcessCDR(1,14155962,1,1,2) [2025-01-02 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155962', 'tblTempUsageDetail_20' ) start [2025-01-02 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155962', 'tblTempUsageDetail_20' ) end [2025-01-02 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:05:21] Production.INFO: ==30620== Releasing lock... [2025-01-02 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:06:05 [end_date_ymd] => 2025-01-02 05:06:05 [RateCDR] => 1 ) [2025-01-02 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:06:05' and `end` < '2025-01-02 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:07:01] Production.INFO: count ==98 [2025-01-02 05:07:01] Production.ERROR: pbx CDR StartTime 2025-01-02 02:06:05 - End Time 2025-01-02 05:06:05 [2025-01-02 05:07:01] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:07:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155967', 'tblTempUsageDetail_20' ) start [2025-01-02 05:07:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155967', 'tblTempUsageDetail_20' ) end [2025-01-02 05:07:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155967', 'tblTempVendorCDR_20' ) start [2025-01-02 05:07:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155967', 'tblTempVendorCDR_20' ) end [2025-01-02 05:07:01] Production.INFO: ProcessCDR(1,14155967,1,1,2) [2025-01-02 05:07:01] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:07:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:07:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:07:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:07:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155967', 'tblTempUsageDetail_20' ) start [2025-01-02 05:07:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155967', 'tblTempUsageDetail_20' ) end [2025-01-02 05:07:07] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:07:07] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:07:07] Production.INFO: ==30704== Releasing lock... [2025-01-02 05:07:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:07:07] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:08:05 [end_date_ymd] => 2025-01-02 05:08:05 [RateCDR] => 1 ) [2025-01-02 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:08:05' and `end` < '2025-01-02 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:08:21] Production.INFO: count ==98 [2025-01-02 05:08:21] Production.ERROR: pbx CDR StartTime 2025-01-02 02:08:05 - End Time 2025-01-02 05:08:05 [2025-01-02 05:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155976', 'tblTempUsageDetail_20' ) start [2025-01-02 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155976', 'tblTempUsageDetail_20' ) end [2025-01-02 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155976', 'tblTempVendorCDR_20' ) start [2025-01-02 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155976', 'tblTempVendorCDR_20' ) end [2025-01-02 05:08:21] Production.INFO: ProcessCDR(1,14155976,1,1,2) [2025-01-02 05:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155976', 'tblTempUsageDetail_20' ) start [2025-01-02 05:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155976', 'tblTempUsageDetail_20' ) end [2025-01-02 05:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:08:24] Production.INFO: ==30877== Releasing lock... [2025-01-02 05:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:08:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:09:04 [end_date_ymd] => 2025-01-02 05:09:04 [RateCDR] => 1 ) [2025-01-02 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:09:04' and `end` < '2025-01-02 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:09:18] Production.INFO: count ==98 [2025-01-02 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:09:04 - End Time 2025-01-02 05:09:04 [2025-01-02 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155981', 'tblTempUsageDetail_20' ) start [2025-01-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155981', 'tblTempUsageDetail_20' ) end [2025-01-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155981', 'tblTempVendorCDR_20' ) start [2025-01-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155981', 'tblTempVendorCDR_20' ) end [2025-01-02 05:09:18] Production.INFO: ProcessCDR(1,14155981,1,1,2) [2025-01-02 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155981', 'tblTempUsageDetail_20' ) start [2025-01-02 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155981', 'tblTempUsageDetail_20' ) end [2025-01-02 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:09:21] Production.INFO: ==30963== Releasing lock... [2025-01-02 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:10:06 [end_date_ymd] => 2025-01-02 05:10:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:10:06' and `end` < '2025-01-02 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-01-02 05:10:18] Production.INFO: count ==96 [2025-01-02 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:10:06 - End Time 2025-01-02 05:10:06 [2025-01-02 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155987', 'tblTempUsageDetail_20' ) start [2025-01-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155987', 'tblTempUsageDetail_20' ) end [2025-01-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155987', 'tblTempVendorCDR_20' ) start [2025-01-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155987', 'tblTempVendorCDR_20' ) end [2025-01-02 05:10:18] Production.INFO: ProcessCDR(1,14155987,1,1,2) [2025-01-02 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155987', 'tblTempUsageDetail_20' ) start [2025-01-02 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155987', 'tblTempUsageDetail_20' ) end [2025-01-02 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:10:21] Production.INFO: ==31051== Releasing lock... [2025-01-02 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:11:05 [end_date_ymd] => 2025-01-02 05:11:05 [RateCDR] => 1 ) [2025-01-02 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:11:05' and `end` < '2025-01-02 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:11:18] Production.INFO: count ==96 [2025-01-02 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:11:05 - End Time 2025-01-02 05:11:05 [2025-01-02 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155992', 'tblTempUsageDetail_20' ) start [2025-01-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155992', 'tblTempUsageDetail_20' ) end [2025-01-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155992', 'tblTempVendorCDR_20' ) start [2025-01-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155992', 'tblTempVendorCDR_20' ) end [2025-01-02 05:11:18] Production.INFO: ProcessCDR(1,14155992,1,1,2) [2025-01-02 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155992', 'tblTempUsageDetail_20' ) start [2025-01-02 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155992', 'tblTempUsageDetail_20' ) end [2025-01-02 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:11:21] Production.INFO: ==31177== Releasing lock... [2025-01-02 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:12:05 [end_date_ymd] => 2025-01-02 05:12:05 [RateCDR] => 1 ) [2025-01-02 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:12:05' and `end` < '2025-01-02 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:12:18] Production.INFO: count ==96 [2025-01-02 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:12:05 - End Time 2025-01-02 05:12:05 [2025-01-02 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155997', 'tblTempUsageDetail_20' ) start [2025-01-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14155997', 'tblTempUsageDetail_20' ) end [2025-01-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155997', 'tblTempVendorCDR_20' ) start [2025-01-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14155997', 'tblTempVendorCDR_20' ) end [2025-01-02 05:12:18] Production.INFO: ProcessCDR(1,14155997,1,1,2) [2025-01-02 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14155997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14155997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14155997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14155997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155997', 'tblTempUsageDetail_20' ) start [2025-01-02 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14155997', 'tblTempUsageDetail_20' ) end [2025-01-02 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:12:21] Production.INFO: ==31265== Releasing lock... [2025-01-02 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:13:04 [end_date_ymd] => 2025-01-02 05:13:04 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:13:04' and `end` < '2025-01-02 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-01-02 05:13:16] Production.INFO: count ==96 [2025-01-02 05:13:16] Production.ERROR: pbx CDR StartTime 2025-01-02 02:13:04 - End Time 2025-01-02 05:13:04 [2025-01-02 05:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156002', 'tblTempUsageDetail_20' ) start [2025-01-02 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156002', 'tblTempUsageDetail_20' ) end [2025-01-02 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156002', 'tblTempVendorCDR_20' ) start [2025-01-02 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156002', 'tblTempVendorCDR_20' ) end [2025-01-02 05:13:16] Production.INFO: ProcessCDR(1,14156002,1,1,2) [2025-01-02 05:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156002', 'tblTempUsageDetail_20' ) start [2025-01-02 05:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156002', 'tblTempUsageDetail_20' ) end [2025-01-02 05:13:19] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:13:19] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:13:19] Production.INFO: ==31354== Releasing lock... [2025-01-02 05:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:13:19] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:14:04 [end_date_ymd] => 2025-01-02 05:14:04 [RateCDR] => 1 ) [2025-01-02 05:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:14:04' and `end` < '2025-01-02 05:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:14:17] Production.INFO: count ==96 [2025-01-02 05:14:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:14:04 - End Time 2025-01-02 05:14:04 [2025-01-02 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156006', 'tblTempUsageDetail_20' ) start [2025-01-02 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156006', 'tblTempUsageDetail_20' ) end [2025-01-02 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156006', 'tblTempVendorCDR_20' ) start [2025-01-02 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156006', 'tblTempVendorCDR_20' ) end [2025-01-02 05:14:17] Production.INFO: ProcessCDR(1,14156006,1,1,2) [2025-01-02 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156006', 'tblTempUsageDetail_20' ) start [2025-01-02 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156006', 'tblTempUsageDetail_20' ) end [2025-01-02 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:14:20] Production.INFO: ==31431== Releasing lock... [2025-01-02 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:15:05 [end_date_ymd] => 2025-01-02 05:15:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:15:05' and `end` < '2025-01-02 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-01-02 05:15:18] Production.INFO: count ==96 [2025-01-02 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:15:05 - End Time 2025-01-02 05:15:05 [2025-01-02 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156012', 'tblTempUsageDetail_20' ) start [2025-01-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156012', 'tblTempUsageDetail_20' ) end [2025-01-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156012', 'tblTempVendorCDR_20' ) start [2025-01-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156012', 'tblTempVendorCDR_20' ) end [2025-01-02 05:15:18] Production.INFO: ProcessCDR(1,14156012,1,1,2) [2025-01-02 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156012', 'tblTempUsageDetail_20' ) start [2025-01-02 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156012', 'tblTempUsageDetail_20' ) end [2025-01-02 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:15:21] Production.INFO: ==31510== Releasing lock... [2025-01-02 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:16:04 [end_date_ymd] => 2025-01-02 05:16:04 [RateCDR] => 1 ) [2025-01-02 05:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:16:04' and `end` < '2025-01-02 05:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:16:17] Production.INFO: count ==96 [2025-01-02 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:16:04 - End Time 2025-01-02 05:16:04 [2025-01-02 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156016', 'tblTempUsageDetail_20' ) start [2025-01-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156016', 'tblTempUsageDetail_20' ) end [2025-01-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156016', 'tblTempVendorCDR_20' ) start [2025-01-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156016', 'tblTempVendorCDR_20' ) end [2025-01-02 05:16:17] Production.INFO: ProcessCDR(1,14156016,1,1,2) [2025-01-02 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156016', 'tblTempUsageDetail_20' ) start [2025-01-02 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156016', 'tblTempUsageDetail_20' ) end [2025-01-02 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:16:20] Production.INFO: ==31581== Releasing lock... [2025-01-02 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:17:05 [end_date_ymd] => 2025-01-02 05:17:05 [RateCDR] => 1 ) [2025-01-02 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:17:05' and `end` < '2025-01-02 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:17:17] Production.INFO: count ==96 [2025-01-02 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:17:05 - End Time 2025-01-02 05:17:05 [2025-01-02 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156022', 'tblTempUsageDetail_20' ) start [2025-01-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156022', 'tblTempUsageDetail_20' ) end [2025-01-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156022', 'tblTempVendorCDR_20' ) start [2025-01-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156022', 'tblTempVendorCDR_20' ) end [2025-01-02 05:17:18] Production.INFO: ProcessCDR(1,14156022,1,1,2) [2025-01-02 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156022', 'tblTempUsageDetail_20' ) start [2025-01-02 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156022', 'tblTempUsageDetail_20' ) end [2025-01-02 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:17:21] Production.INFO: ==31655== Releasing lock... [2025-01-02 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:18:05 [end_date_ymd] => 2025-01-02 05:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:18:05' and `end` < '2025-01-02 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-01-02 05:18:18] Production.INFO: count ==96 [2025-01-02 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:18:05 - End Time 2025-01-02 05:18:05 [2025-01-02 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156027', 'tblTempUsageDetail_20' ) start [2025-01-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156027', 'tblTempUsageDetail_20' ) end [2025-01-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156027', 'tblTempVendorCDR_20' ) start [2025-01-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156027', 'tblTempVendorCDR_20' ) end [2025-01-02 05:18:18] Production.INFO: ProcessCDR(1,14156027,1,1,2) [2025-01-02 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156027', 'tblTempUsageDetail_20' ) start [2025-01-02 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156027', 'tblTempUsageDetail_20' ) end [2025-01-02 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:18:21] Production.INFO: ==31726== Releasing lock... [2025-01-02 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:19:05 [end_date_ymd] => 2025-01-02 05:19:05 [RateCDR] => 1 ) [2025-01-02 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:19:05' and `end` < '2025-01-02 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:19:17] Production.INFO: count ==96 [2025-01-02 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:19:05 - End Time 2025-01-02 05:19:05 [2025-01-02 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156032', 'tblTempUsageDetail_20' ) start [2025-01-02 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156032', 'tblTempUsageDetail_20' ) end [2025-01-02 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156032', 'tblTempVendorCDR_20' ) start [2025-01-02 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156032', 'tblTempVendorCDR_20' ) end [2025-01-02 05:19:17] Production.INFO: ProcessCDR(1,14156032,1,1,2) [2025-01-02 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156032', 'tblTempUsageDetail_20' ) start [2025-01-02 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156032', 'tblTempUsageDetail_20' ) end [2025-01-02 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:19:20] Production.INFO: ==31796== Releasing lock... [2025-01-02 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:20:06 [end_date_ymd] => 2025-01-02 05:20:06 [RateCDR] => 1 ) [2025-01-02 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:20:06' and `end` < '2025-01-02 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:20:18] Production.INFO: count ==96 [2025-01-02 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:20:06 - End Time 2025-01-02 05:20:06 [2025-01-02 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156038', 'tblTempUsageDetail_20' ) start [2025-01-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156038', 'tblTempUsageDetail_20' ) end [2025-01-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156038', 'tblTempVendorCDR_20' ) start [2025-01-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156038', 'tblTempVendorCDR_20' ) end [2025-01-02 05:20:18] Production.INFO: ProcessCDR(1,14156038,1,1,2) [2025-01-02 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156038', 'tblTempUsageDetail_20' ) start [2025-01-02 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156038', 'tblTempUsageDetail_20' ) end [2025-01-02 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:20:21] Production.INFO: ==31869== Releasing lock... [2025-01-02 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:21:05 [end_date_ymd] => 2025-01-02 05:21:05 [RateCDR] => 1 ) [2025-01-02 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:21:05' and `end` < '2025-01-02 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:21:18] Production.INFO: count ==96 [2025-01-02 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:21:05 - End Time 2025-01-02 05:21:05 [2025-01-02 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156043', 'tblTempUsageDetail_20' ) start [2025-01-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156043', 'tblTempUsageDetail_20' ) end [2025-01-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156043', 'tblTempVendorCDR_20' ) start [2025-01-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156043', 'tblTempVendorCDR_20' ) end [2025-01-02 05:21:18] Production.INFO: ProcessCDR(1,14156043,1,1,2) [2025-01-02 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156043', 'tblTempUsageDetail_20' ) start [2025-01-02 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156043', 'tblTempUsageDetail_20' ) end [2025-01-02 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:21:21] Production.INFO: ==31943== Releasing lock... [2025-01-02 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:22:05 [end_date_ymd] => 2025-01-02 05:22:05 [RateCDR] => 1 ) [2025-01-02 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:22:05' and `end` < '2025-01-02 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:22:18] Production.INFO: count ==96 [2025-01-02 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:22:05 - End Time 2025-01-02 05:22:05 [2025-01-02 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156048', 'tblTempUsageDetail_20' ) start [2025-01-02 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156048', 'tblTempUsageDetail_20' ) end [2025-01-02 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156048', 'tblTempVendorCDR_20' ) start [2025-01-02 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156048', 'tblTempVendorCDR_20' ) end [2025-01-02 05:22:18] Production.INFO: ProcessCDR(1,14156048,1,1,2) [2025-01-02 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156048', 'tblTempUsageDetail_20' ) start [2025-01-02 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156048', 'tblTempUsageDetail_20' ) end [2025-01-02 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:22:21] Production.INFO: ==32015== Releasing lock... [2025-01-02 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:23:05 [end_date_ymd] => 2025-01-02 05:23:05 [RateCDR] => 1 ) [2025-01-02 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:23:05' and `end` < '2025-01-02 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:23:17] Production.INFO: count ==96 [2025-01-02 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:23:05 - End Time 2025-01-02 05:23:05 [2025-01-02 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156053', 'tblTempUsageDetail_20' ) start [2025-01-02 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156053', 'tblTempUsageDetail_20' ) end [2025-01-02 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156053', 'tblTempVendorCDR_20' ) start [2025-01-02 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156053', 'tblTempVendorCDR_20' ) end [2025-01-02 05:23:17] Production.INFO: ProcessCDR(1,14156053,1,1,2) [2025-01-02 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156053', 'tblTempUsageDetail_20' ) start [2025-01-02 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156053', 'tblTempUsageDetail_20' ) end [2025-01-02 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:23:20] Production.INFO: ==32084== Releasing lock... [2025-01-02 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:24:05 [end_date_ymd] => 2025-01-02 05:24:05 [RateCDR] => 1 ) [2025-01-02 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:24:05' and `end` < '2025-01-02 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:24:18] Production.INFO: count ==96 [2025-01-02 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:24:05 - End Time 2025-01-02 05:24:05 [2025-01-02 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156058', 'tblTempUsageDetail_20' ) start [2025-01-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156058', 'tblTempUsageDetail_20' ) end [2025-01-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156058', 'tblTempVendorCDR_20' ) start [2025-01-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156058', 'tblTempVendorCDR_20' ) end [2025-01-02 05:24:18] Production.INFO: ProcessCDR(1,14156058,1,1,2) [2025-01-02 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156058', 'tblTempUsageDetail_20' ) start [2025-01-02 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156058', 'tblTempUsageDetail_20' ) end [2025-01-02 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:24:21] Production.INFO: ==32200== Releasing lock... [2025-01-02 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:25:05 [end_date_ymd] => 2025-01-02 05:25:05 [RateCDR] => 1 ) [2025-01-02 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:25:05' and `end` < '2025-01-02 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:25:18] Production.INFO: count ==96 [2025-01-02 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:25:05 - End Time 2025-01-02 05:25:05 [2025-01-02 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156063', 'tblTempUsageDetail_20' ) start [2025-01-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156063', 'tblTempUsageDetail_20' ) end [2025-01-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156063', 'tblTempVendorCDR_20' ) start [2025-01-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156063', 'tblTempVendorCDR_20' ) end [2025-01-02 05:25:18] Production.INFO: ProcessCDR(1,14156063,1,1,2) [2025-01-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156063', 'tblTempUsageDetail_20' ) start [2025-01-02 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156063', 'tblTempUsageDetail_20' ) end [2025-01-02 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:25:21] Production.INFO: ==32314== Releasing lock... [2025-01-02 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:26:05 [end_date_ymd] => 2025-01-02 05:26:05 [RateCDR] => 1 ) [2025-01-02 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:26:05' and `end` < '2025-01-02 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:26:17] Production.INFO: count ==96 [2025-01-02 05:26:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:26:05 - End Time 2025-01-02 05:26:05 [2025-01-02 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156068', 'tblTempUsageDetail_20' ) start [2025-01-02 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156068', 'tblTempUsageDetail_20' ) end [2025-01-02 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156068', 'tblTempVendorCDR_20' ) start [2025-01-02 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156068', 'tblTempVendorCDR_20' ) end [2025-01-02 05:26:17] Production.INFO: ProcessCDR(1,14156068,1,1,2) [2025-01-02 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156068', 'tblTempUsageDetail_20' ) start [2025-01-02 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156068', 'tblTempUsageDetail_20' ) end [2025-01-02 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:26:20] Production.INFO: ==32386== Releasing lock... [2025-01-02 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:27:05 [end_date_ymd] => 2025-01-02 05:27:05 [RateCDR] => 1 ) [2025-01-02 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:27:05' and `end` < '2025-01-02 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:27:19] Production.INFO: count ==95 [2025-01-02 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:27:05 - End Time 2025-01-02 05:27:05 [2025-01-02 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156073', 'tblTempUsageDetail_20' ) start [2025-01-02 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156073', 'tblTempUsageDetail_20' ) end [2025-01-02 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156073', 'tblTempVendorCDR_20' ) start [2025-01-02 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156073', 'tblTempVendorCDR_20' ) end [2025-01-02 05:27:19] Production.INFO: ProcessCDR(1,14156073,1,1,2) [2025-01-02 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156073', 'tblTempUsageDetail_20' ) start [2025-01-02 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156073', 'tblTempUsageDetail_20' ) end [2025-01-02 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:27:22] Production.INFO: ==32498== Releasing lock... [2025-01-02 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:28:05 [end_date_ymd] => 2025-01-02 05:28:05 [RateCDR] => 1 ) [2025-01-02 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:28:05' and `end` < '2025-01-02 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:28:19] Production.INFO: count ==95 [2025-01-02 05:28:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:28:05 - End Time 2025-01-02 05:28:05 [2025-01-02 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156078', 'tblTempUsageDetail_20' ) start [2025-01-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156078', 'tblTempUsageDetail_20' ) end [2025-01-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156078', 'tblTempVendorCDR_20' ) start [2025-01-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156078', 'tblTempVendorCDR_20' ) end [2025-01-02 05:28:19] Production.INFO: ProcessCDR(1,14156078,1,1,2) [2025-01-02 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156078', 'tblTempUsageDetail_20' ) start [2025-01-02 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156078', 'tblTempUsageDetail_20' ) end [2025-01-02 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:28:22] Production.INFO: ==32571== Releasing lock... [2025-01-02 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:28:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:29:05 [end_date_ymd] => 2025-01-02 05:29:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:29:05' and `end` < '2025-01-02 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-01-02 05:29:18] Production.INFO: count ==95 [2025-01-02 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:29:05 - End Time 2025-01-02 05:29:05 [2025-01-02 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156083', 'tblTempUsageDetail_20' ) start [2025-01-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156083', 'tblTempUsageDetail_20' ) end [2025-01-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156083', 'tblTempVendorCDR_20' ) start [2025-01-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156083', 'tblTempVendorCDR_20' ) end [2025-01-02 05:29:18] Production.INFO: ProcessCDR(1,14156083,1,1,2) [2025-01-02 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156083', 'tblTempUsageDetail_20' ) start [2025-01-02 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156083', 'tblTempUsageDetail_20' ) end [2025-01-02 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:29:21] Production.INFO: ==32642== Releasing lock... [2025-01-02 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:30:05 [end_date_ymd] => 2025-01-02 05:30:05 [RateCDR] => 1 ) [2025-01-02 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:30:05' and `end` < '2025-01-02 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:30:18] Production.INFO: count ==89 [2025-01-02 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:30:05 - End Time 2025-01-02 05:30:05 [2025-01-02 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156089', 'tblTempUsageDetail_20' ) start [2025-01-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156089', 'tblTempUsageDetail_20' ) end [2025-01-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156089', 'tblTempVendorCDR_20' ) start [2025-01-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156089', 'tblTempVendorCDR_20' ) end [2025-01-02 05:30:18] Production.INFO: ProcessCDR(1,14156089,1,1,2) [2025-01-02 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156089', 'tblTempUsageDetail_20' ) start [2025-01-02 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156089', 'tblTempUsageDetail_20' ) end [2025-01-02 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:30:21] Production.INFO: ==32713== Releasing lock... [2025-01-02 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:31:05 [end_date_ymd] => 2025-01-02 05:31:05 [RateCDR] => 1 ) [2025-01-02 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:31:05' and `end` < '2025-01-02 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:31:18] Production.INFO: count ==85 [2025-01-02 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:31:05 - End Time 2025-01-02 05:31:05 [2025-01-02 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156094', 'tblTempUsageDetail_20' ) start [2025-01-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156094', 'tblTempUsageDetail_20' ) end [2025-01-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156094', 'tblTempVendorCDR_20' ) start [2025-01-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156094', 'tblTempVendorCDR_20' ) end [2025-01-02 05:31:18] Production.INFO: ProcessCDR(1,14156094,1,1,2) [2025-01-02 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156094', 'tblTempUsageDetail_20' ) start [2025-01-02 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156094', 'tblTempUsageDetail_20' ) end [2025-01-02 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:31:21] Production.INFO: ==328== Releasing lock... [2025-01-02 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:32:04 [end_date_ymd] => 2025-01-02 05:32:04 [RateCDR] => 1 ) [2025-01-02 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:32:04' and `end` < '2025-01-02 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:32:17] Production.INFO: count ==85 [2025-01-02 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:32:04 - End Time 2025-01-02 05:32:04 [2025-01-02 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156099', 'tblTempUsageDetail_20' ) start [2025-01-02 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156099', 'tblTempUsageDetail_20' ) end [2025-01-02 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156099', 'tblTempVendorCDR_20' ) start [2025-01-02 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156099', 'tblTempVendorCDR_20' ) end [2025-01-02 05:32:17] Production.INFO: ProcessCDR(1,14156099,1,1,2) [2025-01-02 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156099', 'tblTempUsageDetail_20' ) start [2025-01-02 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156099', 'tblTempUsageDetail_20' ) end [2025-01-02 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:32:20] Production.INFO: ==409== Releasing lock... [2025-01-02 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:33:05 [end_date_ymd] => 2025-01-02 05:33:05 [RateCDR] => 1 ) [2025-01-02 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:33:05' and `end` < '2025-01-02 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:33:18] Production.INFO: count ==85 [2025-01-02 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:33:05 - End Time 2025-01-02 05:33:05 [2025-01-02 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156104', 'tblTempUsageDetail_20' ) start [2025-01-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156104', 'tblTempUsageDetail_20' ) end [2025-01-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156104', 'tblTempVendorCDR_20' ) start [2025-01-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156104', 'tblTempVendorCDR_20' ) end [2025-01-02 05:33:18] Production.INFO: ProcessCDR(1,14156104,1,1,2) [2025-01-02 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156104', 'tblTempUsageDetail_20' ) start [2025-01-02 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156104', 'tblTempUsageDetail_20' ) end [2025-01-02 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:33:21] Production.INFO: ==480== Releasing lock... [2025-01-02 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:34:05 [end_date_ymd] => 2025-01-02 05:34:05 [RateCDR] => 1 ) [2025-01-02 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:34:05' and `end` < '2025-01-02 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:34:18] Production.INFO: count ==82 [2025-01-02 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:34:05 - End Time 2025-01-02 05:34:05 [2025-01-02 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156109', 'tblTempUsageDetail_20' ) start [2025-01-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156109', 'tblTempUsageDetail_20' ) end [2025-01-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156109', 'tblTempVendorCDR_20' ) start [2025-01-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156109', 'tblTempVendorCDR_20' ) end [2025-01-02 05:34:18] Production.INFO: ProcessCDR(1,14156109,1,1,2) [2025-01-02 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156109', 'tblTempUsageDetail_20' ) start [2025-01-02 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156109', 'tblTempUsageDetail_20' ) end [2025-01-02 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:34:21] Production.INFO: ==556== Releasing lock... [2025-01-02 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:35:04 [end_date_ymd] => 2025-01-02 05:35:04 [RateCDR] => 1 ) [2025-01-02 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:35:04' and `end` < '2025-01-02 05:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:35:17] Production.INFO: count ==80 [2025-01-02 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:35:04 - End Time 2025-01-02 05:35:04 [2025-01-02 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156114', 'tblTempUsageDetail_20' ) start [2025-01-02 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156114', 'tblTempUsageDetail_20' ) end [2025-01-02 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156114', 'tblTempVendorCDR_20' ) start [2025-01-02 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156114', 'tblTempVendorCDR_20' ) end [2025-01-02 05:35:17] Production.INFO: ProcessCDR(1,14156114,1,1,2) [2025-01-02 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156114', 'tblTempUsageDetail_20' ) start [2025-01-02 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156114', 'tblTempUsageDetail_20' ) end [2025-01-02 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:35:20] Production.INFO: ==635== Releasing lock... [2025-01-02 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:36:04 [end_date_ymd] => 2025-01-02 05:36:04 [RateCDR] => 1 ) [2025-01-02 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:36:04' and `end` < '2025-01-02 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:36:18] Production.INFO: count ==80 [2025-01-02 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:36:04 - End Time 2025-01-02 05:36:04 [2025-01-02 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156119', 'tblTempUsageDetail_20' ) start [2025-01-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156119', 'tblTempUsageDetail_20' ) end [2025-01-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156119', 'tblTempVendorCDR_20' ) start [2025-01-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156119', 'tblTempVendorCDR_20' ) end [2025-01-02 05:36:18] Production.INFO: ProcessCDR(1,14156119,1,1,2) [2025-01-02 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156119', 'tblTempUsageDetail_20' ) start [2025-01-02 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156119', 'tblTempUsageDetail_20' ) end [2025-01-02 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:36:21] Production.INFO: ==729== Releasing lock... [2025-01-02 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:37:04 [end_date_ymd] => 2025-01-02 05:37:04 [RateCDR] => 1 ) [2025-01-02 05:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:37:04' and `end` < '2025-01-02 05:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:37:17] Production.INFO: count ==80 [2025-01-02 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:37:04 - End Time 2025-01-02 05:37:04 [2025-01-02 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156124', 'tblTempUsageDetail_20' ) start [2025-01-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156124', 'tblTempUsageDetail_20' ) end [2025-01-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156124', 'tblTempVendorCDR_20' ) start [2025-01-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156124', 'tblTempVendorCDR_20' ) end [2025-01-02 05:37:17] Production.INFO: ProcessCDR(1,14156124,1,1,2) [2025-01-02 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156124', 'tblTempUsageDetail_20' ) start [2025-01-02 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156124', 'tblTempUsageDetail_20' ) end [2025-01-02 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:37:20] Production.INFO: ==805== Releasing lock... [2025-01-02 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:38:05 [end_date_ymd] => 2025-01-02 05:38:05 [RateCDR] => 1 ) [2025-01-02 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:38:05' and `end` < '2025-01-02 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:38:17] Production.INFO: count ==80 [2025-01-02 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:38:05 - End Time 2025-01-02 05:38:05 [2025-01-02 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156129', 'tblTempUsageDetail_20' ) start [2025-01-02 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156129', 'tblTempUsageDetail_20' ) end [2025-01-02 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156129', 'tblTempVendorCDR_20' ) start [2025-01-02 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156129', 'tblTempVendorCDR_20' ) end [2025-01-02 05:38:17] Production.INFO: ProcessCDR(1,14156129,1,1,2) [2025-01-02 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156129', 'tblTempUsageDetail_20' ) start [2025-01-02 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156129', 'tblTempUsageDetail_20' ) end [2025-01-02 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:38:20] Production.INFO: ==876== Releasing lock... [2025-01-02 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:39:06 [end_date_ymd] => 2025-01-02 05:39:06 [RateCDR] => 1 ) [2025-01-02 05:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:39:06' and `end` < '2025-01-02 05:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:39:19] Production.INFO: count ==80 [2025-01-02 05:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:39:06 - End Time 2025-01-02 05:39:06 [2025-01-02 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156134', 'tblTempUsageDetail_20' ) start [2025-01-02 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156134', 'tblTempUsageDetail_20' ) end [2025-01-02 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156134', 'tblTempVendorCDR_20' ) start [2025-01-02 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156134', 'tblTempVendorCDR_20' ) end [2025-01-02 05:39:19] Production.INFO: ProcessCDR(1,14156134,1,1,2) [2025-01-02 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156134', 'tblTempUsageDetail_20' ) start [2025-01-02 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156134', 'tblTempUsageDetail_20' ) end [2025-01-02 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:39:22] Production.INFO: ==948== Releasing lock... [2025-01-02 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:40:06 [end_date_ymd] => 2025-01-02 05:40:06 [RateCDR] => 1 ) [2025-01-02 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:40:06' and `end` < '2025-01-02 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:40:18] Production.INFO: count ==78 [2025-01-02 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:40:06 - End Time 2025-01-02 05:40:06 [2025-01-02 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156140', 'tblTempUsageDetail_20' ) start [2025-01-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156140', 'tblTempUsageDetail_20' ) end [2025-01-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156140', 'tblTempVendorCDR_20' ) start [2025-01-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156140', 'tblTempVendorCDR_20' ) end [2025-01-02 05:40:18] Production.INFO: ProcessCDR(1,14156140,1,1,2) [2025-01-02 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156140', 'tblTempUsageDetail_20' ) start [2025-01-02 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156140', 'tblTempUsageDetail_20' ) end [2025-01-02 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:40:21] Production.INFO: ==1028== Releasing lock... [2025-01-02 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:41:05 [end_date_ymd] => 2025-01-02 05:41:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:41:05' and `end` < '2025-01-02 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-01-02 05:41:18] Production.INFO: count ==78 [2025-01-02 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:41:05 - End Time 2025-01-02 05:41:05 [2025-01-02 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156145', 'tblTempUsageDetail_20' ) start [2025-01-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156145', 'tblTempUsageDetail_20' ) end [2025-01-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156145', 'tblTempVendorCDR_20' ) start [2025-01-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156145', 'tblTempVendorCDR_20' ) end [2025-01-02 05:41:18] Production.INFO: ProcessCDR(1,14156145,1,1,2) [2025-01-02 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156145', 'tblTempUsageDetail_20' ) start [2025-01-02 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156145', 'tblTempUsageDetail_20' ) end [2025-01-02 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:41:21] Production.INFO: ==1100== Releasing lock... [2025-01-02 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:42:05 [end_date_ymd] => 2025-01-02 05:42:05 [RateCDR] => 1 ) [2025-01-02 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:42:05' and `end` < '2025-01-02 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:42:19] Production.INFO: count ==78 [2025-01-02 05:42:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:42:05 - End Time 2025-01-02 05:42:05 [2025-01-02 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156150', 'tblTempUsageDetail_20' ) start [2025-01-02 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156150', 'tblTempUsageDetail_20' ) end [2025-01-02 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156150', 'tblTempVendorCDR_20' ) start [2025-01-02 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156150', 'tblTempVendorCDR_20' ) end [2025-01-02 05:42:19] Production.INFO: ProcessCDR(1,14156150,1,1,2) [2025-01-02 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156150', 'tblTempUsageDetail_20' ) start [2025-01-02 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156150', 'tblTempUsageDetail_20' ) end [2025-01-02 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:42:22] Production.INFO: ==1215== Releasing lock... [2025-01-02 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:43:05 [end_date_ymd] => 2025-01-02 05:43:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:43:05' and `end` < '2025-01-02 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-01-02 05:43:18] Production.INFO: count ==78 [2025-01-02 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:43:05 - End Time 2025-01-02 05:43:05 [2025-01-02 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156155', 'tblTempUsageDetail_20' ) start [2025-01-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156155', 'tblTempUsageDetail_20' ) end [2025-01-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156155', 'tblTempVendorCDR_20' ) start [2025-01-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156155', 'tblTempVendorCDR_20' ) end [2025-01-02 05:43:18] Production.INFO: ProcessCDR(1,14156155,1,1,2) [2025-01-02 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156155', 'tblTempUsageDetail_20' ) start [2025-01-02 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156155', 'tblTempUsageDetail_20' ) end [2025-01-02 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:43:21] Production.INFO: ==1298== Releasing lock... [2025-01-02 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:44:05 [end_date_ymd] => 2025-01-02 05:44:05 [RateCDR] => 1 ) [2025-01-02 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:44:05' and `end` < '2025-01-02 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:44:18] Production.INFO: count ==78 [2025-01-02 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:44:05 - End Time 2025-01-02 05:44:05 [2025-01-02 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156160', 'tblTempUsageDetail_20' ) start [2025-01-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156160', 'tblTempUsageDetail_20' ) end [2025-01-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156160', 'tblTempVendorCDR_20' ) start [2025-01-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156160', 'tblTempVendorCDR_20' ) end [2025-01-02 05:44:18] Production.INFO: ProcessCDR(1,14156160,1,1,2) [2025-01-02 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156160', 'tblTempUsageDetail_20' ) start [2025-01-02 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156160', 'tblTempUsageDetail_20' ) end [2025-01-02 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:44:21] Production.INFO: ==1370== Releasing lock... [2025-01-02 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:45:05 [end_date_ymd] => 2025-01-02 05:45:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:45:05' and `end` < '2025-01-02 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-01-02 05:45:17] Production.INFO: count ==78 [2025-01-02 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:45:05 - End Time 2025-01-02 05:45:05 [2025-01-02 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156165', 'tblTempUsageDetail_20' ) start [2025-01-02 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156165', 'tblTempUsageDetail_20' ) end [2025-01-02 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156165', 'tblTempVendorCDR_20' ) start [2025-01-02 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156165', 'tblTempVendorCDR_20' ) end [2025-01-02 05:45:17] Production.INFO: ProcessCDR(1,14156165,1,1,2) [2025-01-02 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156165', 'tblTempUsageDetail_20' ) start [2025-01-02 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156165', 'tblTempUsageDetail_20' ) end [2025-01-02 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:45:20] Production.INFO: ==1441== Releasing lock... [2025-01-02 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:46:05 [end_date_ymd] => 2025-01-02 05:46:05 [RateCDR] => 1 ) [2025-01-02 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:46:05' and `end` < '2025-01-02 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:46:18] Production.INFO: count ==76 [2025-01-02 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:46:05 - End Time 2025-01-02 05:46:05 [2025-01-02 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156170', 'tblTempUsageDetail_20' ) start [2025-01-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156170', 'tblTempUsageDetail_20' ) end [2025-01-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156170', 'tblTempVendorCDR_20' ) start [2025-01-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156170', 'tblTempVendorCDR_20' ) end [2025-01-02 05:46:18] Production.INFO: ProcessCDR(1,14156170,1,1,2) [2025-01-02 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156170', 'tblTempUsageDetail_20' ) start [2025-01-02 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156170', 'tblTempUsageDetail_20' ) end [2025-01-02 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:46:21] Production.INFO: ==1544== Releasing lock... [2025-01-02 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:47:04 [end_date_ymd] => 2025-01-02 05:47:04 [RateCDR] => 1 ) [2025-01-02 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:47:04' and `end` < '2025-01-02 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:47:17] Production.INFO: count ==76 [2025-01-02 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:47:04 - End Time 2025-01-02 05:47:04 [2025-01-02 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156175', 'tblTempUsageDetail_20' ) start [2025-01-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156175', 'tblTempUsageDetail_20' ) end [2025-01-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156175', 'tblTempVendorCDR_20' ) start [2025-01-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156175', 'tblTempVendorCDR_20' ) end [2025-01-02 05:47:17] Production.INFO: ProcessCDR(1,14156175,1,1,2) [2025-01-02 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156175', 'tblTempUsageDetail_20' ) start [2025-01-02 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156175', 'tblTempUsageDetail_20' ) end [2025-01-02 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:47:20] Production.INFO: ==1623== Releasing lock... [2025-01-02 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:48:05 [end_date_ymd] => 2025-01-02 05:48:05 [RateCDR] => 1 ) [2025-01-02 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:48:05' and `end` < '2025-01-02 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:48:17] Production.INFO: count ==75 [2025-01-02 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:48:05 - End Time 2025-01-02 05:48:05 [2025-01-02 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156180', 'tblTempUsageDetail_20' ) start [2025-01-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156180', 'tblTempUsageDetail_20' ) end [2025-01-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156180', 'tblTempVendorCDR_20' ) start [2025-01-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156180', 'tblTempVendorCDR_20' ) end [2025-01-02 05:48:18] Production.INFO: ProcessCDR(1,14156180,1,1,2) [2025-01-02 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156180', 'tblTempUsageDetail_20' ) start [2025-01-02 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156180', 'tblTempUsageDetail_20' ) end [2025-01-02 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:48:21] Production.INFO: ==1693== Releasing lock... [2025-01-02 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:49:06 [end_date_ymd] => 2025-01-02 05:49:06 [RateCDR] => 1 ) [2025-01-02 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:49:06' and `end` < '2025-01-02 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:49:19] Production.INFO: count ==75 [2025-01-02 05:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:49:06 - End Time 2025-01-02 05:49:06 [2025-01-02 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156185', 'tblTempUsageDetail_20' ) start [2025-01-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156185', 'tblTempUsageDetail_20' ) end [2025-01-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156185', 'tblTempVendorCDR_20' ) start [2025-01-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156185', 'tblTempVendorCDR_20' ) end [2025-01-02 05:49:19] Production.INFO: ProcessCDR(1,14156185,1,1,2) [2025-01-02 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156185', 'tblTempUsageDetail_20' ) start [2025-01-02 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156185', 'tblTempUsageDetail_20' ) end [2025-01-02 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:49:22] Production.INFO: ==1770== Releasing lock... [2025-01-02 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:49:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:50:06 [end_date_ymd] => 2025-01-02 05:50:06 [RateCDR] => 1 ) [2025-01-02 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:50:06' and `end` < '2025-01-02 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:50:18] Production.INFO: count ==71 [2025-01-02 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:50:06 - End Time 2025-01-02 05:50:06 [2025-01-02 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156191', 'tblTempUsageDetail_20' ) start [2025-01-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156191', 'tblTempUsageDetail_20' ) end [2025-01-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156191', 'tblTempVendorCDR_20' ) start [2025-01-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156191', 'tblTempVendorCDR_20' ) end [2025-01-02 05:50:18] Production.INFO: ProcessCDR(1,14156191,1,1,2) [2025-01-02 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156191', 'tblTempUsageDetail_20' ) start [2025-01-02 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156191', 'tblTempUsageDetail_20' ) end [2025-01-02 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:50:21] Production.INFO: ==1845== Releasing lock... [2025-01-02 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:51:04 [end_date_ymd] => 2025-01-02 05:51:04 [RateCDR] => 1 ) [2025-01-02 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:51:04' and `end` < '2025-01-02 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:51:17] Production.INFO: count ==71 [2025-01-02 05:51:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:51:04 - End Time 2025-01-02 05:51:04 [2025-01-02 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156196', 'tblTempUsageDetail_20' ) start [2025-01-02 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156196', 'tblTempUsageDetail_20' ) end [2025-01-02 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156196', 'tblTempVendorCDR_20' ) start [2025-01-02 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156196', 'tblTempVendorCDR_20' ) end [2025-01-02 05:51:17] Production.INFO: ProcessCDR(1,14156196,1,1,2) [2025-01-02 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156196', 'tblTempUsageDetail_20' ) start [2025-01-02 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156196', 'tblTempUsageDetail_20' ) end [2025-01-02 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:51:20] Production.INFO: ==1917== Releasing lock... [2025-01-02 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:52:05 [end_date_ymd] => 2025-01-02 05:52:05 [RateCDR] => 1 ) [2025-01-02 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:52:05' and `end` < '2025-01-02 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:52:18] Production.INFO: count ==71 [2025-01-02 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:52:05 - End Time 2025-01-02 05:52:05 [2025-01-02 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156201', 'tblTempUsageDetail_20' ) start [2025-01-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156201', 'tblTempUsageDetail_20' ) end [2025-01-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156201', 'tblTempVendorCDR_20' ) start [2025-01-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156201', 'tblTempVendorCDR_20' ) end [2025-01-02 05:52:18] Production.INFO: ProcessCDR(1,14156201,1,1,2) [2025-01-02 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156201', 'tblTempUsageDetail_20' ) start [2025-01-02 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156201', 'tblTempUsageDetail_20' ) end [2025-01-02 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:52:22] Production.INFO: ==1993== Releasing lock... [2025-01-02 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:53:05 [end_date_ymd] => 2025-01-02 05:53:05 [RateCDR] => 1 ) [2025-01-02 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:53:05' and `end` < '2025-01-02 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:53:17] Production.INFO: count ==71 [2025-01-02 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:53:05 - End Time 2025-01-02 05:53:05 [2025-01-02 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156206', 'tblTempUsageDetail_20' ) start [2025-01-02 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156206', 'tblTempUsageDetail_20' ) end [2025-01-02 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156206', 'tblTempVendorCDR_20' ) start [2025-01-02 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156206', 'tblTempVendorCDR_20' ) end [2025-01-02 05:53:17] Production.INFO: ProcessCDR(1,14156206,1,1,2) [2025-01-02 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156206', 'tblTempUsageDetail_20' ) start [2025-01-02 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156206', 'tblTempUsageDetail_20' ) end [2025-01-02 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:53:20] Production.INFO: ==2080== Releasing lock... [2025-01-02 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:54:05 [end_date_ymd] => 2025-01-02 05:54:05 [RateCDR] => 1 ) [2025-01-02 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:54:05' and `end` < '2025-01-02 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:54:19] Production.INFO: count ==71 [2025-01-02 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 02:54:05 - End Time 2025-01-02 05:54:05 [2025-01-02 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156211', 'tblTempUsageDetail_20' ) start [2025-01-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156211', 'tblTempUsageDetail_20' ) end [2025-01-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156211', 'tblTempVendorCDR_20' ) start [2025-01-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156211', 'tblTempVendorCDR_20' ) end [2025-01-02 05:54:19] Production.INFO: ProcessCDR(1,14156211,1,1,2) [2025-01-02 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156211', 'tblTempUsageDetail_20' ) start [2025-01-02 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156211', 'tblTempUsageDetail_20' ) end [2025-01-02 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:54:22] Production.INFO: ==2158== Releasing lock... [2025-01-02 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:55:04 [end_date_ymd] => 2025-01-02 05:55:04 [RateCDR] => 1 ) [2025-01-02 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:55:04' and `end` < '2025-01-02 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:55:17] Production.INFO: count ==71 [2025-01-02 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-02 02:55:04 - End Time 2025-01-02 05:55:04 [2025-01-02 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156216', 'tblTempUsageDetail_20' ) start [2025-01-02 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156216', 'tblTempUsageDetail_20' ) end [2025-01-02 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156216', 'tblTempVendorCDR_20' ) start [2025-01-02 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156216', 'tblTempVendorCDR_20' ) end [2025-01-02 05:55:17] Production.INFO: ProcessCDR(1,14156216,1,1,2) [2025-01-02 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156216', 'tblTempUsageDetail_20' ) start [2025-01-02 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156216', 'tblTempUsageDetail_20' ) end [2025-01-02 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:55:20] Production.INFO: ==2243== Releasing lock... [2025-01-02 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:56:05 [end_date_ymd] => 2025-01-02 05:56:05 [RateCDR] => 1 ) [2025-01-02 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:56:05' and `end` < '2025-01-02 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:56:18] Production.INFO: count ==71 [2025-01-02 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:56:05 - End Time 2025-01-02 05:56:05 [2025-01-02 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156221', 'tblTempUsageDetail_20' ) start [2025-01-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156221', 'tblTempUsageDetail_20' ) end [2025-01-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156221', 'tblTempVendorCDR_20' ) start [2025-01-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156221', 'tblTempVendorCDR_20' ) end [2025-01-02 05:56:18] Production.INFO: ProcessCDR(1,14156221,1,1,2) [2025-01-02 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156221', 'tblTempUsageDetail_20' ) start [2025-01-02 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156221', 'tblTempUsageDetail_20' ) end [2025-01-02 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:56:21] Production.INFO: ==2327== Releasing lock... [2025-01-02 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:57:05 [end_date_ymd] => 2025-01-02 05:57:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 02:57:05' and `end` < '2025-01-02 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-01-02 05:57:18] Production.INFO: count ==71 [2025-01-02 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:57:05 - End Time 2025-01-02 05:57:05 [2025-01-02 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156226', 'tblTempUsageDetail_20' ) start [2025-01-02 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156226', 'tblTempUsageDetail_20' ) end [2025-01-02 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156226', 'tblTempVendorCDR_20' ) start [2025-01-02 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156226', 'tblTempVendorCDR_20' ) end [2025-01-02 05:57:19] Production.INFO: ProcessCDR(1,14156226,1,1,2) [2025-01-02 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156226', 'tblTempUsageDetail_20' ) start [2025-01-02 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156226', 'tblTempUsageDetail_20' ) end [2025-01-02 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:57:22] Production.INFO: ==2410== Releasing lock... [2025-01-02 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:58:05 [end_date_ymd] => 2025-01-02 05:58:05 [RateCDR] => 1 ) [2025-01-02 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:58:05' and `end` < '2025-01-02 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:58:18] Production.INFO: count ==22 [2025-01-02 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:58:05 - End Time 2025-01-02 05:58:05 [2025-01-02 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156231', 'tblTempUsageDetail_20' ) start [2025-01-02 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156231', 'tblTempUsageDetail_20' ) end [2025-01-02 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156231', 'tblTempVendorCDR_20' ) start [2025-01-02 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156231', 'tblTempVendorCDR_20' ) end [2025-01-02 05:58:18] Production.INFO: ProcessCDR(1,14156231,1,1,2) [2025-01-02 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156231', 'tblTempUsageDetail_20' ) start [2025-01-02 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156231', 'tblTempUsageDetail_20' ) end [2025-01-02 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:58:21] Production.INFO: ==2529== Releasing lock... [2025-01-02 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:58:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 02:59:06 [end_date_ymd] => 2025-01-02 05:59:06 [RateCDR] => 1 ) [2025-01-02 05:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 02:59:06' and `end` < '2025-01-02 05:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 05:59:18] Production.INFO: count ==22 [2025-01-02 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 02:59:06 - End Time 2025-01-02 05:59:06 [2025-01-02 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156236', 'tblTempUsageDetail_20' ) start [2025-01-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156236', 'tblTempUsageDetail_20' ) end [2025-01-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156236', 'tblTempVendorCDR_20' ) start [2025-01-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156236', 'tblTempVendorCDR_20' ) end [2025-01-02 05:59:18] Production.INFO: ProcessCDR(1,14156236,1,1,2) [2025-01-02 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156236', 'tblTempUsageDetail_20' ) start [2025-01-02 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156236', 'tblTempUsageDetail_20' ) end [2025-01-02 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 05:59:22] Production.INFO: ==2614== Releasing lock... [2025-01-02 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 05:59:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:00:06 [end_date_ymd] => 2025-01-02 06:00:06 [RateCDR] => 1 ) [2025-01-02 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:00:06' and `end` < '2025-01-02 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:00:18] Production.INFO: count ==19 [2025-01-02 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:00:06 - End Time 2025-01-02 06:00:06 [2025-01-02 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156242', 'tblTempUsageDetail_20' ) start [2025-01-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156242', 'tblTempUsageDetail_20' ) end [2025-01-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156242', 'tblTempVendorCDR_20' ) start [2025-01-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156242', 'tblTempVendorCDR_20' ) end [2025-01-02 06:00:18] Production.INFO: ProcessCDR(1,14156242,1,1,2) [2025-01-02 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156242', 'tblTempUsageDetail_20' ) start [2025-01-02 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156242', 'tblTempUsageDetail_20' ) end [2025-01-02 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:00:21] Production.INFO: ==2697== Releasing lock... [2025-01-02 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:01:05 [end_date_ymd] => 2025-01-02 06:01:05 [RateCDR] => 1 ) [2025-01-02 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:01:05' and `end` < '2025-01-02 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:01:18] Production.INFO: count ==19 [2025-01-02 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:01:05 - End Time 2025-01-02 06:01:05 [2025-01-02 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156247', 'tblTempUsageDetail_20' ) start [2025-01-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156247', 'tblTempUsageDetail_20' ) end [2025-01-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156247', 'tblTempVendorCDR_20' ) start [2025-01-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156247', 'tblTempVendorCDR_20' ) end [2025-01-02 06:01:18] Production.INFO: ProcessCDR(1,14156247,1,1,2) [2025-01-02 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156247', 'tblTempUsageDetail_20' ) start [2025-01-02 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156247', 'tblTempUsageDetail_20' ) end [2025-01-02 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:01:21] Production.INFO: ==2797== Releasing lock... [2025-01-02 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:01:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:02:05 [end_date_ymd] => 2025-01-02 06:02:05 [RateCDR] => 1 ) [2025-01-02 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:02:05' and `end` < '2025-01-02 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:02:17] Production.INFO: count ==19 [2025-01-02 06:02:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:02:05 - End Time 2025-01-02 06:02:05 [2025-01-02 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156252', 'tblTempUsageDetail_20' ) start [2025-01-02 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156252', 'tblTempUsageDetail_20' ) end [2025-01-02 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156252', 'tblTempVendorCDR_20' ) start [2025-01-02 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156252', 'tblTempVendorCDR_20' ) end [2025-01-02 06:02:17] Production.INFO: ProcessCDR(1,14156252,1,1,2) [2025-01-02 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156252', 'tblTempUsageDetail_20' ) start [2025-01-02 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156252', 'tblTempUsageDetail_20' ) end [2025-01-02 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:02:20] Production.INFO: ==2880== Releasing lock... [2025-01-02 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:02:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:03:05 [end_date_ymd] => 2025-01-02 06:03:05 [RateCDR] => 1 ) [2025-01-02 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:03:05' and `end` < '2025-01-02 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:03:18] Production.INFO: count ==19 [2025-01-02 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:03:05 - End Time 2025-01-02 06:03:05 [2025-01-02 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156257', 'tblTempUsageDetail_20' ) start [2025-01-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156257', 'tblTempUsageDetail_20' ) end [2025-01-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156257', 'tblTempVendorCDR_20' ) start [2025-01-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156257', 'tblTempVendorCDR_20' ) end [2025-01-02 06:03:18] Production.INFO: ProcessCDR(1,14156257,1,1,2) [2025-01-02 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156257', 'tblTempUsageDetail_20' ) start [2025-01-02 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156257', 'tblTempUsageDetail_20' ) end [2025-01-02 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:03:21] Production.INFO: ==2964== Releasing lock... [2025-01-02 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:03:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:04:05 [end_date_ymd] => 2025-01-02 06:04:05 [RateCDR] => 1 ) [2025-01-02 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:04:05' and `end` < '2025-01-02 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:04:17] Production.INFO: count ==19 [2025-01-02 06:04:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:04:05 - End Time 2025-01-02 06:04:05 [2025-01-02 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156262', 'tblTempUsageDetail_20' ) start [2025-01-02 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156262', 'tblTempUsageDetail_20' ) end [2025-01-02 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156262', 'tblTempVendorCDR_20' ) start [2025-01-02 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156262', 'tblTempVendorCDR_20' ) end [2025-01-02 06:04:18] Production.INFO: ProcessCDR(1,14156262,1,1,2) [2025-01-02 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156262', 'tblTempUsageDetail_20' ) start [2025-01-02 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156262', 'tblTempUsageDetail_20' ) end [2025-01-02 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:04:21] Production.INFO: ==3047== Releasing lock... [2025-01-02 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:05:05 [end_date_ymd] => 2025-01-02 06:05:05 [RateCDR] => 1 ) [2025-01-02 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:05:05' and `end` < '2025-01-02 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:05:18] Production.INFO: count ==19 [2025-01-02 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:05:05 - End Time 2025-01-02 06:05:05 [2025-01-02 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156267', 'tblTempUsageDetail_20' ) start [2025-01-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156267', 'tblTempUsageDetail_20' ) end [2025-01-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156267', 'tblTempVendorCDR_20' ) start [2025-01-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156267', 'tblTempVendorCDR_20' ) end [2025-01-02 06:05:18] Production.INFO: ProcessCDR(1,14156267,1,1,2) [2025-01-02 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156267', 'tblTempUsageDetail_20' ) start [2025-01-02 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156267', 'tblTempUsageDetail_20' ) end [2025-01-02 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:05:21] Production.INFO: ==3135== Releasing lock... [2025-01-02 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:05:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:06:05 [end_date_ymd] => 2025-01-02 06:06:05 [RateCDR] => 1 ) [2025-01-02 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:06:05' and `end` < '2025-01-02 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:06:19] Production.INFO: count ==19 [2025-01-02 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:06:05 - End Time 2025-01-02 06:06:05 [2025-01-02 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156272', 'tblTempUsageDetail_20' ) start [2025-01-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156272', 'tblTempUsageDetail_20' ) end [2025-01-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156272', 'tblTempVendorCDR_20' ) start [2025-01-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156272', 'tblTempVendorCDR_20' ) end [2025-01-02 06:06:19] Production.INFO: ProcessCDR(1,14156272,1,1,2) [2025-01-02 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156272', 'tblTempUsageDetail_20' ) start [2025-01-02 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156272', 'tblTempUsageDetail_20' ) end [2025-01-02 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:06:22] Production.INFO: ==3217== Releasing lock... [2025-01-02 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:06:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:07:05 [end_date_ymd] => 2025-01-02 06:07:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 03:07:05' and `end` < '2025-01-02 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-01-02 06:07:19] Production.INFO: count ==19 [2025-01-02 06:07:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:07:05 - End Time 2025-01-02 06:07:05 [2025-01-02 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156277', 'tblTempUsageDetail_20' ) start [2025-01-02 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156277', 'tblTempUsageDetail_20' ) end [2025-01-02 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156277', 'tblTempVendorCDR_20' ) start [2025-01-02 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156277', 'tblTempVendorCDR_20' ) end [2025-01-02 06:07:19] Production.INFO: ProcessCDR(1,14156277,1,1,2) [2025-01-02 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156277', 'tblTempUsageDetail_20' ) start [2025-01-02 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156277', 'tblTempUsageDetail_20' ) end [2025-01-02 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:07:22] Production.INFO: ==3297== Releasing lock... [2025-01-02 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:07:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:08:05 [end_date_ymd] => 2025-01-02 06:08:05 [RateCDR] => 1 ) [2025-01-02 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:08:05' and `end` < '2025-01-02 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:08:19] Production.INFO: count ==19 [2025-01-02 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:08:05 - End Time 2025-01-02 06:08:05 [2025-01-02 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156282', 'tblTempUsageDetail_20' ) start [2025-01-02 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156282', 'tblTempUsageDetail_20' ) end [2025-01-02 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156282', 'tblTempVendorCDR_20' ) start [2025-01-02 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156282', 'tblTempVendorCDR_20' ) end [2025-01-02 06:08:19] Production.INFO: ProcessCDR(1,14156282,1,1,2) [2025-01-02 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156282', 'tblTempUsageDetail_20' ) start [2025-01-02 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156282', 'tblTempUsageDetail_20' ) end [2025-01-02 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:08:22] Production.INFO: ==3381== Releasing lock... [2025-01-02 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:09:05 [end_date_ymd] => 2025-01-02 06:09:05 [RateCDR] => 1 ) [2025-01-02 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:09:05' and `end` < '2025-01-02 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:09:18] Production.INFO: count ==19 [2025-01-02 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:09:05 - End Time 2025-01-02 06:09:05 [2025-01-02 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156287', 'tblTempUsageDetail_20' ) start [2025-01-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156287', 'tblTempUsageDetail_20' ) end [2025-01-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156287', 'tblTempVendorCDR_20' ) start [2025-01-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156287', 'tblTempVendorCDR_20' ) end [2025-01-02 06:09:18] Production.INFO: ProcessCDR(1,14156287,1,1,2) [2025-01-02 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156287', 'tblTempUsageDetail_20' ) start [2025-01-02 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156287', 'tblTempUsageDetail_20' ) end [2025-01-02 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:09:22] Production.INFO: ==3463== Releasing lock... [2025-01-02 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:09:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:10:05 [end_date_ymd] => 2025-01-02 06:10:05 [RateCDR] => 1 ) [2025-01-02 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:10:05' and `end` < '2025-01-02 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:10:18] Production.INFO: count ==19 [2025-01-02 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:10:05 - End Time 2025-01-02 06:10:05 [2025-01-02 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156292', 'tblTempUsageDetail_20' ) start [2025-01-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156292', 'tblTempUsageDetail_20' ) end [2025-01-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156292', 'tblTempVendorCDR_20' ) start [2025-01-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156292', 'tblTempVendorCDR_20' ) end [2025-01-02 06:10:18] Production.INFO: ProcessCDR(1,14156292,1,1,2) [2025-01-02 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156292', 'tblTempUsageDetail_20' ) start [2025-01-02 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156292', 'tblTempUsageDetail_20' ) end [2025-01-02 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:10:21] Production.INFO: ==3546== Releasing lock... [2025-01-02 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:11:05 [end_date_ymd] => 2025-01-02 06:11:05 [RateCDR] => 1 ) [2025-01-02 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:11:05' and `end` < '2025-01-02 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:11:18] Production.INFO: count ==19 [2025-01-02 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:11:05 - End Time 2025-01-02 06:11:05 [2025-01-02 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156298', 'tblTempUsageDetail_20' ) start [2025-01-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156298', 'tblTempUsageDetail_20' ) end [2025-01-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156298', 'tblTempVendorCDR_20' ) start [2025-01-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156298', 'tblTempVendorCDR_20' ) end [2025-01-02 06:11:18] Production.INFO: ProcessCDR(1,14156298,1,1,2) [2025-01-02 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156298', 'tblTempUsageDetail_20' ) start [2025-01-02 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156298', 'tblTempUsageDetail_20' ) end [2025-01-02 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:11:21] Production.INFO: ==3632== Releasing lock... [2025-01-02 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:11:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:12:04 [end_date_ymd] => 2025-01-02 06:12:04 [RateCDR] => 1 ) [2025-01-02 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:12:04' and `end` < '2025-01-02 06:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:12:18] Production.INFO: count ==18 [2025-01-02 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:12:04 - End Time 2025-01-02 06:12:04 [2025-01-02 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156303', 'tblTempUsageDetail_20' ) start [2025-01-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156303', 'tblTempUsageDetail_20' ) end [2025-01-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156303', 'tblTempVendorCDR_20' ) start [2025-01-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156303', 'tblTempVendorCDR_20' ) end [2025-01-02 06:12:18] Production.INFO: ProcessCDR(1,14156303,1,1,2) [2025-01-02 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156303', 'tblTempUsageDetail_20' ) start [2025-01-02 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156303', 'tblTempUsageDetail_20' ) end [2025-01-02 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:12:21] Production.INFO: ==3710== Releasing lock... [2025-01-02 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:13:05 [end_date_ymd] => 2025-01-02 06:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 03:13:05' and `end` < '2025-01-02 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-01-02 06:13:18] Production.INFO: count ==18 [2025-01-02 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:13:05 - End Time 2025-01-02 06:13:05 [2025-01-02 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156308', 'tblTempUsageDetail_20' ) start [2025-01-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156308', 'tblTempUsageDetail_20' ) end [2025-01-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156308', 'tblTempVendorCDR_20' ) start [2025-01-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156308', 'tblTempVendorCDR_20' ) end [2025-01-02 06:13:18] Production.INFO: ProcessCDR(1,14156308,1,1,2) [2025-01-02 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156308', 'tblTempUsageDetail_20' ) start [2025-01-02 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156308', 'tblTempUsageDetail_20' ) end [2025-01-02 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:13:21] Production.INFO: ==3829== Releasing lock... [2025-01-02 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:13:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:14:05 [end_date_ymd] => 2025-01-02 06:14:05 [RateCDR] => 1 ) [2025-01-02 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:14:05' and `end` < '2025-01-02 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:14:19] Production.INFO: count ==18 [2025-01-02 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:14:05 - End Time 2025-01-02 06:14:05 [2025-01-02 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156313', 'tblTempUsageDetail_20' ) start [2025-01-02 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156313', 'tblTempUsageDetail_20' ) end [2025-01-02 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156313', 'tblTempVendorCDR_20' ) start [2025-01-02 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156313', 'tblTempVendorCDR_20' ) end [2025-01-02 06:14:19] Production.INFO: ProcessCDR(1,14156313,1,1,2) [2025-01-02 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156313', 'tblTempUsageDetail_20' ) start [2025-01-02 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156313', 'tblTempUsageDetail_20' ) end [2025-01-02 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:14:22] Production.INFO: ==3911== Releasing lock... [2025-01-02 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:14:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:15:04 [end_date_ymd] => 2025-01-02 06:15:04 [RateCDR] => 1 ) [2025-01-02 06:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:15:04' and `end` < '2025-01-02 06:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:15:17] Production.INFO: count ==18 [2025-01-02 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:15:04 - End Time 2025-01-02 06:15:04 [2025-01-02 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156318', 'tblTempUsageDetail_20' ) start [2025-01-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156318', 'tblTempUsageDetail_20' ) end [2025-01-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156318', 'tblTempVendorCDR_20' ) start [2025-01-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156318', 'tblTempVendorCDR_20' ) end [2025-01-02 06:15:17] Production.INFO: ProcessCDR(1,14156318,1,1,2) [2025-01-02 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156318', 'tblTempUsageDetail_20' ) start [2025-01-02 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156318', 'tblTempUsageDetail_20' ) end [2025-01-02 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:15:20] Production.INFO: ==3989== Releasing lock... [2025-01-02 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:15:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:16:05 [end_date_ymd] => 2025-01-02 06:16:05 [RateCDR] => 1 ) [2025-01-02 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:16:05' and `end` < '2025-01-02 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:16:18] Production.INFO: count ==18 [2025-01-02 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:16:05 - End Time 2025-01-02 06:16:05 [2025-01-02 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156323', 'tblTempUsageDetail_20' ) start [2025-01-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156323', 'tblTempUsageDetail_20' ) end [2025-01-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156323', 'tblTempVendorCDR_20' ) start [2025-01-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156323', 'tblTempVendorCDR_20' ) end [2025-01-02 06:16:18] Production.INFO: ProcessCDR(1,14156323,1,1,2) [2025-01-02 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156323', 'tblTempUsageDetail_20' ) start [2025-01-02 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156323', 'tblTempUsageDetail_20' ) end [2025-01-02 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:16:22] Production.INFO: ==4063== Releasing lock... [2025-01-02 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:16:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:17:05 [end_date_ymd] => 2025-01-02 06:17:05 [RateCDR] => 1 ) [2025-01-02 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:17:05' and `end` < '2025-01-02 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:17:18] Production.INFO: count ==18 [2025-01-02 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:17:05 - End Time 2025-01-02 06:17:05 [2025-01-02 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156328', 'tblTempUsageDetail_20' ) start [2025-01-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156328', 'tblTempUsageDetail_20' ) end [2025-01-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156328', 'tblTempVendorCDR_20' ) start [2025-01-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156328', 'tblTempVendorCDR_20' ) end [2025-01-02 06:17:18] Production.INFO: ProcessCDR(1,14156328,1,1,2) [2025-01-02 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156328', 'tblTempUsageDetail_20' ) start [2025-01-02 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156328', 'tblTempUsageDetail_20' ) end [2025-01-02 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:17:21] Production.INFO: ==4137== Releasing lock... [2025-01-02 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:17:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:18:05 [end_date_ymd] => 2025-01-02 06:18:05 [RateCDR] => 1 ) [2025-01-02 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:18:05' and `end` < '2025-01-02 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:18:18] Production.INFO: count ==18 [2025-01-02 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:18:05 - End Time 2025-01-02 06:18:05 [2025-01-02 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156333', 'tblTempUsageDetail_20' ) start [2025-01-02 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156333', 'tblTempUsageDetail_20' ) end [2025-01-02 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156333', 'tblTempVendorCDR_20' ) start [2025-01-02 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156333', 'tblTempVendorCDR_20' ) end [2025-01-02 06:18:18] Production.INFO: ProcessCDR(1,14156333,1,1,2) [2025-01-02 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156333', 'tblTempUsageDetail_20' ) start [2025-01-02 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156333', 'tblTempUsageDetail_20' ) end [2025-01-02 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:18:22] Production.INFO: ==4216== Releasing lock... [2025-01-02 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:18:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:19:04 [end_date_ymd] => 2025-01-02 06:19:04 [RateCDR] => 1 ) [2025-01-02 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:19:04' and `end` < '2025-01-02 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:19:18] Production.INFO: count ==18 [2025-01-02 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:19:04 - End Time 2025-01-02 06:19:04 [2025-01-02 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156338', 'tblTempUsageDetail_20' ) start [2025-01-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156338', 'tblTempUsageDetail_20' ) end [2025-01-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156338', 'tblTempVendorCDR_20' ) start [2025-01-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156338', 'tblTempVendorCDR_20' ) end [2025-01-02 06:19:18] Production.INFO: ProcessCDR(1,14156338,1,1,2) [2025-01-02 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156338', 'tblTempUsageDetail_20' ) start [2025-01-02 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156338', 'tblTempUsageDetail_20' ) end [2025-01-02 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:19:21] Production.INFO: ==4292== Releasing lock... [2025-01-02 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:20:05 [end_date_ymd] => 2025-01-02 06:20:05 [RateCDR] => 1 ) [2025-01-02 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:20:05' and `end` < '2025-01-02 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:20:18] Production.INFO: count ==22 [2025-01-02 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:20:05 - End Time 2025-01-02 06:20:05 [2025-01-02 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156343', 'tblTempUsageDetail_20' ) start [2025-01-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156343', 'tblTempUsageDetail_20' ) end [2025-01-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156343', 'tblTempVendorCDR_20' ) start [2025-01-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156343', 'tblTempVendorCDR_20' ) end [2025-01-02 06:20:18] Production.INFO: ProcessCDR(1,14156343,1,1,2) [2025-01-02 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156343', 'tblTempUsageDetail_20' ) start [2025-01-02 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156343', 'tblTempUsageDetail_20' ) end [2025-01-02 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:20:21] Production.INFO: ==4370== Releasing lock... [2025-01-02 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:20:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:21:05 [end_date_ymd] => 2025-01-02 06:21:05 [RateCDR] => 1 ) [2025-01-02 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:21:05' and `end` < '2025-01-02 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:21:18] Production.INFO: count ==26 [2025-01-02 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:21:05 - End Time 2025-01-02 06:21:05 [2025-01-02 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156349', 'tblTempUsageDetail_20' ) start [2025-01-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156349', 'tblTempUsageDetail_20' ) end [2025-01-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156349', 'tblTempVendorCDR_20' ) start [2025-01-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156349', 'tblTempVendorCDR_20' ) end [2025-01-02 06:21:18] Production.INFO: ProcessCDR(1,14156349,1,1,2) [2025-01-02 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156349', 'tblTempUsageDetail_20' ) start [2025-01-02 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156349', 'tblTempUsageDetail_20' ) end [2025-01-02 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:21:22] Production.INFO: ==4448== Releasing lock... [2025-01-02 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:21:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:22:05 [end_date_ymd] => 2025-01-02 06:22:05 [RateCDR] => 1 ) [2025-01-02 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:22:05' and `end` < '2025-01-02 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:22:19] Production.INFO: count ==27 [2025-01-02 06:22:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:22:05 - End Time 2025-01-02 06:22:05 [2025-01-02 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156354', 'tblTempUsageDetail_20' ) start [2025-01-02 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156354', 'tblTempUsageDetail_20' ) end [2025-01-02 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156354', 'tblTempVendorCDR_20' ) start [2025-01-02 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156354', 'tblTempVendorCDR_20' ) end [2025-01-02 06:22:19] Production.INFO: ProcessCDR(1,14156354,1,1,2) [2025-01-02 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156354', 'tblTempUsageDetail_20' ) start [2025-01-02 06:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156354', 'tblTempUsageDetail_20' ) end [2025-01-02 06:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:22:24] Production.INFO: ==4521== Releasing lock... [2025-01-02 06:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:22:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:23:05 [end_date_ymd] => 2025-01-02 06:23:05 [RateCDR] => 1 ) [2025-01-02 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:23:05' and `end` < '2025-01-02 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:23:17] Production.INFO: count ==27 [2025-01-02 06:23:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:23:05 - End Time 2025-01-02 06:23:05 [2025-01-02 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156359', 'tblTempUsageDetail_20' ) start [2025-01-02 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156359', 'tblTempUsageDetail_20' ) end [2025-01-02 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156359', 'tblTempVendorCDR_20' ) start [2025-01-02 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156359', 'tblTempVendorCDR_20' ) end [2025-01-02 06:23:17] Production.INFO: ProcessCDR(1,14156359,1,1,2) [2025-01-02 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156359', 'tblTempUsageDetail_20' ) start [2025-01-02 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156359', 'tblTempUsageDetail_20' ) end [2025-01-02 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:23:20] Production.INFO: ==4602== Releasing lock... [2025-01-02 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:23:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:24:05 [end_date_ymd] => 2025-01-02 06:24:05 [RateCDR] => 1 ) [2025-01-02 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:24:05' and `end` < '2025-01-02 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:24:18] Production.INFO: count ==27 [2025-01-02 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:24:05 - End Time 2025-01-02 06:24:05 [2025-01-02 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156364', 'tblTempUsageDetail_20' ) start [2025-01-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156364', 'tblTempUsageDetail_20' ) end [2025-01-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156364', 'tblTempVendorCDR_20' ) start [2025-01-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156364', 'tblTempVendorCDR_20' ) end [2025-01-02 06:24:18] Production.INFO: ProcessCDR(1,14156364,1,1,2) [2025-01-02 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156364', 'tblTempUsageDetail_20' ) start [2025-01-02 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156364', 'tblTempUsageDetail_20' ) end [2025-01-02 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:24:21] Production.INFO: ==4676== Releasing lock... [2025-01-02 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:25:05 [end_date_ymd] => 2025-01-02 06:25:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 03:25:05' and `end` < '2025-01-02 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-01-02 06:25:17] Production.INFO: count ==27 [2025-01-02 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:25:05 - End Time 2025-01-02 06:25:05 [2025-01-02 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156369', 'tblTempUsageDetail_20' ) start [2025-01-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156369', 'tblTempUsageDetail_20' ) end [2025-01-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156369', 'tblTempVendorCDR_20' ) start [2025-01-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156369', 'tblTempVendorCDR_20' ) end [2025-01-02 06:25:17] Production.INFO: ProcessCDR(1,14156369,1,1,2) [2025-01-02 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156369', 'tblTempUsageDetail_20' ) start [2025-01-02 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156369', 'tblTempUsageDetail_20' ) end [2025-01-02 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:25:20] Production.INFO: ==4747== Releasing lock... [2025-01-02 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:25:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:26:05 [end_date_ymd] => 2025-01-02 06:26:05 [RateCDR] => 1 ) [2025-01-02 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:26:05' and `end` < '2025-01-02 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:26:18] Production.INFO: count ==27 [2025-01-02 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:26:05 - End Time 2025-01-02 06:26:05 [2025-01-02 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156374', 'tblTempUsageDetail_20' ) start [2025-01-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156374', 'tblTempUsageDetail_20' ) end [2025-01-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156374', 'tblTempVendorCDR_20' ) start [2025-01-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156374', 'tblTempVendorCDR_20' ) end [2025-01-02 06:26:18] Production.INFO: ProcessCDR(1,14156374,1,1,2) [2025-01-02 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156374', 'tblTempUsageDetail_20' ) start [2025-01-02 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156374', 'tblTempUsageDetail_20' ) end [2025-01-02 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:26:21] Production.INFO: ==4821== Releasing lock... [2025-01-02 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:27:05 [end_date_ymd] => 2025-01-02 06:27:05 [RateCDR] => 1 ) [2025-01-02 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:27:05' and `end` < '2025-01-02 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:27:17] Production.INFO: count ==27 [2025-01-02 06:27:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:27:05 - End Time 2025-01-02 06:27:05 [2025-01-02 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156379', 'tblTempUsageDetail_20' ) start [2025-01-02 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156379', 'tblTempUsageDetail_20' ) end [2025-01-02 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156379', 'tblTempVendorCDR_20' ) start [2025-01-02 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156379', 'tblTempVendorCDR_20' ) end [2025-01-02 06:27:17] Production.INFO: ProcessCDR(1,14156379,1,1,2) [2025-01-02 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156379', 'tblTempUsageDetail_20' ) start [2025-01-02 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156379', 'tblTempUsageDetail_20' ) end [2025-01-02 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:27:20] Production.INFO: ==4894== Releasing lock... [2025-01-02 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:27:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:28:05 [end_date_ymd] => 2025-01-02 06:28:05 [RateCDR] => 1 ) [2025-01-02 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:28:05' and `end` < '2025-01-02 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:28:18] Production.INFO: count ==27 [2025-01-02 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:28:05 - End Time 2025-01-02 06:28:05 [2025-01-02 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156384', 'tblTempUsageDetail_20' ) start [2025-01-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156384', 'tblTempUsageDetail_20' ) end [2025-01-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156384', 'tblTempVendorCDR_20' ) start [2025-01-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156384', 'tblTempVendorCDR_20' ) end [2025-01-02 06:28:18] Production.INFO: ProcessCDR(1,14156384,1,1,2) [2025-01-02 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156384', 'tblTempUsageDetail_20' ) start [2025-01-02 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156384', 'tblTempUsageDetail_20' ) end [2025-01-02 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:28:21] Production.INFO: ==4973== Releasing lock... [2025-01-02 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:28:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:29:04 [end_date_ymd] => 2025-01-02 06:29:04 [RateCDR] => 1 ) [2025-01-02 06:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:29:04' and `end` < '2025-01-02 06:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:29:17] Production.INFO: count ==27 [2025-01-02 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:29:04 - End Time 2025-01-02 06:29:04 [2025-01-02 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156389', 'tblTempUsageDetail_20' ) start [2025-01-02 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156389', 'tblTempUsageDetail_20' ) end [2025-01-02 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156389', 'tblTempVendorCDR_20' ) start [2025-01-02 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156389', 'tblTempVendorCDR_20' ) end [2025-01-02 06:29:17] Production.INFO: ProcessCDR(1,14156389,1,1,2) [2025-01-02 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156389', 'tblTempUsageDetail_20' ) start [2025-01-02 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156389', 'tblTempUsageDetail_20' ) end [2025-01-02 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:29:20] Production.INFO: ==5084== Releasing lock... [2025-01-02 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:29:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:30:05 [end_date_ymd] => 2025-01-02 06:30:05 [RateCDR] => 1 ) [2025-01-02 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:30:05' and `end` < '2025-01-02 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:30:18] Production.INFO: count ==27 [2025-01-02 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:30:05 - End Time 2025-01-02 06:30:05 [2025-01-02 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156394', 'tblTempUsageDetail_20' ) start [2025-01-02 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156394', 'tblTempUsageDetail_20' ) end [2025-01-02 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156394', 'tblTempVendorCDR_20' ) start [2025-01-02 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156394', 'tblTempVendorCDR_20' ) end [2025-01-02 06:30:18] Production.INFO: ProcessCDR(1,14156394,1,1,2) [2025-01-02 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156394', 'tblTempUsageDetail_20' ) start [2025-01-02 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156394', 'tblTempUsageDetail_20' ) end [2025-01-02 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:30:21] Production.INFO: ==5161== Releasing lock... [2025-01-02 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:31:05 [end_date_ymd] => 2025-01-02 06:31:05 [RateCDR] => 1 ) [2025-01-02 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:31:05' and `end` < '2025-01-02 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:31:19] Production.INFO: count ==29 [2025-01-02 06:31:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:31:05 - End Time 2025-01-02 06:31:05 [2025-01-02 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156400', 'tblTempUsageDetail_20' ) start [2025-01-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156400', 'tblTempUsageDetail_20' ) end [2025-01-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156400', 'tblTempVendorCDR_20' ) start [2025-01-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156400', 'tblTempVendorCDR_20' ) end [2025-01-02 06:31:19] Production.INFO: ProcessCDR(1,14156400,1,1,2) [2025-01-02 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156400', 'tblTempUsageDetail_20' ) start [2025-01-02 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156400', 'tblTempUsageDetail_20' ) end [2025-01-02 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:31:22] Production.INFO: ==5235== Releasing lock... [2025-01-02 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:31:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:32:05 [end_date_ymd] => 2025-01-02 06:32:05 [RateCDR] => 1 ) [2025-01-02 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:32:05' and `end` < '2025-01-02 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:32:18] Production.INFO: count ==29 [2025-01-02 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:32:05 - End Time 2025-01-02 06:32:05 [2025-01-02 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156405', 'tblTempUsageDetail_20' ) start [2025-01-02 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156405', 'tblTempUsageDetail_20' ) end [2025-01-02 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156405', 'tblTempVendorCDR_20' ) start [2025-01-02 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156405', 'tblTempVendorCDR_20' ) end [2025-01-02 06:32:18] Production.INFO: ProcessCDR(1,14156405,1,1,2) [2025-01-02 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156405', 'tblTempUsageDetail_20' ) start [2025-01-02 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156405', 'tblTempUsageDetail_20' ) end [2025-01-02 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:32:21] Production.INFO: ==5306== Releasing lock... [2025-01-02 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:33:05 [end_date_ymd] => 2025-01-02 06:33:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 03:33:05' and `end` < '2025-01-02 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-01-02 06:33:19] Production.INFO: count ==29 [2025-01-02 06:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:33:05 - End Time 2025-01-02 06:33:05 [2025-01-02 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156410', 'tblTempUsageDetail_20' ) start [2025-01-02 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156410', 'tblTempUsageDetail_20' ) end [2025-01-02 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156410', 'tblTempVendorCDR_20' ) start [2025-01-02 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156410', 'tblTempVendorCDR_20' ) end [2025-01-02 06:33:19] Production.INFO: ProcessCDR(1,14156410,1,1,2) [2025-01-02 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156410', 'tblTempUsageDetail_20' ) start [2025-01-02 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156410', 'tblTempUsageDetail_20' ) end [2025-01-02 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:33:22] Production.INFO: ==5399== Releasing lock... [2025-01-02 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:33:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:34:04 [end_date_ymd] => 2025-01-02 06:34:04 [RateCDR] => 1 ) [2025-01-02 06:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:34:04' and `end` < '2025-01-02 06:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:34:17] Production.INFO: count ==29 [2025-01-02 06:34:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:34:04 - End Time 2025-01-02 06:34:04 [2025-01-02 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156415', 'tblTempUsageDetail_20' ) start [2025-01-02 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156415', 'tblTempUsageDetail_20' ) end [2025-01-02 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156415', 'tblTempVendorCDR_20' ) start [2025-01-02 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156415', 'tblTempVendorCDR_20' ) end [2025-01-02 06:34:17] Production.INFO: ProcessCDR(1,14156415,1,1,2) [2025-01-02 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156415', 'tblTempUsageDetail_20' ) start [2025-01-02 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156415', 'tblTempUsageDetail_20' ) end [2025-01-02 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:34:20] Production.INFO: ==5471== Releasing lock... [2025-01-02 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:34:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:35:05 [end_date_ymd] => 2025-01-02 06:35:05 [RateCDR] => 1 ) [2025-01-02 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:35:05' and `end` < '2025-01-02 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:35:19] Production.INFO: count ==29 [2025-01-02 06:35:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:35:05 - End Time 2025-01-02 06:35:05 [2025-01-02 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156420', 'tblTempUsageDetail_20' ) start [2025-01-02 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156420', 'tblTempUsageDetail_20' ) end [2025-01-02 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156420', 'tblTempVendorCDR_20' ) start [2025-01-02 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156420', 'tblTempVendorCDR_20' ) end [2025-01-02 06:35:19] Production.INFO: ProcessCDR(1,14156420,1,1,2) [2025-01-02 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156420', 'tblTempUsageDetail_20' ) start [2025-01-02 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156420', 'tblTempUsageDetail_20' ) end [2025-01-02 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:35:22] Production.INFO: ==5542== Releasing lock... [2025-01-02 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:35:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:36:04 [end_date_ymd] => 2025-01-02 06:36:04 [RateCDR] => 1 ) [2025-01-02 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:36:04' and `end` < '2025-01-02 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:36:18] Production.INFO: count ==30 [2025-01-02 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:36:04 - End Time 2025-01-02 06:36:04 [2025-01-02 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156425', 'tblTempUsageDetail_20' ) start [2025-01-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156425', 'tblTempUsageDetail_20' ) end [2025-01-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156425', 'tblTempVendorCDR_20' ) start [2025-01-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156425', 'tblTempVendorCDR_20' ) end [2025-01-02 06:36:18] Production.INFO: ProcessCDR(1,14156425,1,1,2) [2025-01-02 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156425', 'tblTempUsageDetail_20' ) start [2025-01-02 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156425', 'tblTempUsageDetail_20' ) end [2025-01-02 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:36:23] Production.INFO: ==5614== Releasing lock... [2025-01-02 06:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:36:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:37:05 [end_date_ymd] => 2025-01-02 06:37:05 [RateCDR] => 1 ) [2025-01-02 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:37:05' and `end` < '2025-01-02 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:37:17] Production.INFO: count ==30 [2025-01-02 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:37:05 - End Time 2025-01-02 06:37:05 [2025-01-02 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156430', 'tblTempUsageDetail_20' ) start [2025-01-02 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156430', 'tblTempUsageDetail_20' ) end [2025-01-02 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156430', 'tblTempVendorCDR_20' ) start [2025-01-02 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156430', 'tblTempVendorCDR_20' ) end [2025-01-02 06:37:17] Production.INFO: ProcessCDR(1,14156430,1,1,2) [2025-01-02 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156430', 'tblTempUsageDetail_20' ) start [2025-01-02 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156430', 'tblTempUsageDetail_20' ) end [2025-01-02 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:37:20] Production.INFO: ==5685== Releasing lock... [2025-01-02 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:37:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:38:05 [end_date_ymd] => 2025-01-02 06:38:05 [RateCDR] => 1 ) [2025-01-02 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:38:05' and `end` < '2025-01-02 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:38:18] Production.INFO: count ==30 [2025-01-02 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:38:05 - End Time 2025-01-02 06:38:05 [2025-01-02 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156435', 'tblTempUsageDetail_20' ) start [2025-01-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156435', 'tblTempUsageDetail_20' ) end [2025-01-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156435', 'tblTempVendorCDR_20' ) start [2025-01-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156435', 'tblTempVendorCDR_20' ) end [2025-01-02 06:38:18] Production.INFO: ProcessCDR(1,14156435,1,1,2) [2025-01-02 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156435', 'tblTempUsageDetail_20' ) start [2025-01-02 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156435', 'tblTempUsageDetail_20' ) end [2025-01-02 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:38:21] Production.INFO: ==5756== Releasing lock... [2025-01-02 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:39:05 [end_date_ymd] => 2025-01-02 06:39:05 [RateCDR] => 1 ) [2025-01-02 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:39:05' and `end` < '2025-01-02 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:39:18] Production.INFO: count ==30 [2025-01-02 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:39:05 - End Time 2025-01-02 06:39:05 [2025-01-02 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156440', 'tblTempUsageDetail_20' ) start [2025-01-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156440', 'tblTempUsageDetail_20' ) end [2025-01-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156440', 'tblTempVendorCDR_20' ) start [2025-01-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156440', 'tblTempVendorCDR_20' ) end [2025-01-02 06:39:18] Production.INFO: ProcessCDR(1,14156440,1,1,2) [2025-01-02 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156440', 'tblTempUsageDetail_20' ) start [2025-01-02 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156440', 'tblTempUsageDetail_20' ) end [2025-01-02 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:39:21] Production.INFO: ==5825== Releasing lock... [2025-01-02 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:40:06 [end_date_ymd] => 2025-01-02 06:40:06 [RateCDR] => 1 ) [2025-01-02 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:40:06' and `end` < '2025-01-02 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:40:19] Production.INFO: count ==28 [2025-01-02 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:40:06 - End Time 2025-01-02 06:40:06 [2025-01-02 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156445', 'tblTempUsageDetail_20' ) start [2025-01-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156445', 'tblTempUsageDetail_20' ) end [2025-01-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156445', 'tblTempVendorCDR_20' ) start [2025-01-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156445', 'tblTempVendorCDR_20' ) end [2025-01-02 06:40:19] Production.INFO: ProcessCDR(1,14156445,1,1,2) [2025-01-02 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156445', 'tblTempUsageDetail_20' ) start [2025-01-02 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156445', 'tblTempUsageDetail_20' ) end [2025-01-02 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:40:22] Production.INFO: ==5901== Releasing lock... [2025-01-02 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:40:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:41:05 [end_date_ymd] => 2025-01-02 06:41:05 [RateCDR] => 1 ) [2025-01-02 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:41:05' and `end` < '2025-01-02 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:41:18] Production.INFO: count ==28 [2025-01-02 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:41:05 - End Time 2025-01-02 06:41:05 [2025-01-02 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156451', 'tblTempUsageDetail_20' ) start [2025-01-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156451', 'tblTempUsageDetail_20' ) end [2025-01-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156451', 'tblTempVendorCDR_20' ) start [2025-01-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156451', 'tblTempVendorCDR_20' ) end [2025-01-02 06:41:18] Production.INFO: ProcessCDR(1,14156451,1,1,2) [2025-01-02 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156451', 'tblTempUsageDetail_20' ) start [2025-01-02 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156451', 'tblTempUsageDetail_20' ) end [2025-01-02 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:41:21] Production.INFO: ==5972== Releasing lock... [2025-01-02 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:42:05 [end_date_ymd] => 2025-01-02 06:42:05 [RateCDR] => 1 ) [2025-01-02 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:42:05' and `end` < '2025-01-02 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:42:19] Production.INFO: count ==28 [2025-01-02 06:42:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:42:05 - End Time 2025-01-02 06:42:05 [2025-01-02 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156456', 'tblTempUsageDetail_20' ) start [2025-01-02 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156456', 'tblTempUsageDetail_20' ) end [2025-01-02 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156456', 'tblTempVendorCDR_20' ) start [2025-01-02 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156456', 'tblTempVendorCDR_20' ) end [2025-01-02 06:42:19] Production.INFO: ProcessCDR(1,14156456,1,1,2) [2025-01-02 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156456', 'tblTempUsageDetail_20' ) start [2025-01-02 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156456', 'tblTempUsageDetail_20' ) end [2025-01-02 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:42:22] Production.INFO: ==6044== Releasing lock... [2025-01-02 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:42:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:43:04 [end_date_ymd] => 2025-01-02 06:43:04 [RateCDR] => 1 ) [2025-01-02 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:43:04' and `end` < '2025-01-02 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:43:17] Production.INFO: count ==28 [2025-01-02 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:43:04 - End Time 2025-01-02 06:43:04 [2025-01-02 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156461', 'tblTempUsageDetail_20' ) start [2025-01-02 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156461', 'tblTempUsageDetail_20' ) end [2025-01-02 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156461', 'tblTempVendorCDR_20' ) start [2025-01-02 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156461', 'tblTempVendorCDR_20' ) end [2025-01-02 06:43:17] Production.INFO: ProcessCDR(1,14156461,1,1,2) [2025-01-02 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156461', 'tblTempUsageDetail_20' ) start [2025-01-02 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156461', 'tblTempUsageDetail_20' ) end [2025-01-02 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:43:20] Production.INFO: ==6114== Releasing lock... [2025-01-02 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:43:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:44:05 [end_date_ymd] => 2025-01-02 06:44:05 [RateCDR] => 1 ) [2025-01-02 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:44:05' and `end` < '2025-01-02 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:44:18] Production.INFO: count ==28 [2025-01-02 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:44:05 - End Time 2025-01-02 06:44:05 [2025-01-02 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156466', 'tblTempUsageDetail_20' ) start [2025-01-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156466', 'tblTempUsageDetail_20' ) end [2025-01-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156466', 'tblTempVendorCDR_20' ) start [2025-01-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156466', 'tblTempVendorCDR_20' ) end [2025-01-02 06:44:18] Production.INFO: ProcessCDR(1,14156466,1,1,2) [2025-01-02 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156466', 'tblTempUsageDetail_20' ) start [2025-01-02 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156466', 'tblTempUsageDetail_20' ) end [2025-01-02 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:44:21] Production.INFO: ==6186== Releasing lock... [2025-01-02 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:44:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:45:06 [end_date_ymd] => 2025-01-02 06:45:06 [RateCDR] => 1 ) [2025-01-02 06:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:45:06' and `end` < '2025-01-02 06:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:45:18] Production.INFO: count ==28 [2025-01-02 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:45:06 - End Time 2025-01-02 06:45:06 [2025-01-02 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156471', 'tblTempUsageDetail_20' ) start [2025-01-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156471', 'tblTempUsageDetail_20' ) end [2025-01-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156471', 'tblTempVendorCDR_20' ) start [2025-01-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156471', 'tblTempVendorCDR_20' ) end [2025-01-02 06:45:18] Production.INFO: ProcessCDR(1,14156471,1,1,2) [2025-01-02 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156471', 'tblTempUsageDetail_20' ) start [2025-01-02 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156471', 'tblTempUsageDetail_20' ) end [2025-01-02 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:45:21] Production.INFO: ==6297== Releasing lock... [2025-01-02 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:46:05 [end_date_ymd] => 2025-01-02 06:46:05 [RateCDR] => 1 ) [2025-01-02 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:46:05' and `end` < '2025-01-02 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:46:17] Production.INFO: count ==28 [2025-01-02 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:46:05 - End Time 2025-01-02 06:46:05 [2025-01-02 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156476', 'tblTempUsageDetail_20' ) start [2025-01-02 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156476', 'tblTempUsageDetail_20' ) end [2025-01-02 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156476', 'tblTempVendorCDR_20' ) start [2025-01-02 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156476', 'tblTempVendorCDR_20' ) end [2025-01-02 06:46:17] Production.INFO: ProcessCDR(1,14156476,1,1,2) [2025-01-02 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156476', 'tblTempUsageDetail_20' ) start [2025-01-02 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156476', 'tblTempUsageDetail_20' ) end [2025-01-02 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:46:20] Production.INFO: ==6368== Releasing lock... [2025-01-02 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:47:05 [end_date_ymd] => 2025-01-02 06:47:05 [RateCDR] => 1 ) [2025-01-02 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:47:05' and `end` < '2025-01-02 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:47:18] Production.INFO: count ==28 [2025-01-02 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:47:05 - End Time 2025-01-02 06:47:05 [2025-01-02 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156481', 'tblTempUsageDetail_20' ) start [2025-01-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156481', 'tblTempUsageDetail_20' ) end [2025-01-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156481', 'tblTempVendorCDR_20' ) start [2025-01-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156481', 'tblTempVendorCDR_20' ) end [2025-01-02 06:47:18] Production.INFO: ProcessCDR(1,14156481,1,1,2) [2025-01-02 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156481', 'tblTempUsageDetail_20' ) start [2025-01-02 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156481', 'tblTempUsageDetail_20' ) end [2025-01-02 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:47:21] Production.INFO: ==6439== Releasing lock... [2025-01-02 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:48:05 [end_date_ymd] => 2025-01-02 06:48:05 [RateCDR] => 1 ) [2025-01-02 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:48:05' and `end` < '2025-01-02 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:48:19] Production.INFO: count ==28 [2025-01-02 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:48:05 - End Time 2025-01-02 06:48:05 [2025-01-02 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156486', 'tblTempUsageDetail_20' ) start [2025-01-02 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156486', 'tblTempUsageDetail_20' ) end [2025-01-02 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156486', 'tblTempVendorCDR_20' ) start [2025-01-02 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156486', 'tblTempVendorCDR_20' ) end [2025-01-02 06:48:19] Production.INFO: ProcessCDR(1,14156486,1,1,2) [2025-01-02 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156486', 'tblTempUsageDetail_20' ) start [2025-01-02 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156486', 'tblTempUsageDetail_20' ) end [2025-01-02 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:48:22] Production.INFO: ==6514== Releasing lock... [2025-01-02 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:48:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:49:05 [end_date_ymd] => 2025-01-02 06:49:05 [RateCDR] => 1 ) [2025-01-02 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:49:05' and `end` < '2025-01-02 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:49:18] Production.INFO: count ==28 [2025-01-02 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:49:05 - End Time 2025-01-02 06:49:05 [2025-01-02 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156491', 'tblTempUsageDetail_20' ) start [2025-01-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156491', 'tblTempUsageDetail_20' ) end [2025-01-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156491', 'tblTempVendorCDR_20' ) start [2025-01-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156491', 'tblTempVendorCDR_20' ) end [2025-01-02 06:49:18] Production.INFO: ProcessCDR(1,14156491,1,1,2) [2025-01-02 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156491', 'tblTempUsageDetail_20' ) start [2025-01-02 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156491', 'tblTempUsageDetail_20' ) end [2025-01-02 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:49:21] Production.INFO: ==6586== Releasing lock... [2025-01-02 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:50:05 [end_date_ymd] => 2025-01-02 06:50:05 [RateCDR] => 1 ) [2025-01-02 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:50:05' and `end` < '2025-01-02 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:50:18] Production.INFO: count ==22 [2025-01-02 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:50:05 - End Time 2025-01-02 06:50:05 [2025-01-02 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156497', 'tblTempUsageDetail_20' ) start [2025-01-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156497', 'tblTempUsageDetail_20' ) end [2025-01-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156497', 'tblTempVendorCDR_20' ) start [2025-01-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156497', 'tblTempVendorCDR_20' ) end [2025-01-02 06:50:18] Production.INFO: ProcessCDR(1,14156497,1,1,2) [2025-01-02 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156497', 'tblTempUsageDetail_20' ) start [2025-01-02 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156497', 'tblTempUsageDetail_20' ) end [2025-01-02 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:50:21] Production.INFO: ==6660== Releasing lock... [2025-01-02 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:51:05 [end_date_ymd] => 2025-01-02 06:51:05 [RateCDR] => 1 ) [2025-01-02 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:51:05' and `end` < '2025-01-02 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:51:18] Production.INFO: count ==20 [2025-01-02 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:51:05 - End Time 2025-01-02 06:51:05 [2025-01-02 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156502', 'tblTempUsageDetail_20' ) start [2025-01-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156502', 'tblTempUsageDetail_20' ) end [2025-01-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156502', 'tblTempVendorCDR_20' ) start [2025-01-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156502', 'tblTempVendorCDR_20' ) end [2025-01-02 06:51:18] Production.INFO: ProcessCDR(1,14156502,1,1,2) [2025-01-02 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156502', 'tblTempUsageDetail_20' ) start [2025-01-02 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156502', 'tblTempUsageDetail_20' ) end [2025-01-02 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:51:21] Production.INFO: ==6732== Releasing lock... [2025-01-02 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:52:05 [end_date_ymd] => 2025-01-02 06:52:05 [RateCDR] => 1 ) [2025-01-02 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:52:05' and `end` < '2025-01-02 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:52:17] Production.INFO: count ==22 [2025-01-02 06:52:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:52:05 - End Time 2025-01-02 06:52:05 [2025-01-02 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156507', 'tblTempUsageDetail_20' ) start [2025-01-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156507', 'tblTempUsageDetail_20' ) end [2025-01-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156507', 'tblTempVendorCDR_20' ) start [2025-01-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156507', 'tblTempVendorCDR_20' ) end [2025-01-02 06:52:17] Production.INFO: ProcessCDR(1,14156507,1,1,2) [2025-01-02 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156507', 'tblTempUsageDetail_20' ) start [2025-01-02 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156507', 'tblTempUsageDetail_20' ) end [2025-01-02 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:52:22] Production.INFO: ==6802== Releasing lock... [2025-01-02 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:52:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:53:05 [end_date_ymd] => 2025-01-02 06:53:05 [RateCDR] => 1 ) [2025-01-02 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:53:05' and `end` < '2025-01-02 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:53:18] Production.INFO: count ==22 [2025-01-02 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:53:05 - End Time 2025-01-02 06:53:05 [2025-01-02 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156512', 'tblTempUsageDetail_20' ) start [2025-01-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156512', 'tblTempUsageDetail_20' ) end [2025-01-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156512', 'tblTempVendorCDR_20' ) start [2025-01-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156512', 'tblTempVendorCDR_20' ) end [2025-01-02 06:53:18] Production.INFO: ProcessCDR(1,14156512,1,1,2) [2025-01-02 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156512', 'tblTempUsageDetail_20' ) start [2025-01-02 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156512', 'tblTempUsageDetail_20' ) end [2025-01-02 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:53:20] Production.INFO: ==6875== Releasing lock... [2025-01-02 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:53:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:54:05 [end_date_ymd] => 2025-01-02 06:54:05 [RateCDR] => 1 ) [2025-01-02 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:54:05' and `end` < '2025-01-02 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:54:19] Production.INFO: count ==22 [2025-01-02 06:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:54:05 - End Time 2025-01-02 06:54:05 [2025-01-02 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156517', 'tblTempUsageDetail_20' ) start [2025-01-02 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156517', 'tblTempUsageDetail_20' ) end [2025-01-02 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156517', 'tblTempVendorCDR_20' ) start [2025-01-02 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156517', 'tblTempVendorCDR_20' ) end [2025-01-02 06:54:19] Production.INFO: ProcessCDR(1,14156517,1,1,2) [2025-01-02 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156517', 'tblTempUsageDetail_20' ) start [2025-01-02 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156517', 'tblTempUsageDetail_20' ) end [2025-01-02 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:54:22] Production.INFO: ==6948== Releasing lock... [2025-01-02 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:54:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:55:04 [end_date_ymd] => 2025-01-02 06:55:04 [RateCDR] => 1 ) [2025-01-02 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:55:04' and `end` < '2025-01-02 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:55:17] Production.INFO: count ==22 [2025-01-02 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:55:04 - End Time 2025-01-02 06:55:04 [2025-01-02 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156522', 'tblTempUsageDetail_20' ) start [2025-01-02 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156522', 'tblTempUsageDetail_20' ) end [2025-01-02 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156522', 'tblTempVendorCDR_20' ) start [2025-01-02 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156522', 'tblTempVendorCDR_20' ) end [2025-01-02 06:55:17] Production.INFO: ProcessCDR(1,14156522,1,1,2) [2025-01-02 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156522', 'tblTempUsageDetail_20' ) start [2025-01-02 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156522', 'tblTempUsageDetail_20' ) end [2025-01-02 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:55:20] Production.INFO: ==7018== Releasing lock... [2025-01-02 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:56:06 [end_date_ymd] => 2025-01-02 06:56:06 [RateCDR] => 1 ) [2025-01-02 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:56:06' and `end` < '2025-01-02 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:56:19] Production.INFO: count ==22 [2025-01-02 06:56:19] Production.ERROR: pbx CDR StartTime 2025-01-02 03:56:06 - End Time 2025-01-02 06:56:06 [2025-01-02 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156527', 'tblTempUsageDetail_20' ) start [2025-01-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156527', 'tblTempUsageDetail_20' ) end [2025-01-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156527', 'tblTempVendorCDR_20' ) start [2025-01-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156527', 'tblTempVendorCDR_20' ) end [2025-01-02 06:56:19] Production.INFO: ProcessCDR(1,14156527,1,1,2) [2025-01-02 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156527', 'tblTempUsageDetail_20' ) start [2025-01-02 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156527', 'tblTempUsageDetail_20' ) end [2025-01-02 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:56:22] Production.INFO: ==7093== Releasing lock... [2025-01-02 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:56:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:57:04 [end_date_ymd] => 2025-01-02 06:57:04 [RateCDR] => 1 ) [2025-01-02 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:57:04' and `end` < '2025-01-02 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:57:18] Production.INFO: count ==22 [2025-01-02 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:57:04 - End Time 2025-01-02 06:57:04 [2025-01-02 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156532', 'tblTempUsageDetail_20' ) start [2025-01-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156532', 'tblTempUsageDetail_20' ) end [2025-01-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156532', 'tblTempVendorCDR_20' ) start [2025-01-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156532', 'tblTempVendorCDR_20' ) end [2025-01-02 06:57:18] Production.INFO: ProcessCDR(1,14156532,1,1,2) [2025-01-02 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156532', 'tblTempUsageDetail_20' ) start [2025-01-02 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156532', 'tblTempUsageDetail_20' ) end [2025-01-02 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:57:21] Production.INFO: ==7162== Releasing lock... [2025-01-02 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:58:05 [end_date_ymd] => 2025-01-02 06:58:05 [RateCDR] => 1 ) [2025-01-02 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:58:05' and `end` < '2025-01-02 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:58:17] Production.INFO: count ==22 [2025-01-02 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-02 03:58:05 - End Time 2025-01-02 06:58:05 [2025-01-02 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156537', 'tblTempUsageDetail_20' ) start [2025-01-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156537', 'tblTempUsageDetail_20' ) end [2025-01-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156537', 'tblTempVendorCDR_20' ) start [2025-01-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156537', 'tblTempVendorCDR_20' ) end [2025-01-02 06:58:18] Production.INFO: ProcessCDR(1,14156537,1,1,2) [2025-01-02 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156537', 'tblTempUsageDetail_20' ) start [2025-01-02 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156537', 'tblTempUsageDetail_20' ) end [2025-01-02 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:58:21] Production.INFO: ==7237== Releasing lock... [2025-01-02 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 03:59:04 [end_date_ymd] => 2025-01-02 06:59:04 [RateCDR] => 1 ) [2025-01-02 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 03:59:04' and `end` < '2025-01-02 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 06:59:18] Production.INFO: count ==22 [2025-01-02 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 03:59:04 - End Time 2025-01-02 06:59:04 [2025-01-02 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156542', 'tblTempUsageDetail_20' ) start [2025-01-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156542', 'tblTempUsageDetail_20' ) end [2025-01-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156542', 'tblTempVendorCDR_20' ) start [2025-01-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156542', 'tblTempVendorCDR_20' ) end [2025-01-02 06:59:18] Production.INFO: ProcessCDR(1,14156542,1,1,2) [2025-01-02 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156542', 'tblTempUsageDetail_20' ) start [2025-01-02 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156542', 'tblTempUsageDetail_20' ) end [2025-01-02 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 06:59:21] Production.INFO: ==7315== Releasing lock... [2025-01-02 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:00:06 [end_date_ymd] => 2025-01-02 07:00:06 [RateCDR] => 1 ) [2025-01-02 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:00:06' and `end` < '2025-01-02 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:00:18] Production.INFO: count ==22 [2025-01-02 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:00:06 - End Time 2025-01-02 07:00:06 [2025-01-02 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156547', 'tblTempUsageDetail_20' ) start [2025-01-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156547', 'tblTempUsageDetail_20' ) end [2025-01-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156547', 'tblTempVendorCDR_20' ) start [2025-01-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156547', 'tblTempVendorCDR_20' ) end [2025-01-02 07:00:18] Production.INFO: ProcessCDR(1,14156547,1,1,2) [2025-01-02 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156547', 'tblTempUsageDetail_20' ) start [2025-01-02 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156547', 'tblTempUsageDetail_20' ) end [2025-01-02 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:00:21] Production.INFO: ==7427== Releasing lock... [2025-01-02 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:01:04 [end_date_ymd] => 2025-01-02 07:01:04 [RateCDR] => 1 ) [2025-01-02 07:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:01:04' and `end` < '2025-01-02 07:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:01:21] Production.INFO: count ==22 [2025-01-02 07:01:21] Production.ERROR: pbx CDR StartTime 2025-01-02 04:01:04 - End Time 2025-01-02 07:01:04 [2025-01-02 07:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156553', 'tblTempUsageDetail_20' ) start [2025-01-02 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156553', 'tblTempUsageDetail_20' ) end [2025-01-02 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156553', 'tblTempVendorCDR_20' ) start [2025-01-02 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156553', 'tblTempVendorCDR_20' ) end [2025-01-02 07:01:21] Production.INFO: ProcessCDR(1,14156553,1,1,2) [2025-01-02 07:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156553', 'tblTempUsageDetail_20' ) start [2025-01-02 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156553', 'tblTempUsageDetail_20' ) end [2025-01-02 07:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:01:24] Production.INFO: ==7607== Releasing lock... [2025-01-02 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:01:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:02:05 [end_date_ymd] => 2025-01-02 07:02:05 [RateCDR] => 1 ) [2025-01-02 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:02:05' and `end` < '2025-01-02 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:02:19] Production.INFO: count ==22 [2025-01-02 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:02:05 - End Time 2025-01-02 07:02:05 [2025-01-02 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156558', 'tblTempUsageDetail_20' ) start [2025-01-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156558', 'tblTempUsageDetail_20' ) end [2025-01-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156558', 'tblTempVendorCDR_20' ) start [2025-01-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156558', 'tblTempVendorCDR_20' ) end [2025-01-02 07:02:19] Production.INFO: ProcessCDR(1,14156558,1,1,2) [2025-01-02 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156558', 'tblTempUsageDetail_20' ) start [2025-01-02 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156558', 'tblTempUsageDetail_20' ) end [2025-01-02 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:02:22] Production.INFO: ==7698== Releasing lock... [2025-01-02 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:03:04 [end_date_ymd] => 2025-01-02 07:03:04 [RateCDR] => 1 ) [2025-01-02 07:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:03:04' and `end` < '2025-01-02 07:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:03:19] Production.INFO: count ==22 [2025-01-02 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:03:04 - End Time 2025-01-02 07:03:04 [2025-01-02 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156563', 'tblTempUsageDetail_20' ) start [2025-01-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156563', 'tblTempUsageDetail_20' ) end [2025-01-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156563', 'tblTempVendorCDR_20' ) start [2025-01-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156563', 'tblTempVendorCDR_20' ) end [2025-01-02 07:03:19] Production.INFO: ProcessCDR(1,14156563,1,1,2) [2025-01-02 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156563', 'tblTempUsageDetail_20' ) start [2025-01-02 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156563', 'tblTempUsageDetail_20' ) end [2025-01-02 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:03:22] Production.INFO: ==7779== Releasing lock... [2025-01-02 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:04:05 [end_date_ymd] => 2025-01-02 07:04:05 [RateCDR] => 1 ) [2025-01-02 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:04:05' and `end` < '2025-01-02 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:04:19] Production.INFO: count ==22 [2025-01-02 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:04:05 - End Time 2025-01-02 07:04:05 [2025-01-02 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156568', 'tblTempUsageDetail_20' ) start [2025-01-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156568', 'tblTempUsageDetail_20' ) end [2025-01-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156568', 'tblTempVendorCDR_20' ) start [2025-01-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156568', 'tblTempVendorCDR_20' ) end [2025-01-02 07:04:19] Production.INFO: ProcessCDR(1,14156568,1,1,2) [2025-01-02 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156568', 'tblTempUsageDetail_20' ) start [2025-01-02 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156568', 'tblTempUsageDetail_20' ) end [2025-01-02 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:04:22] Production.INFO: ==7872== Releasing lock... [2025-01-02 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:04:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:05:05 [end_date_ymd] => 2025-01-02 07:05:05 [RateCDR] => 1 ) [2025-01-02 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:05:05' and `end` < '2025-01-02 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:05:19] Production.INFO: count ==22 [2025-01-02 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:05:05 - End Time 2025-01-02 07:05:05 [2025-01-02 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156573', 'tblTempUsageDetail_20' ) start [2025-01-02 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156573', 'tblTempUsageDetail_20' ) end [2025-01-02 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156573', 'tblTempVendorCDR_20' ) start [2025-01-02 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156573', 'tblTempVendorCDR_20' ) end [2025-01-02 07:05:19] Production.INFO: ProcessCDR(1,14156573,1,1,2) [2025-01-02 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156573', 'tblTempUsageDetail_20' ) start [2025-01-02 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156573', 'tblTempUsageDetail_20' ) end [2025-01-02 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:05:22] Production.INFO: ==8041== Releasing lock... [2025-01-02 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:05:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:06:05 [end_date_ymd] => 2025-01-02 07:06:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:06:05' and `end` < '2025-01-02 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-01-02 07:06:19] Production.INFO: count ==22 [2025-01-02 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:06:05 - End Time 2025-01-02 07:06:05 [2025-01-02 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156578', 'tblTempUsageDetail_20' ) start [2025-01-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156578', 'tblTempUsageDetail_20' ) end [2025-01-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156578', 'tblTempVendorCDR_20' ) start [2025-01-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156578', 'tblTempVendorCDR_20' ) end [2025-01-02 07:06:19] Production.INFO: ProcessCDR(1,14156578,1,1,2) [2025-01-02 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156578', 'tblTempUsageDetail_20' ) start [2025-01-02 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156578', 'tblTempUsageDetail_20' ) end [2025-01-02 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:06:22] Production.INFO: ==8133== Releasing lock... [2025-01-02 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:06:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:07:05 [end_date_ymd] => 2025-01-02 07:07:05 [RateCDR] => 1 ) [2025-01-02 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:07:05' and `end` < '2025-01-02 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:07:19] Production.INFO: count ==22 [2025-01-02 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:07:05 - End Time 2025-01-02 07:07:05 [2025-01-02 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156583', 'tblTempUsageDetail_20' ) start [2025-01-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156583', 'tblTempUsageDetail_20' ) end [2025-01-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156583', 'tblTempVendorCDR_20' ) start [2025-01-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156583', 'tblTempVendorCDR_20' ) end [2025-01-02 07:07:19] Production.INFO: ProcessCDR(1,14156583,1,1,2) [2025-01-02 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156583', 'tblTempUsageDetail_20' ) start [2025-01-02 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156583', 'tblTempUsageDetail_20' ) end [2025-01-02 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:07:22] Production.INFO: ==8227== Releasing lock... [2025-01-02 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:07:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:08:04 [end_date_ymd] => 2025-01-02 07:08:04 [RateCDR] => 1 ) [2025-01-02 07:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:08:04' and `end` < '2025-01-02 07:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:08:18] Production.INFO: count ==22 [2025-01-02 07:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:08:04 - End Time 2025-01-02 07:08:04 [2025-01-02 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156588', 'tblTempUsageDetail_20' ) start [2025-01-02 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156588', 'tblTempUsageDetail_20' ) end [2025-01-02 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156588', 'tblTempVendorCDR_20' ) start [2025-01-02 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156588', 'tblTempVendorCDR_20' ) end [2025-01-02 07:08:18] Production.INFO: ProcessCDR(1,14156588,1,1,2) [2025-01-02 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156588', 'tblTempUsageDetail_20' ) start [2025-01-02 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156588', 'tblTempUsageDetail_20' ) end [2025-01-02 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:08:21] Production.INFO: ==8398== Releasing lock... [2025-01-02 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:08:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:09:05 [end_date_ymd] => 2025-01-02 07:09:05 [RateCDR] => 1 ) [2025-01-02 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:09:05' and `end` < '2025-01-02 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:09:18] Production.INFO: count ==22 [2025-01-02 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:09:05 - End Time 2025-01-02 07:09:05 [2025-01-02 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156593', 'tblTempUsageDetail_20' ) start [2025-01-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156593', 'tblTempUsageDetail_20' ) end [2025-01-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156593', 'tblTempVendorCDR_20' ) start [2025-01-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156593', 'tblTempVendorCDR_20' ) end [2025-01-02 07:09:18] Production.INFO: ProcessCDR(1,14156593,1,1,2) [2025-01-02 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156593', 'tblTempUsageDetail_20' ) start [2025-01-02 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156593', 'tblTempUsageDetail_20' ) end [2025-01-02 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:09:21] Production.INFO: ==8491== Releasing lock... [2025-01-02 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:10:05 [end_date_ymd] => 2025-01-02 07:10:05 [RateCDR] => 1 ) [2025-01-02 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:10:05' and `end` < '2025-01-02 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:10:20] Production.INFO: count ==22 [2025-01-02 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-02 04:10:05 - End Time 2025-01-02 07:10:05 [2025-01-02 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156599', 'tblTempUsageDetail_20' ) start [2025-01-02 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156599', 'tblTempUsageDetail_20' ) end [2025-01-02 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156599', 'tblTempVendorCDR_20' ) start [2025-01-02 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156599', 'tblTempVendorCDR_20' ) end [2025-01-02 07:10:20] Production.INFO: ProcessCDR(1,14156599,1,1,2) [2025-01-02 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156599', 'tblTempUsageDetail_20' ) start [2025-01-02 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156599', 'tblTempUsageDetail_20' ) end [2025-01-02 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:10:23] Production.INFO: ==8585== Releasing lock... [2025-01-02 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:10:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:11:05 [end_date_ymd] => 2025-01-02 07:11:05 [RateCDR] => 1 ) [2025-01-02 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:11:05' and `end` < '2025-01-02 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:11:19] Production.INFO: count ==22 [2025-01-02 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:11:05 - End Time 2025-01-02 07:11:05 [2025-01-02 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156604', 'tblTempUsageDetail_20' ) start [2025-01-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156604', 'tblTempUsageDetail_20' ) end [2025-01-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156604', 'tblTempVendorCDR_20' ) start [2025-01-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156604', 'tblTempVendorCDR_20' ) end [2025-01-02 07:11:19] Production.INFO: ProcessCDR(1,14156604,1,1,2) [2025-01-02 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156604', 'tblTempUsageDetail_20' ) start [2025-01-02 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156604', 'tblTempUsageDetail_20' ) end [2025-01-02 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:11:22] Production.INFO: ==8679== Releasing lock... [2025-01-02 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:12:06 [end_date_ymd] => 2025-01-02 07:12:06 [RateCDR] => 1 ) [2025-01-02 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:12:06' and `end` < '2025-01-02 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:12:20] Production.INFO: count ==22 [2025-01-02 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-02 04:12:06 - End Time 2025-01-02 07:12:06 [2025-01-02 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156609', 'tblTempUsageDetail_20' ) start [2025-01-02 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156609', 'tblTempUsageDetail_20' ) end [2025-01-02 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156609', 'tblTempVendorCDR_20' ) start [2025-01-02 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156609', 'tblTempVendorCDR_20' ) end [2025-01-02 07:12:20] Production.INFO: ProcessCDR(1,14156609,1,1,2) [2025-01-02 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156609', 'tblTempUsageDetail_20' ) start [2025-01-02 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156609', 'tblTempUsageDetail_20' ) end [2025-01-02 07:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:12:24] Production.INFO: ==8848== Releasing lock... [2025-01-02 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:12:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:13:05 [end_date_ymd] => 2025-01-02 07:13:05 [RateCDR] => 1 ) [2025-01-02 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:13:05' and `end` < '2025-01-02 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:13:19] Production.INFO: count ==22 [2025-01-02 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:13:05 - End Time 2025-01-02 07:13:05 [2025-01-02 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156614', 'tblTempUsageDetail_20' ) start [2025-01-02 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156614', 'tblTempUsageDetail_20' ) end [2025-01-02 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156614', 'tblTempVendorCDR_20' ) start [2025-01-02 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156614', 'tblTempVendorCDR_20' ) end [2025-01-02 07:13:19] Production.INFO: ProcessCDR(1,14156614,1,1,2) [2025-01-02 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156614', 'tblTempUsageDetail_20' ) start [2025-01-02 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156614', 'tblTempUsageDetail_20' ) end [2025-01-02 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:13:22] Production.INFO: ==8942== Releasing lock... [2025-01-02 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:13:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:14:06 [end_date_ymd] => 2025-01-02 07:14:06 [RateCDR] => 1 ) [2025-01-02 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:14:06' and `end` < '2025-01-02 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:14:20] Production.INFO: count ==22 [2025-01-02 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-02 04:14:06 - End Time 2025-01-02 07:14:06 [2025-01-02 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156619', 'tblTempUsageDetail_20' ) start [2025-01-02 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156619', 'tblTempUsageDetail_20' ) end [2025-01-02 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156619', 'tblTempVendorCDR_20' ) start [2025-01-02 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156619', 'tblTempVendorCDR_20' ) end [2025-01-02 07:14:20] Production.INFO: ProcessCDR(1,14156619,1,1,2) [2025-01-02 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156619', 'tblTempUsageDetail_20' ) start [2025-01-02 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156619', 'tblTempUsageDetail_20' ) end [2025-01-02 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:14:23] Production.INFO: ==9037== Releasing lock... [2025-01-02 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:14:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:15:05 [end_date_ymd] => 2025-01-02 07:15:05 [RateCDR] => 1 ) [2025-01-02 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:15:05' and `end` < '2025-01-02 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:15:19] Production.INFO: count ==22 [2025-01-02 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:15:05 - End Time 2025-01-02 07:15:05 [2025-01-02 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156624', 'tblTempUsageDetail_20' ) start [2025-01-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156624', 'tblTempUsageDetail_20' ) end [2025-01-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156624', 'tblTempVendorCDR_20' ) start [2025-01-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156624', 'tblTempVendorCDR_20' ) end [2025-01-02 07:15:19] Production.INFO: ProcessCDR(1,14156624,1,1,2) [2025-01-02 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156624', 'tblTempUsageDetail_20' ) start [2025-01-02 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156624', 'tblTempUsageDetail_20' ) end [2025-01-02 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:15:22] Production.INFO: ==9215== Releasing lock... [2025-01-02 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:15:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:16:05 [end_date_ymd] => 2025-01-02 07:16:05 [RateCDR] => 1 ) [2025-01-02 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:16:05' and `end` < '2025-01-02 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:16:18] Production.INFO: count ==22 [2025-01-02 07:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:16:05 - End Time 2025-01-02 07:16:05 [2025-01-02 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156629', 'tblTempUsageDetail_20' ) start [2025-01-02 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156629', 'tblTempUsageDetail_20' ) end [2025-01-02 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156629', 'tblTempVendorCDR_20' ) start [2025-01-02 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156629', 'tblTempVendorCDR_20' ) end [2025-01-02 07:16:18] Production.INFO: ProcessCDR(1,14156629,1,1,2) [2025-01-02 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156629', 'tblTempUsageDetail_20' ) start [2025-01-02 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156629', 'tblTempUsageDetail_20' ) end [2025-01-02 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:16:21] Production.INFO: ==9350== Releasing lock... [2025-01-02 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:17:05 [end_date_ymd] => 2025-01-02 07:17:05 [RateCDR] => 1 ) [2025-01-02 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:17:05' and `end` < '2025-01-02 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:17:18] Production.INFO: count ==23 [2025-01-02 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:17:05 - End Time 2025-01-02 07:17:05 [2025-01-02 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156634', 'tblTempUsageDetail_20' ) start [2025-01-02 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156634', 'tblTempUsageDetail_20' ) end [2025-01-02 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156634', 'tblTempVendorCDR_20' ) start [2025-01-02 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156634', 'tblTempVendorCDR_20' ) end [2025-01-02 07:17:18] Production.INFO: ProcessCDR(1,14156634,1,1,2) [2025-01-02 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156634', 'tblTempUsageDetail_20' ) start [2025-01-02 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156634', 'tblTempUsageDetail_20' ) end [2025-01-02 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:17:23] Production.INFO: ==9443== Releasing lock... [2025-01-02 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:18:05 [end_date_ymd] => 2025-01-02 07:18:05 [RateCDR] => 1 ) [2025-01-02 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:18:05' and `end` < '2025-01-02 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:18:19] Production.INFO: count ==24 [2025-01-02 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:18:05 - End Time 2025-01-02 07:18:05 [2025-01-02 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156639', 'tblTempUsageDetail_20' ) start [2025-01-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156639', 'tblTempUsageDetail_20' ) end [2025-01-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156639', 'tblTempVendorCDR_20' ) start [2025-01-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156639', 'tblTempVendorCDR_20' ) end [2025-01-02 07:18:19] Production.INFO: ProcessCDR(1,14156639,1,1,2) [2025-01-02 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156639', 'tblTempUsageDetail_20' ) start [2025-01-02 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156639', 'tblTempUsageDetail_20' ) end [2025-01-02 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:18:23] Production.INFO: ==9538== Releasing lock... [2025-01-02 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:18:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:19:05 [end_date_ymd] => 2025-01-02 07:19:05 [RateCDR] => 1 ) [2025-01-02 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:19:05' and `end` < '2025-01-02 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:19:19] Production.INFO: count ==24 [2025-01-02 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:19:05 - End Time 2025-01-02 07:19:05 [2025-01-02 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156644', 'tblTempUsageDetail_20' ) start [2025-01-02 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156644', 'tblTempUsageDetail_20' ) end [2025-01-02 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156644', 'tblTempVendorCDR_20' ) start [2025-01-02 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156644', 'tblTempVendorCDR_20' ) end [2025-01-02 07:19:19] Production.INFO: ProcessCDR(1,14156644,1,1,2) [2025-01-02 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156644', 'tblTempUsageDetail_20' ) start [2025-01-02 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156644', 'tblTempUsageDetail_20' ) end [2025-01-02 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:19:22] Production.INFO: ==9643== Releasing lock... [2025-01-02 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:19:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-02 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:20:05 [end_date_ymd] => 2025-01-02 07:20:05 [RateCDR] => 1 ) [2025-01-02 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:20:05' and `end` < '2025-01-02 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:20:18] Production.INFO: count ==30 [2025-01-02 07:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:20:05 - End Time 2025-01-02 07:20:05 [2025-01-02 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156649', 'tblTempUsageDetail_20' ) start [2025-01-02 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156649', 'tblTempUsageDetail_20' ) end [2025-01-02 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156649', 'tblTempVendorCDR_20' ) start [2025-01-02 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156649', 'tblTempVendorCDR_20' ) end [2025-01-02 07:20:18] Production.INFO: ProcessCDR(1,14156649,1,1,2) [2025-01-02 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156649', 'tblTempUsageDetail_20' ) start [2025-01-02 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156649', 'tblTempUsageDetail_20' ) end [2025-01-02 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:20:22] Production.INFO: ==9732== Releasing lock... [2025-01-02 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:21:05 [end_date_ymd] => 2025-01-02 07:21:05 [RateCDR] => 1 ) [2025-01-02 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:21:05' and `end` < '2025-01-02 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:21:47] Production.INFO: count ==39 [2025-01-02 07:21:47] Production.ERROR: pbx CDR StartTime 2025-01-02 04:21:05 - End Time 2025-01-02 07:21:05 [2025-01-02 07:21:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:21:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156655', 'tblTempUsageDetail_20' ) start [2025-01-02 07:21:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156655', 'tblTempUsageDetail_20' ) end [2025-01-02 07:21:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156655', 'tblTempVendorCDR_20' ) start [2025-01-02 07:21:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156655', 'tblTempVendorCDR_20' ) end [2025-01-02 07:21:47] Production.INFO: ProcessCDR(1,14156655,1,1,2) [2025-01-02 07:21:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:21:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:21:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:21:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:21:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156655', 'tblTempUsageDetail_20' ) start [2025-01-02 07:21:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156655', 'tblTempUsageDetail_20' ) end [2025-01-02 07:21:51] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:21:51] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:21:51] Production.INFO: ==9821== Releasing lock... [2025-01-02 07:21:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:21:51] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:22:05 [end_date_ymd] => 2025-01-02 07:22:05 [RateCDR] => 1 ) [2025-01-02 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:22:05' and `end` < '2025-01-02 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:22:21] Production.INFO: count ==39 [2025-01-02 07:22:21] Production.ERROR: pbx CDR StartTime 2025-01-02 04:22:05 - End Time 2025-01-02 07:22:05 [2025-01-02 07:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156660', 'tblTempUsageDetail_20' ) start [2025-01-02 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156660', 'tblTempUsageDetail_20' ) end [2025-01-02 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156660', 'tblTempVendorCDR_20' ) start [2025-01-02 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156660', 'tblTempVendorCDR_20' ) end [2025-01-02 07:22:21] Production.INFO: ProcessCDR(1,14156660,1,1,2) [2025-01-02 07:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156660', 'tblTempUsageDetail_20' ) start [2025-01-02 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156660', 'tblTempUsageDetail_20' ) end [2025-01-02 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:22:24] Production.INFO: ==9902== Releasing lock... [2025-01-02 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:22:24] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:23:05 [end_date_ymd] => 2025-01-02 07:23:05 [RateCDR] => 1 ) [2025-01-02 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:23:05' and `end` < '2025-01-02 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:23:19] Production.INFO: count ==39 [2025-01-02 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:23:05 - End Time 2025-01-02 07:23:05 [2025-01-02 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156665', 'tblTempUsageDetail_20' ) start [2025-01-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156665', 'tblTempUsageDetail_20' ) end [2025-01-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156665', 'tblTempVendorCDR_20' ) start [2025-01-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156665', 'tblTempVendorCDR_20' ) end [2025-01-02 07:23:19] Production.INFO: ProcessCDR(1,14156665,1,1,2) [2025-01-02 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156665', 'tblTempUsageDetail_20' ) start [2025-01-02 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156665', 'tblTempUsageDetail_20' ) end [2025-01-02 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:23:22] Production.INFO: ==9979== Releasing lock... [2025-01-02 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:24:04 [end_date_ymd] => 2025-01-02 07:24:04 [RateCDR] => 1 ) [2025-01-02 07:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:24:04' and `end` < '2025-01-02 07:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:24:18] Production.INFO: count ==39 [2025-01-02 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:24:04 - End Time 2025-01-02 07:24:04 [2025-01-02 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156670', 'tblTempUsageDetail_20' ) start [2025-01-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156670', 'tblTempUsageDetail_20' ) end [2025-01-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156670', 'tblTempVendorCDR_20' ) start [2025-01-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156670', 'tblTempVendorCDR_20' ) end [2025-01-02 07:24:18] Production.INFO: ProcessCDR(1,14156670,1,1,2) [2025-01-02 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156670', 'tblTempUsageDetail_20' ) start [2025-01-02 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156670', 'tblTempUsageDetail_20' ) end [2025-01-02 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:24:21] Production.INFO: ==10053== Releasing lock... [2025-01-02 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:25:05 [end_date_ymd] => 2025-01-02 07:25:05 [RateCDR] => 1 ) [2025-01-02 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:25:05' and `end` < '2025-01-02 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:25:18] Production.INFO: count ==39 [2025-01-02 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:25:05 - End Time 2025-01-02 07:25:05 [2025-01-02 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156675', 'tblTempUsageDetail_20' ) start [2025-01-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156675', 'tblTempUsageDetail_20' ) end [2025-01-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156675', 'tblTempVendorCDR_20' ) start [2025-01-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156675', 'tblTempVendorCDR_20' ) end [2025-01-02 07:25:18] Production.INFO: ProcessCDR(1,14156675,1,1,2) [2025-01-02 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156675', 'tblTempUsageDetail_20' ) start [2025-01-02 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156675', 'tblTempUsageDetail_20' ) end [2025-01-02 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:25:21] Production.INFO: ==10129== Releasing lock... [2025-01-02 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:26:05 [end_date_ymd] => 2025-01-02 07:26:05 [RateCDR] => 1 ) [2025-01-02 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:26:05' and `end` < '2025-01-02 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:26:18] Production.INFO: count ==39 [2025-01-02 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:26:05 - End Time 2025-01-02 07:26:05 [2025-01-02 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156680', 'tblTempUsageDetail_20' ) start [2025-01-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156680', 'tblTempUsageDetail_20' ) end [2025-01-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156680', 'tblTempVendorCDR_20' ) start [2025-01-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156680', 'tblTempVendorCDR_20' ) end [2025-01-02 07:26:18] Production.INFO: ProcessCDR(1,14156680,1,1,2) [2025-01-02 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156680', 'tblTempUsageDetail_20' ) start [2025-01-02 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156680', 'tblTempUsageDetail_20' ) end [2025-01-02 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:26:21] Production.INFO: ==10200== Releasing lock... [2025-01-02 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:27:05 [end_date_ymd] => 2025-01-02 07:27:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:27:05' and `end` < '2025-01-02 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-01-02 07:27:18] Production.INFO: count ==39 [2025-01-02 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:27:05 - End Time 2025-01-02 07:27:05 [2025-01-02 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156685', 'tblTempUsageDetail_20' ) start [2025-01-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156685', 'tblTempUsageDetail_20' ) end [2025-01-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156685', 'tblTempVendorCDR_20' ) start [2025-01-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156685', 'tblTempVendorCDR_20' ) end [2025-01-02 07:27:18] Production.INFO: ProcessCDR(1,14156685,1,1,2) [2025-01-02 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156685', 'tblTempUsageDetail_20' ) start [2025-01-02 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156685', 'tblTempUsageDetail_20' ) end [2025-01-02 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:27:21] Production.INFO: ==10273== Releasing lock... [2025-01-02 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:28:05 [end_date_ymd] => 2025-01-02 07:28:05 [RateCDR] => 1 ) [2025-01-02 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:28:05' and `end` < '2025-01-02 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:28:18] Production.INFO: count ==39 [2025-01-02 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:28:05 - End Time 2025-01-02 07:28:05 [2025-01-02 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156690', 'tblTempUsageDetail_20' ) start [2025-01-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156690', 'tblTempUsageDetail_20' ) end [2025-01-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156690', 'tblTempVendorCDR_20' ) start [2025-01-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156690', 'tblTempVendorCDR_20' ) end [2025-01-02 07:28:18] Production.INFO: ProcessCDR(1,14156690,1,1,2) [2025-01-02 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156690', 'tblTempUsageDetail_20' ) start [2025-01-02 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156690', 'tblTempUsageDetail_20' ) end [2025-01-02 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:28:21] Production.INFO: ==10355== Releasing lock... [2025-01-02 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:29:05 [end_date_ymd] => 2025-01-02 07:29:05 [RateCDR] => 1 ) [2025-01-02 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:29:05' and `end` < '2025-01-02 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:29:18] Production.INFO: count ==39 [2025-01-02 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:29:05 - End Time 2025-01-02 07:29:05 [2025-01-02 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156695', 'tblTempUsageDetail_20' ) start [2025-01-02 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156695', 'tblTempUsageDetail_20' ) end [2025-01-02 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156695', 'tblTempVendorCDR_20' ) start [2025-01-02 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156695', 'tblTempVendorCDR_20' ) end [2025-01-02 07:29:18] Production.INFO: ProcessCDR(1,14156695,1,1,2) [2025-01-02 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156695', 'tblTempUsageDetail_20' ) start [2025-01-02 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156695', 'tblTempUsageDetail_20' ) end [2025-01-02 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:29:21] Production.INFO: ==10426== Releasing lock... [2025-01-02 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:30:05 [end_date_ymd] => 2025-01-02 07:30:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:30:05' and `end` < '2025-01-02 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-01-02 07:30:19] Production.INFO: count ==37 [2025-01-02 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:30:05 - End Time 2025-01-02 07:30:05 [2025-01-02 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156700', 'tblTempUsageDetail_20' ) start [2025-01-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156700', 'tblTempUsageDetail_20' ) end [2025-01-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156700', 'tblTempVendorCDR_20' ) start [2025-01-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156700', 'tblTempVendorCDR_20' ) end [2025-01-02 07:30:19] Production.INFO: ProcessCDR(1,14156700,1,1,2) [2025-01-02 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156700', 'tblTempUsageDetail_20' ) start [2025-01-02 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156700', 'tblTempUsageDetail_20' ) end [2025-01-02 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:30:22] Production.INFO: ==10501== Releasing lock... [2025-01-02 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:31:05 [end_date_ymd] => 2025-01-02 07:31:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:31:05' and `end` < '2025-01-02 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-01-02 07:31:18] Production.INFO: count ==37 [2025-01-02 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:31:05 - End Time 2025-01-02 07:31:05 [2025-01-02 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156706', 'tblTempUsageDetail_20' ) start [2025-01-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156706', 'tblTempUsageDetail_20' ) end [2025-01-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156706', 'tblTempVendorCDR_20' ) start [2025-01-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156706', 'tblTempVendorCDR_20' ) end [2025-01-02 07:31:18] Production.INFO: ProcessCDR(1,14156706,1,1,2) [2025-01-02 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156706', 'tblTempUsageDetail_20' ) start [2025-01-02 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156706', 'tblTempUsageDetail_20' ) end [2025-01-02 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:31:21] Production.INFO: ==10574== Releasing lock... [2025-01-02 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:32:05 [end_date_ymd] => 2025-01-02 07:32:05 [RateCDR] => 1 ) [2025-01-02 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:32:05' and `end` < '2025-01-02 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:32:19] Production.INFO: count ==37 [2025-01-02 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:32:05 - End Time 2025-01-02 07:32:05 [2025-01-02 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156711', 'tblTempUsageDetail_20' ) start [2025-01-02 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156711', 'tblTempUsageDetail_20' ) end [2025-01-02 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156711', 'tblTempVendorCDR_20' ) start [2025-01-02 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156711', 'tblTempVendorCDR_20' ) end [2025-01-02 07:32:19] Production.INFO: ProcessCDR(1,14156711,1,1,2) [2025-01-02 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156711', 'tblTempUsageDetail_20' ) start [2025-01-02 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156711', 'tblTempUsageDetail_20' ) end [2025-01-02 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:32:22] Production.INFO: ==10683== Releasing lock... [2025-01-02 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:33:05 [end_date_ymd] => 2025-01-02 07:33:05 [RateCDR] => 1 ) [2025-01-02 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:33:05' and `end` < '2025-01-02 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:33:17] Production.INFO: count ==38 [2025-01-02 07:33:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:33:05 - End Time 2025-01-02 07:33:05 [2025-01-02 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156716', 'tblTempUsageDetail_20' ) start [2025-01-02 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156716', 'tblTempUsageDetail_20' ) end [2025-01-02 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156716', 'tblTempVendorCDR_20' ) start [2025-01-02 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156716', 'tblTempVendorCDR_20' ) end [2025-01-02 07:33:17] Production.INFO: ProcessCDR(1,14156716,1,1,2) [2025-01-02 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156716', 'tblTempUsageDetail_20' ) start [2025-01-02 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156716', 'tblTempUsageDetail_20' ) end [2025-01-02 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:33:22] Production.INFO: ==10758== Releasing lock... [2025-01-02 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:34:05 [end_date_ymd] => 2025-01-02 07:34:05 [RateCDR] => 1 ) [2025-01-02 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:34:05' and `end` < '2025-01-02 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:34:19] Production.INFO: count ==38 [2025-01-02 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:34:05 - End Time 2025-01-02 07:34:05 [2025-01-02 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156721', 'tblTempUsageDetail_20' ) start [2025-01-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156721', 'tblTempUsageDetail_20' ) end [2025-01-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156721', 'tblTempVendorCDR_20' ) start [2025-01-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156721', 'tblTempVendorCDR_20' ) end [2025-01-02 07:34:19] Production.INFO: ProcessCDR(1,14156721,1,1,2) [2025-01-02 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156721', 'tblTempUsageDetail_20' ) start [2025-01-02 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156721', 'tblTempUsageDetail_20' ) end [2025-01-02 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:34:22] Production.INFO: ==10829== Releasing lock... [2025-01-02 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:35:05 [end_date_ymd] => 2025-01-02 07:35:05 [RateCDR] => 1 ) [2025-01-02 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:35:05' and `end` < '2025-01-02 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:35:17] Production.INFO: count ==54 [2025-01-02 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:35:05 - End Time 2025-01-02 07:35:05 [2025-01-02 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156726', 'tblTempUsageDetail_20' ) start [2025-01-02 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156726', 'tblTempUsageDetail_20' ) end [2025-01-02 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156726', 'tblTempVendorCDR_20' ) start [2025-01-02 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156726', 'tblTempVendorCDR_20' ) end [2025-01-02 07:35:17] Production.INFO: ProcessCDR(1,14156726,1,1,2) [2025-01-02 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156726', 'tblTempUsageDetail_20' ) start [2025-01-02 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156726', 'tblTempUsageDetail_20' ) end [2025-01-02 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:35:20] Production.INFO: ==10899== Releasing lock... [2025-01-02 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:36:05 [end_date_ymd] => 2025-01-02 07:36:05 [RateCDR] => 1 ) [2025-01-02 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:36:05' and `end` < '2025-01-02 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:36:18] Production.INFO: count ==54 [2025-01-02 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:36:05 - End Time 2025-01-02 07:36:05 [2025-01-02 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156731', 'tblTempUsageDetail_20' ) start [2025-01-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156731', 'tblTempUsageDetail_20' ) end [2025-01-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156731', 'tblTempVendorCDR_20' ) start [2025-01-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156731', 'tblTempVendorCDR_20' ) end [2025-01-02 07:36:18] Production.INFO: ProcessCDR(1,14156731,1,1,2) [2025-01-02 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156731', 'tblTempUsageDetail_20' ) start [2025-01-02 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156731', 'tblTempUsageDetail_20' ) end [2025-01-02 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:36:21] Production.INFO: ==10970== Releasing lock... [2025-01-02 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:37:05 [end_date_ymd] => 2025-01-02 07:37:05 [RateCDR] => 1 ) [2025-01-02 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:37:05' and `end` < '2025-01-02 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:37:19] Production.INFO: count ==54 [2025-01-02 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:37:05 - End Time 2025-01-02 07:37:05 [2025-01-02 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156736', 'tblTempUsageDetail_20' ) start [2025-01-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156736', 'tblTempUsageDetail_20' ) end [2025-01-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156736', 'tblTempVendorCDR_20' ) start [2025-01-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156736', 'tblTempVendorCDR_20' ) end [2025-01-02 07:37:19] Production.INFO: ProcessCDR(1,14156736,1,1,2) [2025-01-02 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156736', 'tblTempUsageDetail_20' ) start [2025-01-02 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156736', 'tblTempUsageDetail_20' ) end [2025-01-02 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:37:22] Production.INFO: ==11041== Releasing lock... [2025-01-02 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:38:05 [end_date_ymd] => 2025-01-02 07:38:05 [RateCDR] => 1 ) [2025-01-02 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:38:05' and `end` < '2025-01-02 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:38:18] Production.INFO: count ==54 [2025-01-02 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:38:05 - End Time 2025-01-02 07:38:05 [2025-01-02 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156741', 'tblTempUsageDetail_20' ) start [2025-01-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156741', 'tblTempUsageDetail_20' ) end [2025-01-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156741', 'tblTempVendorCDR_20' ) start [2025-01-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156741', 'tblTempVendorCDR_20' ) end [2025-01-02 07:38:18] Production.INFO: ProcessCDR(1,14156741,1,1,2) [2025-01-02 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156741', 'tblTempUsageDetail_20' ) start [2025-01-02 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156741', 'tblTempUsageDetail_20' ) end [2025-01-02 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:38:21] Production.INFO: ==11114== Releasing lock... [2025-01-02 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:39:05 [end_date_ymd] => 2025-01-02 07:39:05 [RateCDR] => 1 ) [2025-01-02 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:39:05' and `end` < '2025-01-02 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:39:17] Production.INFO: count ==54 [2025-01-02 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:39:05 - End Time 2025-01-02 07:39:05 [2025-01-02 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156746', 'tblTempUsageDetail_20' ) start [2025-01-02 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156746', 'tblTempUsageDetail_20' ) end [2025-01-02 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156746', 'tblTempVendorCDR_20' ) start [2025-01-02 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156746', 'tblTempVendorCDR_20' ) end [2025-01-02 07:39:17] Production.INFO: ProcessCDR(1,14156746,1,1,2) [2025-01-02 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156746', 'tblTempUsageDetail_20' ) start [2025-01-02 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156746', 'tblTempUsageDetail_20' ) end [2025-01-02 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:39:20] Production.INFO: ==11184== Releasing lock... [2025-01-02 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:39:20] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:40:06 [end_date_ymd] => 2025-01-02 07:40:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:40:06' and `end` < '2025-01-02 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-01-02 07:40:18] Production.INFO: count ==54 [2025-01-02 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:40:06 - End Time 2025-01-02 07:40:06 [2025-01-02 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156752', 'tblTempUsageDetail_20' ) start [2025-01-02 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156752', 'tblTempUsageDetail_20' ) end [2025-01-02 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156752', 'tblTempVendorCDR_20' ) start [2025-01-02 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156752', 'tblTempVendorCDR_20' ) end [2025-01-02 07:40:18] Production.INFO: ProcessCDR(1,14156752,1,1,2) [2025-01-02 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156752', 'tblTempUsageDetail_20' ) start [2025-01-02 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156752', 'tblTempUsageDetail_20' ) end [2025-01-02 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:40:22] Production.INFO: ==11256== Releasing lock... [2025-01-02 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:41:05 [end_date_ymd] => 2025-01-02 07:41:05 [RateCDR] => 1 ) [2025-01-02 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:41:05' and `end` < '2025-01-02 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:41:18] Production.INFO: count ==54 [2025-01-02 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:41:05 - End Time 2025-01-02 07:41:05 [2025-01-02 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156757', 'tblTempUsageDetail_20' ) start [2025-01-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156757', 'tblTempUsageDetail_20' ) end [2025-01-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156757', 'tblTempVendorCDR_20' ) start [2025-01-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156757', 'tblTempVendorCDR_20' ) end [2025-01-02 07:41:18] Production.INFO: ProcessCDR(1,14156757,1,1,2) [2025-01-02 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156757', 'tblTempUsageDetail_20' ) start [2025-01-02 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156757', 'tblTempUsageDetail_20' ) end [2025-01-02 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:41:21] Production.INFO: ==11330== Releasing lock... [2025-01-02 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:42:05 [end_date_ymd] => 2025-01-02 07:42:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:42:05' and `end` < '2025-01-02 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-01-02 07:42:20] Production.INFO: count ==54 [2025-01-02 07:42:20] Production.ERROR: pbx CDR StartTime 2025-01-02 04:42:05 - End Time 2025-01-02 07:42:05 [2025-01-02 07:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156762', 'tblTempUsageDetail_20' ) start [2025-01-02 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156762', 'tblTempUsageDetail_20' ) end [2025-01-02 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156762', 'tblTempVendorCDR_20' ) start [2025-01-02 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156762', 'tblTempVendorCDR_20' ) end [2025-01-02 07:42:20] Production.INFO: ProcessCDR(1,14156762,1,1,2) [2025-01-02 07:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156762', 'tblTempUsageDetail_20' ) start [2025-01-02 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156762', 'tblTempUsageDetail_20' ) end [2025-01-02 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:42:23] Production.INFO: ==11407== Releasing lock... [2025-01-02 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:42:23] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:43:05 [end_date_ymd] => 2025-01-02 07:43:05 [RateCDR] => 1 ) [2025-01-02 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:43:05' and `end` < '2025-01-02 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:43:18] Production.INFO: count ==54 [2025-01-02 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:43:05 - End Time 2025-01-02 07:43:05 [2025-01-02 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156767', 'tblTempUsageDetail_20' ) start [2025-01-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156767', 'tblTempUsageDetail_20' ) end [2025-01-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156767', 'tblTempVendorCDR_20' ) start [2025-01-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156767', 'tblTempVendorCDR_20' ) end [2025-01-02 07:43:18] Production.INFO: ProcessCDR(1,14156767,1,1,2) [2025-01-02 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156767', 'tblTempUsageDetail_20' ) start [2025-01-02 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156767', 'tblTempUsageDetail_20' ) end [2025-01-02 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:43:21] Production.INFO: ==11478== Releasing lock... [2025-01-02 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-02 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:44:05 [end_date_ymd] => 2025-01-02 07:44:05 [RateCDR] => 1 ) [2025-01-02 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:44:05' and `end` < '2025-01-02 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:44:18] Production.INFO: count ==63 [2025-01-02 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:44:05 - End Time 2025-01-02 07:44:05 [2025-01-02 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156772', 'tblTempUsageDetail_20' ) start [2025-01-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156772', 'tblTempUsageDetail_20' ) end [2025-01-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156772', 'tblTempVendorCDR_20' ) start [2025-01-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156772', 'tblTempVendorCDR_20' ) end [2025-01-02 07:44:18] Production.INFO: ProcessCDR(1,14156772,1,1,2) [2025-01-02 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156772', 'tblTempUsageDetail_20' ) start [2025-01-02 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156772', 'tblTempUsageDetail_20' ) end [2025-01-02 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:44:22] Production.INFO: ==11552== Releasing lock... [2025-01-02 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-02 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:45:04 [end_date_ymd] => 2025-01-02 07:45:04 [RateCDR] => 1 ) [2025-01-02 07:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:45:04' and `end` < '2025-01-02 07:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:45:17] Production.INFO: count ==76 [2025-01-02 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:45:04 - End Time 2025-01-02 07:45:04 [2025-01-02 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156777', 'tblTempUsageDetail_20' ) start [2025-01-02 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156777', 'tblTempUsageDetail_20' ) end [2025-01-02 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156777', 'tblTempVendorCDR_20' ) start [2025-01-02 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156777', 'tblTempVendorCDR_20' ) end [2025-01-02 07:45:17] Production.INFO: ProcessCDR(1,14156777,1,1,2) [2025-01-02 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156777', 'tblTempUsageDetail_20' ) start [2025-01-02 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156777', 'tblTempUsageDetail_20' ) end [2025-01-02 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:45:20] Production.INFO: ==11621== Releasing lock... [2025-01-02 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-02 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:46:05 [end_date_ymd] => 2025-01-02 07:46:05 [RateCDR] => 1 ) [2025-01-02 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:46:05' and `end` < '2025-01-02 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:46:17] Production.INFO: count ==99 [2025-01-02 07:46:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:46:05 - End Time 2025-01-02 07:46:05 [2025-01-02 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156782', 'tblTempUsageDetail_20' ) start [2025-01-02 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156782', 'tblTempUsageDetail_20' ) end [2025-01-02 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156782', 'tblTempVendorCDR_20' ) start [2025-01-02 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156782', 'tblTempVendorCDR_20' ) end [2025-01-02 07:46:17] Production.INFO: ProcessCDR(1,14156782,1,1,2) [2025-01-02 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156782', 'tblTempUsageDetail_20' ) start [2025-01-02 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156782', 'tblTempUsageDetail_20' ) end [2025-01-02 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:46:21] Production.INFO: ==11692== Releasing lock... [2025-01-02 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:47:05 [end_date_ymd] => 2025-01-02 07:47:05 [RateCDR] => 1 ) [2025-01-02 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:47:05' and `end` < '2025-01-02 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:47:19] Production.INFO: count ==99 [2025-01-02 07:47:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:47:05 - End Time 2025-01-02 07:47:05 [2025-01-02 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156787', 'tblTempUsageDetail_20' ) start [2025-01-02 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156787', 'tblTempUsageDetail_20' ) end [2025-01-02 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156787', 'tblTempVendorCDR_20' ) start [2025-01-02 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156787', 'tblTempVendorCDR_20' ) end [2025-01-02 07:47:19] Production.INFO: ProcessCDR(1,14156787,1,1,2) [2025-01-02 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156787', 'tblTempUsageDetail_20' ) start [2025-01-02 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156787', 'tblTempUsageDetail_20' ) end [2025-01-02 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:47:22] Production.INFO: ==11802== Releasing lock... [2025-01-02 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:47:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:48:04 [end_date_ymd] => 2025-01-02 07:48:04 [RateCDR] => 1 ) [2025-01-02 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:48:04' and `end` < '2025-01-02 07:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:48:19] Production.INFO: count ==100 [2025-01-02 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:48:04 - End Time 2025-01-02 07:48:04 [2025-01-02 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156792', 'tblTempUsageDetail_20' ) start [2025-01-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156792', 'tblTempUsageDetail_20' ) end [2025-01-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156792', 'tblTempVendorCDR_20' ) start [2025-01-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156792', 'tblTempVendorCDR_20' ) end [2025-01-02 07:48:19] Production.INFO: ProcessCDR(1,14156792,1,1,2) [2025-01-02 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156792', 'tblTempUsageDetail_20' ) start [2025-01-02 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156792', 'tblTempUsageDetail_20' ) end [2025-01-02 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:48:22] Production.INFO: ==11872== Releasing lock... [2025-01-02 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:48:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:49:05 [end_date_ymd] => 2025-01-02 07:49:05 [RateCDR] => 1 ) [2025-01-02 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:49:05' and `end` < '2025-01-02 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:49:17] Production.INFO: count ==100 [2025-01-02 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:49:05 - End Time 2025-01-02 07:49:05 [2025-01-02 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156797', 'tblTempUsageDetail_20' ) start [2025-01-02 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156797', 'tblTempUsageDetail_20' ) end [2025-01-02 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156797', 'tblTempVendorCDR_20' ) start [2025-01-02 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156797', 'tblTempVendorCDR_20' ) end [2025-01-02 07:49:17] Production.INFO: ProcessCDR(1,14156797,1,1,2) [2025-01-02 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156797', 'tblTempUsageDetail_20' ) start [2025-01-02 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156797', 'tblTempUsageDetail_20' ) end [2025-01-02 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:49:21] Production.INFO: ==11945== Releasing lock... [2025-01-02 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:49:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:50:05 [end_date_ymd] => 2025-01-02 07:50:05 [RateCDR] => 1 ) [2025-01-02 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:50:05' and `end` < '2025-01-02 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:50:17] Production.INFO: count ==107 [2025-01-02 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:50:05 - End Time 2025-01-02 07:50:05 [2025-01-02 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156803', 'tblTempUsageDetail_20' ) start [2025-01-02 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156803', 'tblTempUsageDetail_20' ) end [2025-01-02 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156803', 'tblTempVendorCDR_20' ) start [2025-01-02 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156803', 'tblTempVendorCDR_20' ) end [2025-01-02 07:50:18] Production.INFO: ProcessCDR(1,14156803,1,1,2) [2025-01-02 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156803', 'tblTempUsageDetail_20' ) start [2025-01-02 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156803', 'tblTempUsageDetail_20' ) end [2025-01-02 07:50:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:50:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:50:21] Production.INFO: ==12020== Releasing lock... [2025-01-02 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:51:05 [end_date_ymd] => 2025-01-02 07:51:05 [RateCDR] => 1 ) [2025-01-02 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:51:05' and `end` < '2025-01-02 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:51:18] Production.INFO: count ==107 [2025-01-02 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:51:05 - End Time 2025-01-02 07:51:05 [2025-01-02 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156808', 'tblTempUsageDetail_20' ) start [2025-01-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156808', 'tblTempUsageDetail_20' ) end [2025-01-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156808', 'tblTempVendorCDR_20' ) start [2025-01-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156808', 'tblTempVendorCDR_20' ) end [2025-01-02 07:51:18] Production.INFO: ProcessCDR(1,14156808,1,1,2) [2025-01-02 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156808', 'tblTempUsageDetail_20' ) start [2025-01-02 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156808', 'tblTempUsageDetail_20' ) end [2025-01-02 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:51:22] Production.INFO: ==12092== Releasing lock... [2025-01-02 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:51:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:52:04 [end_date_ymd] => 2025-01-02 07:52:04 [RateCDR] => 1 ) [2025-01-02 07:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:52:04' and `end` < '2025-01-02 07:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:52:17] Production.INFO: count ==107 [2025-01-02 07:52:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:52:04 - End Time 2025-01-02 07:52:04 [2025-01-02 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156813', 'tblTempUsageDetail_20' ) start [2025-01-02 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156813', 'tblTempUsageDetail_20' ) end [2025-01-02 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156813', 'tblTempVendorCDR_20' ) start [2025-01-02 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156813', 'tblTempVendorCDR_20' ) end [2025-01-02 07:52:17] Production.INFO: ProcessCDR(1,14156813,1,1,2) [2025-01-02 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156813', 'tblTempUsageDetail_20' ) start [2025-01-02 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156813', 'tblTempUsageDetail_20' ) end [2025-01-02 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:52:20] Production.INFO: ==12162== Releasing lock... [2025-01-02 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:52:20] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:53:04 [end_date_ymd] => 2025-01-02 07:53:04 [RateCDR] => 1 ) [2025-01-02 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:53:04' and `end` < '2025-01-02 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:53:18] Production.INFO: count ==107 [2025-01-02 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-02 04:53:04 - End Time 2025-01-02 07:53:04 [2025-01-02 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156818', 'tblTempUsageDetail_20' ) start [2025-01-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156818', 'tblTempUsageDetail_20' ) end [2025-01-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156818', 'tblTempVendorCDR_20' ) start [2025-01-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156818', 'tblTempVendorCDR_20' ) end [2025-01-02 07:53:18] Production.INFO: ProcessCDR(1,14156818,1,1,2) [2025-01-02 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156818', 'tblTempUsageDetail_20' ) start [2025-01-02 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156818', 'tblTempUsageDetail_20' ) end [2025-01-02 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:53:22] Production.INFO: ==12233== Releasing lock... [2025-01-02 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:54:06 [end_date_ymd] => 2025-01-02 07:54:06 [RateCDR] => 1 ) [2025-01-02 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:54:06' and `end` < '2025-01-02 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:54:19] Production.INFO: count ==107 [2025-01-02 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 04:54:06 - End Time 2025-01-02 07:54:06 [2025-01-02 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156823', 'tblTempUsageDetail_20' ) start [2025-01-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156823', 'tblTempUsageDetail_20' ) end [2025-01-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156823', 'tblTempVendorCDR_20' ) start [2025-01-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156823', 'tblTempVendorCDR_20' ) end [2025-01-02 07:54:19] Production.INFO: ProcessCDR(1,14156823,1,1,2) [2025-01-02 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156823', 'tblTempUsageDetail_20' ) start [2025-01-02 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156823', 'tblTempUsageDetail_20' ) end [2025-01-02 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:54:22] Production.INFO: ==12305== Releasing lock... [2025-01-02 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:55:05 [end_date_ymd] => 2025-01-02 07:55:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 04:55:05' and `end` < '2025-01-02 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-01-02 07:55:17] Production.INFO: count ==107 [2025-01-02 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:55:05 - End Time 2025-01-02 07:55:05 [2025-01-02 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156828', 'tblTempUsageDetail_20' ) start [2025-01-02 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156828', 'tblTempUsageDetail_20' ) end [2025-01-02 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156828', 'tblTempVendorCDR_20' ) start [2025-01-02 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156828', 'tblTempVendorCDR_20' ) end [2025-01-02 07:55:17] Production.INFO: ProcessCDR(1,14156828,1,1,2) [2025-01-02 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156828', 'tblTempUsageDetail_20' ) start [2025-01-02 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156828', 'tblTempUsageDetail_20' ) end [2025-01-02 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:55:20] Production.INFO: ==12377== Releasing lock... [2025-01-02 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:55:20] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:56:05 [end_date_ymd] => 2025-01-02 07:56:05 [RateCDR] => 1 ) [2025-01-02 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:56:05' and `end` < '2025-01-02 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:56:17] Production.INFO: count ==108 [2025-01-02 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:56:05 - End Time 2025-01-02 07:56:05 [2025-01-02 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156833', 'tblTempUsageDetail_20' ) start [2025-01-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156833', 'tblTempUsageDetail_20' ) end [2025-01-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156833', 'tblTempVendorCDR_20' ) start [2025-01-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156833', 'tblTempVendorCDR_20' ) end [2025-01-02 07:56:18] Production.INFO: ProcessCDR(1,14156833,1,1,2) [2025-01-02 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156833', 'tblTempUsageDetail_20' ) start [2025-01-02 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156833', 'tblTempUsageDetail_20' ) end [2025-01-02 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:56:21] Production.INFO: ==12455== Releasing lock... [2025-01-02 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:56:21] Production.INFO: 29 MB #Memory Used# [2025-01-02 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:57:04 [end_date_ymd] => 2025-01-02 07:57:04 [RateCDR] => 1 ) [2025-01-02 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:57:04' and `end` < '2025-01-02 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:57:17] Production.INFO: count ==114 [2025-01-02 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:57:04 - End Time 2025-01-02 07:57:04 [2025-01-02 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156838', 'tblTempUsageDetail_20' ) start [2025-01-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156838', 'tblTempUsageDetail_20' ) end [2025-01-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156838', 'tblTempVendorCDR_20' ) start [2025-01-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156838', 'tblTempVendorCDR_20' ) end [2025-01-02 07:57:17] Production.INFO: ProcessCDR(1,14156838,1,1,2) [2025-01-02 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156838', 'tblTempUsageDetail_20' ) start [2025-01-02 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156838', 'tblTempUsageDetail_20' ) end [2025-01-02 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:57:20] Production.INFO: ==12524== Releasing lock... [2025-01-02 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:57:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:58:04 [end_date_ymd] => 2025-01-02 07:58:04 [RateCDR] => 1 ) [2025-01-02 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:58:04' and `end` < '2025-01-02 07:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:58:17] Production.INFO: count ==114 [2025-01-02 07:58:17] Production.ERROR: pbx CDR StartTime 2025-01-02 04:58:04 - End Time 2025-01-02 07:58:04 [2025-01-02 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156843', 'tblTempUsageDetail_20' ) start [2025-01-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156843', 'tblTempUsageDetail_20' ) end [2025-01-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156843', 'tblTempVendorCDR_20' ) start [2025-01-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156843', 'tblTempVendorCDR_20' ) end [2025-01-02 07:58:17] Production.INFO: ProcessCDR(1,14156843,1,1,2) [2025-01-02 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156843', 'tblTempUsageDetail_20' ) start [2025-01-02 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156843', 'tblTempUsageDetail_20' ) end [2025-01-02 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:58:20] Production.INFO: ==12613== Releasing lock... [2025-01-02 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:58:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 04:59:05 [end_date_ymd] => 2025-01-02 07:59:05 [RateCDR] => 1 ) [2025-01-02 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 04:59:05' and `end` < '2025-01-02 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 07:59:20] Production.INFO: count ==115 [2025-01-02 07:59:20] Production.ERROR: pbx CDR StartTime 2025-01-02 04:59:05 - End Time 2025-01-02 07:59:05 [2025-01-02 07:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156848', 'tblTempUsageDetail_20' ) start [2025-01-02 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156848', 'tblTempUsageDetail_20' ) end [2025-01-02 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156848', 'tblTempVendorCDR_20' ) start [2025-01-02 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156848', 'tblTempVendorCDR_20' ) end [2025-01-02 07:59:20] Production.INFO: ProcessCDR(1,14156848,1,1,2) [2025-01-02 07:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 07:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156848', 'tblTempUsageDetail_20' ) start [2025-01-02 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156848', 'tblTempUsageDetail_20' ) end [2025-01-02 07:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 07:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 07:59:24] Production.INFO: ==12714== Releasing lock... [2025-01-02 07:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 07:59:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:00:05 [end_date_ymd] => 2025-01-02 08:00:05 [RateCDR] => 1 ) [2025-01-02 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:00:05' and `end` < '2025-01-02 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:00:18] Production.INFO: count ==121 [2025-01-02 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:00:05 - End Time 2025-01-02 08:00:05 [2025-01-02 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156854', 'tblTempUsageDetail_20' ) start [2025-01-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156854', 'tblTempUsageDetail_20' ) end [2025-01-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156854', 'tblTempVendorCDR_20' ) start [2025-01-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156854', 'tblTempVendorCDR_20' ) end [2025-01-02 08:00:18] Production.INFO: ProcessCDR(1,14156854,1,1,2) [2025-01-02 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156854', 'tblTempUsageDetail_20' ) start [2025-01-02 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156854', 'tblTempUsageDetail_20' ) end [2025-01-02 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:00:21] Production.INFO: ==12816== Releasing lock... [2025-01-02 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:01:05 [end_date_ymd] => 2025-01-02 08:01:05 [RateCDR] => 1 ) [2025-01-02 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:01:05' and `end` < '2025-01-02 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:01:21] Production.INFO: count ==127 [2025-01-02 08:01:21] Production.ERROR: pbx CDR StartTime 2025-01-02 05:01:05 - End Time 2025-01-02 08:01:05 [2025-01-02 08:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156859', 'tblTempUsageDetail_20' ) start [2025-01-02 08:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156859', 'tblTempUsageDetail_20' ) end [2025-01-02 08:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156859', 'tblTempVendorCDR_20' ) start [2025-01-02 08:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156859', 'tblTempVendorCDR_20' ) end [2025-01-02 08:01:21] Production.INFO: ProcessCDR(1,14156859,1,1,2) [2025-01-02 08:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156859', 'tblTempUsageDetail_20' ) start [2025-01-02 08:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156859', 'tblTempUsageDetail_20' ) end [2025-01-02 08:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:01:26] Production.INFO: ==12927== Releasing lock... [2025-01-02 08:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:01:26] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:02:04 [end_date_ymd] => 2025-01-02 08:02:04 [RateCDR] => 1 ) [2025-01-02 08:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:02:04' and `end` < '2025-01-02 08:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:02:17] Production.INFO: count ==127 [2025-01-02 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:02:04 - End Time 2025-01-02 08:02:04 [2025-01-02 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156864', 'tblTempUsageDetail_20' ) start [2025-01-02 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156864', 'tblTempUsageDetail_20' ) end [2025-01-02 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156864', 'tblTempVendorCDR_20' ) start [2025-01-02 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156864', 'tblTempVendorCDR_20' ) end [2025-01-02 08:02:17] Production.INFO: ProcessCDR(1,14156864,1,1,2) [2025-01-02 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156864', 'tblTempUsageDetail_20' ) start [2025-01-02 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156864', 'tblTempUsageDetail_20' ) end [2025-01-02 08:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:02:20] Production.INFO: ==13023== Releasing lock... [2025-01-02 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:02:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-02 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:03:05 [end_date_ymd] => 2025-01-02 08:03:05 [RateCDR] => 1 ) [2025-01-02 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:03:05' and `end` < '2025-01-02 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:03:19] Production.INFO: count ==133 [2025-01-02 08:03:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:03:05 - End Time 2025-01-02 08:03:05 [2025-01-02 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156869', 'tblTempUsageDetail_20' ) start [2025-01-02 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156869', 'tblTempUsageDetail_20' ) end [2025-01-02 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156869', 'tblTempVendorCDR_20' ) start [2025-01-02 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156869', 'tblTempVendorCDR_20' ) end [2025-01-02 08:03:19] Production.INFO: ProcessCDR(1,14156869,1,1,2) [2025-01-02 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156869', 'tblTempUsageDetail_20' ) start [2025-01-02 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156869', 'tblTempUsageDetail_20' ) end [2025-01-02 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:03:22] Production.INFO: ==13161== Releasing lock... [2025-01-02 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:03:22] Production.INFO: 29 MB #Memory Used# [2025-01-02 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:04:05 [end_date_ymd] => 2025-01-02 08:04:05 [RateCDR] => 1 ) [2025-01-02 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:04:05' and `end` < '2025-01-02 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:04:18] Production.INFO: count ==136 [2025-01-02 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:04:05 - End Time 2025-01-02 08:04:05 [2025-01-02 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156874', 'tblTempUsageDetail_20' ) start [2025-01-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156874', 'tblTempUsageDetail_20' ) end [2025-01-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156874', 'tblTempVendorCDR_20' ) start [2025-01-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156874', 'tblTempVendorCDR_20' ) end [2025-01-02 08:04:18] Production.INFO: ProcessCDR(1,14156874,1,1,2) [2025-01-02 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156874', 'tblTempUsageDetail_20' ) start [2025-01-02 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156874', 'tblTempUsageDetail_20' ) end [2025-01-02 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:04:22] Production.INFO: ==13262== Releasing lock... [2025-01-02 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:05:05 [end_date_ymd] => 2025-01-02 08:05:05 [RateCDR] => 1 ) [2025-01-02 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:05:05' and `end` < '2025-01-02 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:05:17] Production.INFO: count ==151 [2025-01-02 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:05:05 - End Time 2025-01-02 08:05:05 [2025-01-02 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156879', 'tblTempUsageDetail_20' ) start [2025-01-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156879', 'tblTempUsageDetail_20' ) end [2025-01-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156879', 'tblTempVendorCDR_20' ) start [2025-01-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156879', 'tblTempVendorCDR_20' ) end [2025-01-02 08:05:18] Production.INFO: ProcessCDR(1,14156879,1,1,2) [2025-01-02 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156879', 'tblTempUsageDetail_20' ) start [2025-01-02 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156879', 'tblTempUsageDetail_20' ) end [2025-01-02 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:05:21] Production.INFO: ==13364== Releasing lock... [2025-01-02 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:06:05 [end_date_ymd] => 2025-01-02 08:06:05 [RateCDR] => 1 ) [2025-01-02 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:06:05' and `end` < '2025-01-02 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:06:19] Production.INFO: count ==151 [2025-01-02 08:06:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:06:05 - End Time 2025-01-02 08:06:05 [2025-01-02 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156884', 'tblTempUsageDetail_20' ) start [2025-01-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156884', 'tblTempUsageDetail_20' ) end [2025-01-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156884', 'tblTempVendorCDR_20' ) start [2025-01-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156884', 'tblTempVendorCDR_20' ) end [2025-01-02 08:06:19] Production.INFO: ProcessCDR(1,14156884,1,1,2) [2025-01-02 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156884', 'tblTempUsageDetail_20' ) start [2025-01-02 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156884', 'tblTempUsageDetail_20' ) end [2025-01-02 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:06:22] Production.INFO: ==13464== Releasing lock... [2025-01-02 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:07:04 [end_date_ymd] => 2025-01-02 08:07:04 [RateCDR] => 1 ) [2025-01-02 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:07:04' and `end` < '2025-01-02 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:07:17] Production.INFO: count ==162 [2025-01-02 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:07:04 - End Time 2025-01-02 08:07:04 [2025-01-02 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156889', 'tblTempUsageDetail_20' ) start [2025-01-02 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156889', 'tblTempUsageDetail_20' ) end [2025-01-02 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156889', 'tblTempVendorCDR_20' ) start [2025-01-02 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156889', 'tblTempVendorCDR_20' ) end [2025-01-02 08:07:17] Production.INFO: ProcessCDR(1,14156889,1,1,2) [2025-01-02 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156889', 'tblTempUsageDetail_20' ) start [2025-01-02 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156889', 'tblTempUsageDetail_20' ) end [2025-01-02 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:07:20] Production.INFO: ==13567== Releasing lock... [2025-01-02 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-02 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:08:05 [end_date_ymd] => 2025-01-02 08:08:05 [RateCDR] => 1 ) [2025-01-02 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:08:05' and `end` < '2025-01-02 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:08:17] Production.INFO: count ==183 [2025-01-02 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:08:05 - End Time 2025-01-02 08:08:05 [2025-01-02 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156891', 'tblTempUsageDetail_20' ) start [2025-01-02 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156891', 'tblTempUsageDetail_20' ) end [2025-01-02 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156891', 'tblTempVendorCDR_20' ) start [2025-01-02 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156891', 'tblTempVendorCDR_20' ) end [2025-01-02 08:08:17] Production.INFO: ProcessCDR(1,14156891,1,1,2) [2025-01-02 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156891', 'tblTempUsageDetail_20' ) start [2025-01-02 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156891', 'tblTempUsageDetail_20' ) end [2025-01-02 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:08:21] Production.INFO: ==13672== Releasing lock... [2025-01-02 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:08:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:09:05 [end_date_ymd] => 2025-01-02 08:09:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:09:05' and `end` < '2025-01-02 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-01-02 08:09:18] Production.INFO: count ==188 [2025-01-02 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:09:05 - End Time 2025-01-02 08:09:05 [2025-01-02 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156899', 'tblTempUsageDetail_20' ) start [2025-01-02 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156899', 'tblTempUsageDetail_20' ) end [2025-01-02 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156899', 'tblTempVendorCDR_20' ) start [2025-01-02 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156899', 'tblTempVendorCDR_20' ) end [2025-01-02 08:09:18] Production.INFO: ProcessCDR(1,14156899,1,1,2) [2025-01-02 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156899', 'tblTempUsageDetail_20' ) start [2025-01-02 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156899', 'tblTempUsageDetail_20' ) end [2025-01-02 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:09:21] Production.INFO: ==13778== Releasing lock... [2025-01-02 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:10:05 [end_date_ymd] => 2025-01-02 08:10:05 [RateCDR] => 1 ) [2025-01-02 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:10:05' and `end` < '2025-01-02 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:10:18] Production.INFO: count ==215 [2025-01-02 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:10:05 - End Time 2025-01-02 08:10:05 [2025-01-02 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156905', 'tblTempUsageDetail_20' ) start [2025-01-02 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156905', 'tblTempUsageDetail_20' ) end [2025-01-02 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156905', 'tblTempVendorCDR_20' ) start [2025-01-02 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156905', 'tblTempVendorCDR_20' ) end [2025-01-02 08:10:18] Production.INFO: ProcessCDR(1,14156905,1,1,2) [2025-01-02 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156905', 'tblTempUsageDetail_20' ) start [2025-01-02 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156905', 'tblTempUsageDetail_20' ) end [2025-01-02 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:10:21] Production.INFO: ==13890== Releasing lock... [2025-01-02 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:10:21] Production.INFO: 30 MB #Memory Used# [2025-01-02 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:11:05 [end_date_ymd] => 2025-01-02 08:11:05 [RateCDR] => 1 ) [2025-01-02 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:11:05' and `end` < '2025-01-02 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:11:18] Production.INFO: count ==227 [2025-01-02 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:11:05 - End Time 2025-01-02 08:11:05 [2025-01-02 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156910', 'tblTempUsageDetail_20' ) start [2025-01-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156910', 'tblTempUsageDetail_20' ) end [2025-01-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156910', 'tblTempVendorCDR_20' ) start [2025-01-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156910', 'tblTempVendorCDR_20' ) end [2025-01-02 08:11:18] Production.INFO: ProcessCDR(1,14156910,1,1,2) [2025-01-02 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156910', 'tblTempUsageDetail_20' ) start [2025-01-02 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156910', 'tblTempUsageDetail_20' ) end [2025-01-02 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:11:21] Production.INFO: ==13999== Releasing lock... [2025-01-02 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:12:04 [end_date_ymd] => 2025-01-02 08:12:04 [RateCDR] => 1 ) [2025-01-02 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:12:04' and `end` < '2025-01-02 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:12:18] Production.INFO: count ==240 [2025-01-02 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:12:04 - End Time 2025-01-02 08:12:04 [2025-01-02 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156915', 'tblTempUsageDetail_20' ) start [2025-01-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156915', 'tblTempUsageDetail_20' ) end [2025-01-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156915', 'tblTempVendorCDR_20' ) start [2025-01-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156915', 'tblTempVendorCDR_20' ) end [2025-01-02 08:12:18] Production.INFO: ProcessCDR(1,14156915,1,1,2) [2025-01-02 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156915', 'tblTempUsageDetail_20' ) start [2025-01-02 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156915', 'tblTempUsageDetail_20' ) end [2025-01-02 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:12:22] Production.INFO: ==14105== Releasing lock... [2025-01-02 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:13:05 [end_date_ymd] => 2025-01-02 08:13:05 [RateCDR] => 1 ) [2025-01-02 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:13:05' and `end` < '2025-01-02 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:13:17] Production.INFO: count ==241 [2025-01-02 08:13:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:13:05 - End Time 2025-01-02 08:13:05 [2025-01-02 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156920', 'tblTempUsageDetail_20' ) start [2025-01-02 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156920', 'tblTempUsageDetail_20' ) end [2025-01-02 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156920', 'tblTempVendorCDR_20' ) start [2025-01-02 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156920', 'tblTempVendorCDR_20' ) end [2025-01-02 08:13:17] Production.INFO: ProcessCDR(1,14156920,1,1,2) [2025-01-02 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156920', 'tblTempUsageDetail_20' ) start [2025-01-02 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156920', 'tblTempUsageDetail_20' ) end [2025-01-02 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:13:22] Production.INFO: ==14213== Releasing lock... [2025-01-02 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-02 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:14:05 [end_date_ymd] => 2025-01-02 08:14:05 [RateCDR] => 1 ) [2025-01-02 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:14:05' and `end` < '2025-01-02 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:14:18] Production.INFO: count ==252 [2025-01-02 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:14:05 - End Time 2025-01-02 08:14:05 [2025-01-02 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156925', 'tblTempUsageDetail_20' ) start [2025-01-02 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156925', 'tblTempUsageDetail_20' ) end [2025-01-02 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156925', 'tblTempVendorCDR_20' ) start [2025-01-02 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156925', 'tblTempVendorCDR_20' ) end [2025-01-02 08:14:18] Production.INFO: ProcessCDR(1,14156925,1,1,2) [2025-01-02 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156925', 'tblTempUsageDetail_20' ) start [2025-01-02 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156925', 'tblTempUsageDetail_20' ) end [2025-01-02 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:14:22] Production.INFO: ==14322== Releasing lock... [2025-01-02 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-02 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:15:04 [end_date_ymd] => 2025-01-02 08:15:04 [RateCDR] => 1 ) [2025-01-02 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:15:04' and `end` < '2025-01-02 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:15:17] Production.INFO: count ==263 [2025-01-02 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:15:04 - End Time 2025-01-02 08:15:04 [2025-01-02 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156930', 'tblTempUsageDetail_20' ) start [2025-01-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156930', 'tblTempUsageDetail_20' ) end [2025-01-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156930', 'tblTempVendorCDR_20' ) start [2025-01-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156930', 'tblTempVendorCDR_20' ) end [2025-01-02 08:15:17] Production.INFO: ProcessCDR(1,14156930,1,1,2) [2025-01-02 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156930', 'tblTempUsageDetail_20' ) start [2025-01-02 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156930', 'tblTempUsageDetail_20' ) end [2025-01-02 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:15:20] Production.INFO: ==14429== Releasing lock... [2025-01-02 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:16:05 [end_date_ymd] => 2025-01-02 08:16:05 [RateCDR] => 1 ) [2025-01-02 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:16:05' and `end` < '2025-01-02 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:16:17] Production.INFO: count ==267 [2025-01-02 08:16:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:16:05 - End Time 2025-01-02 08:16:05 [2025-01-02 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156935', 'tblTempUsageDetail_20' ) start [2025-01-02 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156935', 'tblTempUsageDetail_20' ) end [2025-01-02 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156935', 'tblTempVendorCDR_20' ) start [2025-01-02 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156935', 'tblTempVendorCDR_20' ) end [2025-01-02 08:16:17] Production.INFO: ProcessCDR(1,14156935,1,1,2) [2025-01-02 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156935', 'tblTempUsageDetail_20' ) start [2025-01-02 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156935', 'tblTempUsageDetail_20' ) end [2025-01-02 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:16:22] Production.INFO: ==14516== Releasing lock... [2025-01-02 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:16:22] Production.INFO: 31 MB #Memory Used# [2025-01-02 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:17:04 [end_date_ymd] => 2025-01-02 08:17:04 [RateCDR] => 1 ) [2025-01-02 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:17:04' and `end` < '2025-01-02 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:17:17] Production.INFO: count ==277 [2025-01-02 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:17:04 - End Time 2025-01-02 08:17:04 [2025-01-02 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156940', 'tblTempUsageDetail_20' ) start [2025-01-02 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156940', 'tblTempUsageDetail_20' ) end [2025-01-02 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156940', 'tblTempVendorCDR_20' ) start [2025-01-02 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156940', 'tblTempVendorCDR_20' ) end [2025-01-02 08:17:17] Production.INFO: ProcessCDR(1,14156940,1,1,2) [2025-01-02 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156940', 'tblTempUsageDetail_20' ) start [2025-01-02 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156940', 'tblTempUsageDetail_20' ) end [2025-01-02 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:17:20] Production.INFO: ==14605== Releasing lock... [2025-01-02 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:18:05 [end_date_ymd] => 2025-01-02 08:18:05 [RateCDR] => 1 ) [2025-01-02 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:18:05' and `end` < '2025-01-02 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:18:17] Production.INFO: count ==278 [2025-01-02 08:18:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:18:05 - End Time 2025-01-02 08:18:05 [2025-01-02 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156945', 'tblTempUsageDetail_20' ) start [2025-01-02 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156945', 'tblTempUsageDetail_20' ) end [2025-01-02 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156945', 'tblTempVendorCDR_20' ) start [2025-01-02 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156945', 'tblTempVendorCDR_20' ) end [2025-01-02 08:18:17] Production.INFO: ProcessCDR(1,14156945,1,1,2) [2025-01-02 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156945', 'tblTempUsageDetail_20' ) start [2025-01-02 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156945', 'tblTempUsageDetail_20' ) end [2025-01-02 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:18:22] Production.INFO: ==14727== Releasing lock... [2025-01-02 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-02 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:19:05 [end_date_ymd] => 2025-01-02 08:19:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:19:05' and `end` < '2025-01-02 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-01-02 08:19:17] Production.INFO: count ==282 [2025-01-02 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:19:05 - End Time 2025-01-02 08:19:05 [2025-01-02 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156950', 'tblTempUsageDetail_20' ) start [2025-01-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156950', 'tblTempUsageDetail_20' ) end [2025-01-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156950', 'tblTempVendorCDR_20' ) start [2025-01-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156950', 'tblTempVendorCDR_20' ) end [2025-01-02 08:19:18] Production.INFO: ProcessCDR(1,14156950,1,1,2) [2025-01-02 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156950', 'tblTempUsageDetail_20' ) start [2025-01-02 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156950', 'tblTempUsageDetail_20' ) end [2025-01-02 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:19:21] Production.INFO: ==14807== Releasing lock... [2025-01-02 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:20:05 [end_date_ymd] => 2025-01-02 08:20:05 [RateCDR] => 1 ) [2025-01-02 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:20:05' and `end` < '2025-01-02 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:20:18] Production.INFO: count ==291 [2025-01-02 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:20:05 - End Time 2025-01-02 08:20:05 [2025-01-02 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156956', 'tblTempUsageDetail_20' ) start [2025-01-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156956', 'tblTempUsageDetail_20' ) end [2025-01-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156956', 'tblTempVendorCDR_20' ) start [2025-01-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156956', 'tblTempVendorCDR_20' ) end [2025-01-02 08:20:18] Production.INFO: ProcessCDR(1,14156956,1,1,2) [2025-01-02 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156956', 'tblTempUsageDetail_20' ) start [2025-01-02 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156956', 'tblTempUsageDetail_20' ) end [2025-01-02 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:20:21] Production.INFO: ==14891== Releasing lock... [2025-01-02 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:21:05 [end_date_ymd] => 2025-01-02 08:21:05 [RateCDR] => 1 ) [2025-01-02 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:21:05' and `end` < '2025-01-02 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:21:19] Production.INFO: count ==326 [2025-01-02 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:21:05 - End Time 2025-01-02 08:21:05 [2025-01-02 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156960', 'tblTempUsageDetail_20' ) start [2025-01-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156960', 'tblTempUsageDetail_20' ) end [2025-01-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156960', 'tblTempVendorCDR_20' ) start [2025-01-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156960', 'tblTempVendorCDR_20' ) end [2025-01-02 08:21:19] Production.INFO: ProcessCDR(1,14156960,1,1,2) [2025-01-02 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156960', 'tblTempUsageDetail_20' ) start [2025-01-02 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156960', 'tblTempUsageDetail_20' ) end [2025-01-02 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:21:22] Production.INFO: ==14976== Releasing lock... [2025-01-02 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:22:04 [end_date_ymd] => 2025-01-02 08:22:04 [RateCDR] => 1 ) [2025-01-02 08:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:22:04' and `end` < '2025-01-02 08:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:22:18] Production.INFO: count ==336 [2025-01-02 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:22:04 - End Time 2025-01-02 08:22:04 [2025-01-02 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156966', 'tblTempUsageDetail_20' ) start [2025-01-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156966', 'tblTempUsageDetail_20' ) end [2025-01-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156966', 'tblTempVendorCDR_20' ) start [2025-01-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156966', 'tblTempVendorCDR_20' ) end [2025-01-02 08:22:18] Production.INFO: ProcessCDR(1,14156966,1,1,2) [2025-01-02 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156966', 'tblTempUsageDetail_20' ) start [2025-01-02 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156966', 'tblTempUsageDetail_20' ) end [2025-01-02 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:22:21] Production.INFO: ==15052== Releasing lock... [2025-01-02 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:23:05 [end_date_ymd] => 2025-01-02 08:23:05 [RateCDR] => 1 ) [2025-01-02 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:23:05' and `end` < '2025-01-02 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:23:18] Production.INFO: count ==336 [2025-01-02 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:23:05 - End Time 2025-01-02 08:23:05 [2025-01-02 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156971', 'tblTempUsageDetail_20' ) start [2025-01-02 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156971', 'tblTempUsageDetail_20' ) end [2025-01-02 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156971', 'tblTempVendorCDR_20' ) start [2025-01-02 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156971', 'tblTempVendorCDR_20' ) end [2025-01-02 08:23:18] Production.INFO: ProcessCDR(1,14156971,1,1,2) [2025-01-02 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156971', 'tblTempUsageDetail_20' ) start [2025-01-02 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156971', 'tblTempUsageDetail_20' ) end [2025-01-02 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:23:21] Production.INFO: ==15139== Releasing lock... [2025-01-02 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:24:05 [end_date_ymd] => 2025-01-02 08:24:05 [RateCDR] => 1 ) [2025-01-02 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:24:05' and `end` < '2025-01-02 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:24:19] Production.INFO: count ==350 [2025-01-02 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:24:05 - End Time 2025-01-02 08:24:05 [2025-01-02 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156976', 'tblTempUsageDetail_20' ) start [2025-01-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156976', 'tblTempUsageDetail_20' ) end [2025-01-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156976', 'tblTempVendorCDR_20' ) start [2025-01-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156976', 'tblTempVendorCDR_20' ) end [2025-01-02 08:24:19] Production.INFO: ProcessCDR(1,14156976,1,1,2) [2025-01-02 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156976', 'tblTempUsageDetail_20' ) start [2025-01-02 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156976', 'tblTempUsageDetail_20' ) end [2025-01-02 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:24:22] Production.INFO: ==15224== Releasing lock... [2025-01-02 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:25:04 [end_date_ymd] => 2025-01-02 08:25:04 [RateCDR] => 1 ) [2025-01-02 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:25:04' and `end` < '2025-01-02 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:25:17] Production.INFO: count ==371 [2025-01-02 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:25:04 - End Time 2025-01-02 08:25:04 [2025-01-02 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156981', 'tblTempUsageDetail_20' ) start [2025-01-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156981', 'tblTempUsageDetail_20' ) end [2025-01-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156981', 'tblTempVendorCDR_20' ) start [2025-01-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156981', 'tblTempVendorCDR_20' ) end [2025-01-02 08:25:17] Production.INFO: ProcessCDR(1,14156981,1,1,2) [2025-01-02 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156981', 'tblTempUsageDetail_20' ) start [2025-01-02 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156981', 'tblTempUsageDetail_20' ) end [2025-01-02 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:25:20] Production.INFO: ==15306== Releasing lock... [2025-01-02 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:25:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:26:05 [end_date_ymd] => 2025-01-02 08:26:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:26:05' and `end` < '2025-01-02 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-01-02 08:26:18] Production.INFO: count ==379 [2025-01-02 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:26:05 - End Time 2025-01-02 08:26:05 [2025-01-02 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156986', 'tblTempUsageDetail_20' ) start [2025-01-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156986', 'tblTempUsageDetail_20' ) end [2025-01-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156986', 'tblTempVendorCDR_20' ) start [2025-01-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156986', 'tblTempVendorCDR_20' ) end [2025-01-02 08:26:18] Production.INFO: ProcessCDR(1,14156986,1,1,2) [2025-01-02 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156986', 'tblTempUsageDetail_20' ) start [2025-01-02 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156986', 'tblTempUsageDetail_20' ) end [2025-01-02 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:26:22] Production.INFO: ==15385== Releasing lock... [2025-01-02 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-02 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:27:04 [end_date_ymd] => 2025-01-02 08:27:04 [RateCDR] => 1 ) [2025-01-02 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:27:04' and `end` < '2025-01-02 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:27:17] Production.INFO: count ==382 [2025-01-02 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:27:04 - End Time 2025-01-02 08:27:04 [2025-01-02 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156991', 'tblTempUsageDetail_20' ) start [2025-01-02 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156991', 'tblTempUsageDetail_20' ) end [2025-01-02 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156991', 'tblTempVendorCDR_20' ) start [2025-01-02 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156991', 'tblTempVendorCDR_20' ) end [2025-01-02 08:27:17] Production.INFO: ProcessCDR(1,14156991,1,1,2) [2025-01-02 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156991', 'tblTempUsageDetail_20' ) start [2025-01-02 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156991', 'tblTempUsageDetail_20' ) end [2025-01-02 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:27:22] Production.INFO: ==15463== Releasing lock... [2025-01-02 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:28:05 [end_date_ymd] => 2025-01-02 08:28:05 [RateCDR] => 1 ) [2025-01-02 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:28:05' and `end` < '2025-01-02 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:28:18] Production.INFO: count ==389 [2025-01-02 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:28:05 - End Time 2025-01-02 08:28:05 [2025-01-02 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156996', 'tblTempUsageDetail_20' ) start [2025-01-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14156996', 'tblTempUsageDetail_20' ) end [2025-01-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156996', 'tblTempVendorCDR_20' ) start [2025-01-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14156996', 'tblTempVendorCDR_20' ) end [2025-01-02 08:28:18] Production.INFO: ProcessCDR(1,14156996,1,1,2) [2025-01-02 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14156996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14156996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14156996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14156996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156996', 'tblTempUsageDetail_20' ) start [2025-01-02 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14156996', 'tblTempUsageDetail_20' ) end [2025-01-02 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:28:21] Production.INFO: ==15538== Releasing lock... [2025-01-02 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:29:05 [end_date_ymd] => 2025-01-02 08:29:05 [RateCDR] => 1 ) [2025-01-02 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:29:05' and `end` < '2025-01-02 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:29:18] Production.INFO: count ==401 [2025-01-02 08:29:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:29:05 - End Time 2025-01-02 08:29:05 [2025-01-02 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157001', 'tblTempUsageDetail_20' ) start [2025-01-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157001', 'tblTempUsageDetail_20' ) end [2025-01-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157001', 'tblTempVendorCDR_20' ) start [2025-01-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157001', 'tblTempVendorCDR_20' ) end [2025-01-02 08:29:19] Production.INFO: ProcessCDR(1,14157001,1,1,2) [2025-01-02 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157001', 'tblTempUsageDetail_20' ) start [2025-01-02 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157001', 'tblTempUsageDetail_20' ) end [2025-01-02 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:29:22] Production.INFO: ==15612== Releasing lock... [2025-01-02 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:30:05 [end_date_ymd] => 2025-01-02 08:30:05 [RateCDR] => 1 ) [2025-01-02 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:30:05' and `end` < '2025-01-02 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:30:18] Production.INFO: count ==409 [2025-01-02 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:30:05 - End Time 2025-01-02 08:30:05 [2025-01-02 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157007', 'tblTempUsageDetail_20' ) start [2025-01-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157007', 'tblTempUsageDetail_20' ) end [2025-01-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157007', 'tblTempVendorCDR_20' ) start [2025-01-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157007', 'tblTempVendorCDR_20' ) end [2025-01-02 08:30:18] Production.INFO: ProcessCDR(1,14157007,1,1,2) [2025-01-02 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157007', 'tblTempUsageDetail_20' ) start [2025-01-02 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157007', 'tblTempUsageDetail_20' ) end [2025-01-02 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:30:22] Production.INFO: ==15684== Releasing lock... [2025-01-02 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:31:05 [end_date_ymd] => 2025-01-02 08:31:05 [RateCDR] => 1 ) [2025-01-02 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:31:05' and `end` < '2025-01-02 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:31:18] Production.INFO: count ==435 [2025-01-02 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:31:05 - End Time 2025-01-02 08:31:05 [2025-01-02 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157012', 'tblTempUsageDetail_20' ) start [2025-01-02 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157012', 'tblTempUsageDetail_20' ) end [2025-01-02 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157012', 'tblTempVendorCDR_20' ) start [2025-01-02 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157012', 'tblTempVendorCDR_20' ) end [2025-01-02 08:31:18] Production.INFO: ProcessCDR(1,14157012,1,1,2) [2025-01-02 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157012', 'tblTempUsageDetail_20' ) start [2025-01-02 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157012', 'tblTempUsageDetail_20' ) end [2025-01-02 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:31:21] Production.INFO: ==15762== Releasing lock... [2025-01-02 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:32:04 [end_date_ymd] => 2025-01-02 08:32:04 [RateCDR] => 1 ) [2025-01-02 08:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:32:04' and `end` < '2025-01-02 08:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:32:17] Production.INFO: count ==436 [2025-01-02 08:32:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:32:04 - End Time 2025-01-02 08:32:04 [2025-01-02 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157017', 'tblTempUsageDetail_20' ) start [2025-01-02 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157017', 'tblTempUsageDetail_20' ) end [2025-01-02 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157017', 'tblTempVendorCDR_20' ) start [2025-01-02 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157017', 'tblTempVendorCDR_20' ) end [2025-01-02 08:32:17] Production.INFO: ProcessCDR(1,14157017,1,1,2) [2025-01-02 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157017', 'tblTempUsageDetail_20' ) start [2025-01-02 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157017', 'tblTempUsageDetail_20' ) end [2025-01-02 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:32:21] Production.INFO: ==15837== Releasing lock... [2025-01-02 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:33:05 [end_date_ymd] => 2025-01-02 08:33:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:33:05' and `end` < '2025-01-02 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-01-02 08:33:19] Production.INFO: count ==444 [2025-01-02 08:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:33:05 - End Time 2025-01-02 08:33:05 [2025-01-02 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157022', 'tblTempUsageDetail_20' ) start [2025-01-02 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157022', 'tblTempUsageDetail_20' ) end [2025-01-02 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157022', 'tblTempVendorCDR_20' ) start [2025-01-02 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157022', 'tblTempVendorCDR_20' ) end [2025-01-02 08:33:19] Production.INFO: ProcessCDR(1,14157022,1,1,2) [2025-01-02 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157022', 'tblTempUsageDetail_20' ) start [2025-01-02 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157022', 'tblTempUsageDetail_20' ) end [2025-01-02 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:33:23] Production.INFO: ==15914== Releasing lock... [2025-01-02 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:33:23] Production.INFO: 32 MB #Memory Used# [2025-01-02 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:34:05 [end_date_ymd] => 2025-01-02 08:34:05 [RateCDR] => 1 ) [2025-01-02 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:34:05' and `end` < '2025-01-02 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:34:19] Production.INFO: count ==450 [2025-01-02 08:34:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:34:05 - End Time 2025-01-02 08:34:05 [2025-01-02 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157027', 'tblTempUsageDetail_20' ) start [2025-01-02 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157027', 'tblTempUsageDetail_20' ) end [2025-01-02 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157027', 'tblTempVendorCDR_20' ) start [2025-01-02 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157027', 'tblTempVendorCDR_20' ) end [2025-01-02 08:34:19] Production.INFO: ProcessCDR(1,14157027,1,1,2) [2025-01-02 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157027', 'tblTempUsageDetail_20' ) start [2025-01-02 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157027', 'tblTempUsageDetail_20' ) end [2025-01-02 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:34:22] Production.INFO: ==16024== Releasing lock... [2025-01-02 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:35:05 [end_date_ymd] => 2025-01-02 08:35:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:35:05' and `end` < '2025-01-02 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-01-02 08:35:17] Production.INFO: count ==457 [2025-01-02 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:35:05 - End Time 2025-01-02 08:35:05 [2025-01-02 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157032', 'tblTempUsageDetail_20' ) start [2025-01-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157032', 'tblTempUsageDetail_20' ) end [2025-01-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157032', 'tblTempVendorCDR_20' ) start [2025-01-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157032', 'tblTempVendorCDR_20' ) end [2025-01-02 08:35:17] Production.INFO: ProcessCDR(1,14157032,1,1,2) [2025-01-02 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157032', 'tblTempUsageDetail_20' ) start [2025-01-02 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157032', 'tblTempUsageDetail_20' ) end [2025-01-02 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:35:21] Production.INFO: ==16098== Releasing lock... [2025-01-02 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:36:05 [end_date_ymd] => 2025-01-02 08:36:05 [RateCDR] => 1 ) [2025-01-02 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:36:05' and `end` < '2025-01-02 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:36:19] Production.INFO: count ==479 [2025-01-02 08:36:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:36:05 - End Time 2025-01-02 08:36:05 [2025-01-02 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157037', 'tblTempUsageDetail_20' ) start [2025-01-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157037', 'tblTempUsageDetail_20' ) end [2025-01-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157037', 'tblTempVendorCDR_20' ) start [2025-01-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157037', 'tblTempVendorCDR_20' ) end [2025-01-02 08:36:19] Production.INFO: ProcessCDR(1,14157037,1,1,2) [2025-01-02 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157037', 'tblTempUsageDetail_20' ) start [2025-01-02 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157037', 'tblTempUsageDetail_20' ) end [2025-01-02 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:36:22] Production.INFO: ==16171== Releasing lock... [2025-01-02 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:36:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:37:05 [end_date_ymd] => 2025-01-02 08:37:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:37:05' and `end` < '2025-01-02 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-01-02 08:37:17] Production.INFO: count ==487 [2025-01-02 08:37:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:37:05 - End Time 2025-01-02 08:37:05 [2025-01-02 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157042', 'tblTempUsageDetail_20' ) start [2025-01-02 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157042', 'tblTempUsageDetail_20' ) end [2025-01-02 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157042', 'tblTempVendorCDR_20' ) start [2025-01-02 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157042', 'tblTempVendorCDR_20' ) end [2025-01-02 08:37:17] Production.INFO: ProcessCDR(1,14157042,1,1,2) [2025-01-02 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157042', 'tblTempUsageDetail_20' ) start [2025-01-02 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157042', 'tblTempUsageDetail_20' ) end [2025-01-02 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:37:22] Production.INFO: ==16247== Releasing lock... [2025-01-02 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:38:05 [end_date_ymd] => 2025-01-02 08:38:05 [RateCDR] => 1 ) [2025-01-02 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:38:05' and `end` < '2025-01-02 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:38:17] Production.INFO: count ==496 [2025-01-02 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:38:05 - End Time 2025-01-02 08:38:05 [2025-01-02 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157047', 'tblTempUsageDetail_20' ) start [2025-01-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157047', 'tblTempUsageDetail_20' ) end [2025-01-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157047', 'tblTempVendorCDR_20' ) start [2025-01-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157047', 'tblTempVendorCDR_20' ) end [2025-01-02 08:38:18] Production.INFO: ProcessCDR(1,14157047,1,1,2) [2025-01-02 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157047', 'tblTempUsageDetail_20' ) start [2025-01-02 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157047', 'tblTempUsageDetail_20' ) end [2025-01-02 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:38:22] Production.INFO: ==16317== Releasing lock... [2025-01-02 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:38:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:39:05 [end_date_ymd] => 2025-01-02 08:39:05 [RateCDR] => 1 ) [2025-01-02 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:39:05' and `end` < '2025-01-02 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:39:17] Production.INFO: count ==510 [2025-01-02 08:39:17] Production.ERROR: pbx CDR StartTime 2025-01-02 05:39:05 - End Time 2025-01-02 08:39:05 [2025-01-02 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157052', 'tblTempUsageDetail_20' ) start [2025-01-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157052', 'tblTempUsageDetail_20' ) end [2025-01-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157052', 'tblTempVendorCDR_20' ) start [2025-01-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157052', 'tblTempVendorCDR_20' ) end [2025-01-02 08:39:18] Production.INFO: ProcessCDR(1,14157052,1,1,2) [2025-01-02 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157052', 'tblTempUsageDetail_20' ) start [2025-01-02 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157052', 'tblTempUsageDetail_20' ) end [2025-01-02 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:39:21] Production.INFO: ==16389== Releasing lock... [2025-01-02 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:40:05 [end_date_ymd] => 2025-01-02 08:40:05 [RateCDR] => 1 ) [2025-01-02 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:40:05' and `end` < '2025-01-02 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:40:18] Production.INFO: count ==550 [2025-01-02 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:40:05 - End Time 2025-01-02 08:40:05 [2025-01-02 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157058', 'tblTempUsageDetail_20' ) start [2025-01-02 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157058', 'tblTempUsageDetail_20' ) end [2025-01-02 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157058', 'tblTempVendorCDR_20' ) start [2025-01-02 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157058', 'tblTempVendorCDR_20' ) end [2025-01-02 08:40:18] Production.INFO: ProcessCDR(1,14157058,1,1,2) [2025-01-02 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157058', 'tblTempUsageDetail_20' ) start [2025-01-02 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157058', 'tblTempUsageDetail_20' ) end [2025-01-02 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:40:21] Production.INFO: ==16462== Releasing lock... [2025-01-02 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:41:05 [end_date_ymd] => 2025-01-02 08:41:05 [RateCDR] => 1 ) [2025-01-02 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:41:05' and `end` < '2025-01-02 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:41:18] Production.INFO: count ==566 [2025-01-02 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:41:05 - End Time 2025-01-02 08:41:05 [2025-01-02 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157063', 'tblTempUsageDetail_20' ) start [2025-01-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157063', 'tblTempUsageDetail_20' ) end [2025-01-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157063', 'tblTempVendorCDR_20' ) start [2025-01-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157063', 'tblTempVendorCDR_20' ) end [2025-01-02 08:41:18] Production.INFO: ProcessCDR(1,14157063,1,1,2) [2025-01-02 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157063', 'tblTempUsageDetail_20' ) start [2025-01-02 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157063', 'tblTempUsageDetail_20' ) end [2025-01-02 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:41:21] Production.INFO: ==16536== Releasing lock... [2025-01-02 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:42:05 [end_date_ymd] => 2025-01-02 08:42:05 [RateCDR] => 1 ) [2025-01-02 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:42:05' and `end` < '2025-01-02 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:42:17] Production.INFO: count ==570 [2025-01-02 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:42:05 - End Time 2025-01-02 08:42:05 [2025-01-02 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157068', 'tblTempUsageDetail_20' ) start [2025-01-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157068', 'tblTempUsageDetail_20' ) end [2025-01-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157068', 'tblTempVendorCDR_20' ) start [2025-01-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157068', 'tblTempVendorCDR_20' ) end [2025-01-02 08:42:18] Production.INFO: ProcessCDR(1,14157068,1,1,2) [2025-01-02 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157068', 'tblTempUsageDetail_20' ) start [2025-01-02 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157068', 'tblTempUsageDetail_20' ) end [2025-01-02 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:42:21] Production.INFO: ==16608== Releasing lock... [2025-01-02 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:43:05 [end_date_ymd] => 2025-01-02 08:43:05 [RateCDR] => 1 ) [2025-01-02 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:43:05' and `end` < '2025-01-02 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:43:17] Production.INFO: count ==589 [2025-01-02 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:43:05 - End Time 2025-01-02 08:43:05 [2025-01-02 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157073', 'tblTempUsageDetail_20' ) start [2025-01-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157073', 'tblTempUsageDetail_20' ) end [2025-01-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157073', 'tblTempVendorCDR_20' ) start [2025-01-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157073', 'tblTempVendorCDR_20' ) end [2025-01-02 08:43:18] Production.INFO: ProcessCDR(1,14157073,1,1,2) [2025-01-02 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157073', 'tblTempUsageDetail_20' ) start [2025-01-02 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157073', 'tblTempUsageDetail_20' ) end [2025-01-02 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:43:21] Production.INFO: ==16679== Releasing lock... [2025-01-02 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:44:05 [end_date_ymd] => 2025-01-02 08:44:05 [RateCDR] => 1 ) [2025-01-02 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:44:05' and `end` < '2025-01-02 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:44:17] Production.INFO: count ==606 [2025-01-02 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:44:05 - End Time 2025-01-02 08:44:05 [2025-01-02 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157078', 'tblTempUsageDetail_20' ) start [2025-01-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157078', 'tblTempUsageDetail_20' ) end [2025-01-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157078', 'tblTempVendorCDR_20' ) start [2025-01-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157078', 'tblTempVendorCDR_20' ) end [2025-01-02 08:44:18] Production.INFO: ProcessCDR(1,14157078,1,1,2) [2025-01-02 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157078', 'tblTempUsageDetail_20' ) start [2025-01-02 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157078', 'tblTempUsageDetail_20' ) end [2025-01-02 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:44:21] Production.INFO: ==16750== Releasing lock... [2025-01-02 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:45:05 [end_date_ymd] => 2025-01-02 08:45:05 [RateCDR] => 1 ) [2025-01-02 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:45:05' and `end` < '2025-01-02 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:45:18] Production.INFO: count ==614 [2025-01-02 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:45:05 - End Time 2025-01-02 08:45:05 [2025-01-02 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157083', 'tblTempUsageDetail_20' ) start [2025-01-02 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157083', 'tblTempUsageDetail_20' ) end [2025-01-02 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157083', 'tblTempVendorCDR_20' ) start [2025-01-02 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157083', 'tblTempVendorCDR_20' ) end [2025-01-02 08:45:18] Production.INFO: ProcessCDR(1,14157083,1,1,2) [2025-01-02 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157083', 'tblTempUsageDetail_20' ) start [2025-01-02 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157083', 'tblTempUsageDetail_20' ) end [2025-01-02 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:45:23] Production.INFO: ==16820== Releasing lock... [2025-01-02 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:46:05 [end_date_ymd] => 2025-01-02 08:46:05 [RateCDR] => 1 ) [2025-01-02 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:46:05' and `end` < '2025-01-02 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:46:18] Production.INFO: count ==614 [2025-01-02 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:46:05 - End Time 2025-01-02 08:46:05 [2025-01-02 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157088', 'tblTempUsageDetail_20' ) start [2025-01-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157088', 'tblTempUsageDetail_20' ) end [2025-01-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157088', 'tblTempVendorCDR_20' ) start [2025-01-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157088', 'tblTempVendorCDR_20' ) end [2025-01-02 08:46:18] Production.INFO: ProcessCDR(1,14157088,1,1,2) [2025-01-02 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157088', 'tblTempUsageDetail_20' ) start [2025-01-02 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157088', 'tblTempUsageDetail_20' ) end [2025-01-02 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:46:21] Production.INFO: ==16894== Releasing lock... [2025-01-02 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:47:05 [end_date_ymd] => 2025-01-02 08:47:05 [RateCDR] => 1 ) [2025-01-02 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:47:05' and `end` < '2025-01-02 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:47:18] Production.INFO: count ==623 [2025-01-02 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:47:05 - End Time 2025-01-02 08:47:05 [2025-01-02 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157093', 'tblTempUsageDetail_20' ) start [2025-01-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157093', 'tblTempUsageDetail_20' ) end [2025-01-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157093', 'tblTempVendorCDR_20' ) start [2025-01-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157093', 'tblTempVendorCDR_20' ) end [2025-01-02 08:47:18] Production.INFO: ProcessCDR(1,14157093,1,1,2) [2025-01-02 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157093', 'tblTempUsageDetail_20' ) start [2025-01-02 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157093', 'tblTempUsageDetail_20' ) end [2025-01-02 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:47:21] Production.INFO: ==16966== Releasing lock... [2025-01-02 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:48:05 [end_date_ymd] => 2025-01-02 08:48:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 05:48:05' and `end` < '2025-01-02 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-01-02 08:48:17] Production.INFO: count ==627 [2025-01-02 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:48:05 - End Time 2025-01-02 08:48:05 [2025-01-02 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157098', 'tblTempUsageDetail_20' ) start [2025-01-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157098', 'tblTempUsageDetail_20' ) end [2025-01-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157098', 'tblTempVendorCDR_20' ) start [2025-01-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157098', 'tblTempVendorCDR_20' ) end [2025-01-02 08:48:18] Production.INFO: ProcessCDR(1,14157098,1,1,2) [2025-01-02 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157098', 'tblTempUsageDetail_20' ) start [2025-01-02 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157098', 'tblTempUsageDetail_20' ) end [2025-01-02 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:48:22] Production.INFO: ==17041== Releasing lock... [2025-01-02 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:49:05 [end_date_ymd] => 2025-01-02 08:49:05 [RateCDR] => 1 ) [2025-01-02 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:49:05' and `end` < '2025-01-02 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:49:18] Production.INFO: count ==647 [2025-01-02 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:49:05 - End Time 2025-01-02 08:49:05 [2025-01-02 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157103', 'tblTempUsageDetail_20' ) start [2025-01-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157103', 'tblTempUsageDetail_20' ) end [2025-01-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157103', 'tblTempVendorCDR_20' ) start [2025-01-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157103', 'tblTempVendorCDR_20' ) end [2025-01-02 08:49:18] Production.INFO: ProcessCDR(1,14157103,1,1,2) [2025-01-02 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157103', 'tblTempUsageDetail_20' ) start [2025-01-02 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157103', 'tblTempUsageDetail_20' ) end [2025-01-02 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:49:23] Production.INFO: ==17118== Releasing lock... [2025-01-02 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:49:23] Production.INFO: 33 MB #Memory Used# [2025-01-02 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:50:05 [end_date_ymd] => 2025-01-02 08:50:05 [RateCDR] => 1 ) [2025-01-02 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:50:05' and `end` < '2025-01-02 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:50:18] Production.INFO: count ==653 [2025-01-02 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:50:05 - End Time 2025-01-02 08:50:05 [2025-01-02 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157108', 'tblTempUsageDetail_20' ) start [2025-01-02 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157108', 'tblTempUsageDetail_20' ) end [2025-01-02 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157108', 'tblTempVendorCDR_20' ) start [2025-01-02 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157108', 'tblTempVendorCDR_20' ) end [2025-01-02 08:50:18] Production.INFO: ProcessCDR(1,14157108,1,1,2) [2025-01-02 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157108', 'tblTempUsageDetail_20' ) start [2025-01-02 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157108', 'tblTempUsageDetail_20' ) end [2025-01-02 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:50:21] Production.INFO: ==17236== Releasing lock... [2025-01-02 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-02 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:51:05 [end_date_ymd] => 2025-01-02 08:51:05 [RateCDR] => 1 ) [2025-01-02 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:51:05' and `end` < '2025-01-02 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:51:18] Production.INFO: count ==668 [2025-01-02 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:51:05 - End Time 2025-01-02 08:51:05 [2025-01-02 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157114', 'tblTempUsageDetail_20' ) start [2025-01-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157114', 'tblTempUsageDetail_20' ) end [2025-01-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157114', 'tblTempVendorCDR_20' ) start [2025-01-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157114', 'tblTempVendorCDR_20' ) end [2025-01-02 08:51:18] Production.INFO: ProcessCDR(1,14157114,1,1,2) [2025-01-02 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157114', 'tblTempUsageDetail_20' ) start [2025-01-02 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157114', 'tblTempUsageDetail_20' ) end [2025-01-02 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:51:21] Production.INFO: ==17309== Releasing lock... [2025-01-02 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:52:05 [end_date_ymd] => 2025-01-02 08:52:05 [RateCDR] => 1 ) [2025-01-02 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:52:05' and `end` < '2025-01-02 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:52:19] Production.INFO: count ==677 [2025-01-02 08:52:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:52:05 - End Time 2025-01-02 08:52:05 [2025-01-02 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157119', 'tblTempUsageDetail_20' ) start [2025-01-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157119', 'tblTempUsageDetail_20' ) end [2025-01-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157119', 'tblTempVendorCDR_20' ) start [2025-01-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157119', 'tblTempVendorCDR_20' ) end [2025-01-02 08:52:19] Production.INFO: ProcessCDR(1,14157119,1,1,2) [2025-01-02 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157119', 'tblTempUsageDetail_20' ) start [2025-01-02 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157119', 'tblTempUsageDetail_20' ) end [2025-01-02 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:52:24] Production.INFO: ==17379== Releasing lock... [2025-01-02 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:52:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:53:05 [end_date_ymd] => 2025-01-02 08:53:05 [RateCDR] => 1 ) [2025-01-02 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:53:05' and `end` < '2025-01-02 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:53:19] Production.INFO: count ==678 [2025-01-02 08:53:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:53:05 - End Time 2025-01-02 08:53:05 [2025-01-02 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157124', 'tblTempUsageDetail_20' ) start [2025-01-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157124', 'tblTempUsageDetail_20' ) end [2025-01-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157124', 'tblTempVendorCDR_20' ) start [2025-01-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157124', 'tblTempVendorCDR_20' ) end [2025-01-02 08:53:19] Production.INFO: ProcessCDR(1,14157124,1,1,2) [2025-01-02 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157124', 'tblTempUsageDetail_20' ) start [2025-01-02 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157124', 'tblTempUsageDetail_20' ) end [2025-01-02 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:53:24] Production.INFO: ==17451== Releasing lock... [2025-01-02 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:53:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:54:05 [end_date_ymd] => 2025-01-02 08:54:05 [RateCDR] => 1 ) [2025-01-02 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:54:05' and `end` < '2025-01-02 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:54:19] Production.INFO: count ==679 [2025-01-02 08:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 05:54:05 - End Time 2025-01-02 08:54:05 [2025-01-02 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157129', 'tblTempUsageDetail_20' ) start [2025-01-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157129', 'tblTempUsageDetail_20' ) end [2025-01-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157129', 'tblTempVendorCDR_20' ) start [2025-01-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157129', 'tblTempVendorCDR_20' ) end [2025-01-02 08:54:19] Production.INFO: ProcessCDR(1,14157129,1,1,2) [2025-01-02 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157129', 'tblTempUsageDetail_20' ) start [2025-01-02 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157129', 'tblTempUsageDetail_20' ) end [2025-01-02 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:54:23] Production.INFO: ==17522== Releasing lock... [2025-01-02 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-02 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:55:05 [end_date_ymd] => 2025-01-02 08:55:05 [RateCDR] => 1 ) [2025-01-02 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:55:05' and `end` < '2025-01-02 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:55:18] Production.INFO: count ==680 [2025-01-02 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:55:05 - End Time 2025-01-02 08:55:05 [2025-01-02 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157134', 'tblTempUsageDetail_20' ) start [2025-01-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157134', 'tblTempUsageDetail_20' ) end [2025-01-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157134', 'tblTempVendorCDR_20' ) start [2025-01-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157134', 'tblTempVendorCDR_20' ) end [2025-01-02 08:55:18] Production.INFO: ProcessCDR(1,14157134,1,1,2) [2025-01-02 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157134', 'tblTempUsageDetail_20' ) start [2025-01-02 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157134', 'tblTempUsageDetail_20' ) end [2025-01-02 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:55:22] Production.INFO: ==17594== Releasing lock... [2025-01-02 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-02 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:56:05 [end_date_ymd] => 2025-01-02 08:56:05 [RateCDR] => 1 ) [2025-01-02 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:56:05' and `end` < '2025-01-02 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:56:18] Production.INFO: count ==682 [2025-01-02 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:56:05 - End Time 2025-01-02 08:56:05 [2025-01-02 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157139', 'tblTempUsageDetail_20' ) start [2025-01-02 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157139', 'tblTempUsageDetail_20' ) end [2025-01-02 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157139', 'tblTempVendorCDR_20' ) start [2025-01-02 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157139', 'tblTempVendorCDR_20' ) end [2025-01-02 08:56:18] Production.INFO: ProcessCDR(1,14157139,1,1,2) [2025-01-02 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157139', 'tblTempUsageDetail_20' ) start [2025-01-02 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157139', 'tblTempUsageDetail_20' ) end [2025-01-02 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:56:23] Production.INFO: ==17664== Releasing lock... [2025-01-02 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:57:05 [end_date_ymd] => 2025-01-02 08:57:05 [RateCDR] => 1 ) [2025-01-02 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:57:05' and `end` < '2025-01-02 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:57:18] Production.INFO: count ==685 [2025-01-02 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:57:05 - End Time 2025-01-02 08:57:05 [2025-01-02 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157144', 'tblTempUsageDetail_20' ) start [2025-01-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157144', 'tblTempUsageDetail_20' ) end [2025-01-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157144', 'tblTempVendorCDR_20' ) start [2025-01-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157144', 'tblTempVendorCDR_20' ) end [2025-01-02 08:57:18] Production.INFO: ProcessCDR(1,14157144,1,1,2) [2025-01-02 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157144', 'tblTempUsageDetail_20' ) start [2025-01-02 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157144', 'tblTempUsageDetail_20' ) end [2025-01-02 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:57:23] Production.INFO: ==17736== Releasing lock... [2025-01-02 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:57:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:58:05 [end_date_ymd] => 2025-01-02 08:58:05 [RateCDR] => 1 ) [2025-01-02 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:58:05' and `end` < '2025-01-02 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:58:18] Production.INFO: count ==707 [2025-01-02 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:58:05 - End Time 2025-01-02 08:58:05 [2025-01-02 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157149', 'tblTempUsageDetail_20' ) start [2025-01-02 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157149', 'tblTempUsageDetail_20' ) end [2025-01-02 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157149', 'tblTempVendorCDR_20' ) start [2025-01-02 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157149', 'tblTempVendorCDR_20' ) end [2025-01-02 08:58:18] Production.INFO: ProcessCDR(1,14157149,1,1,2) [2025-01-02 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157149', 'tblTempUsageDetail_20' ) start [2025-01-02 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157149', 'tblTempUsageDetail_20' ) end [2025-01-02 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:58:23] Production.INFO: ==17807== Releasing lock... [2025-01-02 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:58:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 05:59:05 [end_date_ymd] => 2025-01-02 08:59:05 [RateCDR] => 1 ) [2025-01-02 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 05:59:05' and `end` < '2025-01-02 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 08:59:18] Production.INFO: count ==725 [2025-01-02 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 05:59:05 - End Time 2025-01-02 08:59:05 [2025-01-02 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157154', 'tblTempUsageDetail_20' ) start [2025-01-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157154', 'tblTempUsageDetail_20' ) end [2025-01-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157154', 'tblTempVendorCDR_20' ) start [2025-01-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157154', 'tblTempVendorCDR_20' ) end [2025-01-02 08:59:18] Production.INFO: ProcessCDR(1,14157154,1,1,2) [2025-01-02 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157154', 'tblTempUsageDetail_20' ) start [2025-01-02 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157154', 'tblTempUsageDetail_20' ) end [2025-01-02 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 08:59:23] Production.INFO: ==17880== Releasing lock... [2025-01-02 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 08:59:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:00:05 [end_date_ymd] => 2025-01-02 09:00:05 [RateCDR] => 1 ) [2025-01-02 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:00:05' and `end` < '2025-01-02 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:00:18] Production.INFO: count ==734 [2025-01-02 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:00:05 - End Time 2025-01-02 09:00:05 [2025-01-02 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157159', 'tblTempUsageDetail_20' ) start [2025-01-02 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157159', 'tblTempUsageDetail_20' ) end [2025-01-02 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157159', 'tblTempVendorCDR_20' ) start [2025-01-02 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157159', 'tblTempVendorCDR_20' ) end [2025-01-02 09:00:18] Production.INFO: ProcessCDR(1,14157159,1,1,2) [2025-01-02 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157159', 'tblTempUsageDetail_20' ) start [2025-01-02 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157159', 'tblTempUsageDetail_20' ) end [2025-01-02 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:00:21] Production.INFO: ==17951== Releasing lock... [2025-01-02 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:00:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:01:04 [end_date_ymd] => 2025-01-02 09:01:04 [RateCDR] => 1 ) [2025-01-02 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:01:04' and `end` < '2025-01-02 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:01:17] Production.INFO: count ==755 [2025-01-02 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:01:04 - End Time 2025-01-02 09:01:04 [2025-01-02 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157165', 'tblTempUsageDetail_20' ) start [2025-01-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157165', 'tblTempUsageDetail_20' ) end [2025-01-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157165', 'tblTempVendorCDR_20' ) start [2025-01-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157165', 'tblTempVendorCDR_20' ) end [2025-01-02 09:01:18] Production.INFO: ProcessCDR(1,14157165,1,1,2) [2025-01-02 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157165', 'tblTempUsageDetail_20' ) start [2025-01-02 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157165', 'tblTempUsageDetail_20' ) end [2025-01-02 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:01:23] Production.INFO: ==18036== Releasing lock... [2025-01-02 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-02 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:02:05 [end_date_ymd] => 2025-01-02 09:02:05 [RateCDR] => 1 ) [2025-01-02 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:02:05' and `end` < '2025-01-02 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:02:18] Production.INFO: count ==761 [2025-01-02 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:02:05 - End Time 2025-01-02 09:02:05 [2025-01-02 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157170', 'tblTempUsageDetail_20' ) start [2025-01-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157170', 'tblTempUsageDetail_20' ) end [2025-01-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157170', 'tblTempVendorCDR_20' ) start [2025-01-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157170', 'tblTempVendorCDR_20' ) end [2025-01-02 09:02:18] Production.INFO: ProcessCDR(1,14157170,1,1,2) [2025-01-02 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157170', 'tblTempUsageDetail_20' ) start [2025-01-02 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157170', 'tblTempUsageDetail_20' ) end [2025-01-02 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:02:21] Production.INFO: ==18106== Releasing lock... [2025-01-02 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:03:05 [end_date_ymd] => 2025-01-02 09:03:05 [RateCDR] => 1 ) [2025-01-02 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:03:05' and `end` < '2025-01-02 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:03:19] Production.INFO: count ==765 [2025-01-02 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:03:05 - End Time 2025-01-02 09:03:05 [2025-01-02 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157175', 'tblTempUsageDetail_20' ) start [2025-01-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157175', 'tblTempUsageDetail_20' ) end [2025-01-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157175', 'tblTempVendorCDR_20' ) start [2025-01-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157175', 'tblTempVendorCDR_20' ) end [2025-01-02 09:03:19] Production.INFO: ProcessCDR(1,14157175,1,1,2) [2025-01-02 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157175', 'tblTempUsageDetail_20' ) start [2025-01-02 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157175', 'tblTempUsageDetail_20' ) end [2025-01-02 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:03:23] Production.INFO: ==18181== Releasing lock... [2025-01-02 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:03:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-02 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:04:05 [end_date_ymd] => 2025-01-02 09:04:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:04:05' and `end` < '2025-01-02 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-01-02 09:04:18] Production.INFO: count ==789 [2025-01-02 09:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:04:05 - End Time 2025-01-02 09:04:05 [2025-01-02 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157180', 'tblTempUsageDetail_20' ) start [2025-01-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157180', 'tblTempUsageDetail_20' ) end [2025-01-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157180', 'tblTempVendorCDR_20' ) start [2025-01-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157180', 'tblTempVendorCDR_20' ) end [2025-01-02 09:04:19] Production.INFO: ProcessCDR(1,14157180,1,1,2) [2025-01-02 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157180', 'tblTempUsageDetail_20' ) start [2025-01-02 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157180', 'tblTempUsageDetail_20' ) end [2025-01-02 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:04:23] Production.INFO: ==18253== Releasing lock... [2025-01-02 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:04:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:05:05 [end_date_ymd] => 2025-01-02 09:05:05 [RateCDR] => 1 ) [2025-01-02 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:05:05' and `end` < '2025-01-02 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:05:18] Production.INFO: count ==807 [2025-01-02 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:05:05 - End Time 2025-01-02 09:05:05 [2025-01-02 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157185', 'tblTempUsageDetail_20' ) start [2025-01-02 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157185', 'tblTempUsageDetail_20' ) end [2025-01-02 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157185', 'tblTempVendorCDR_20' ) start [2025-01-02 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157185', 'tblTempVendorCDR_20' ) end [2025-01-02 09:05:18] Production.INFO: ProcessCDR(1,14157185,1,1,2) [2025-01-02 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157185', 'tblTempUsageDetail_20' ) start [2025-01-02 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157185', 'tblTempUsageDetail_20' ) end [2025-01-02 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:05:22] Production.INFO: ==18361== Releasing lock... [2025-01-02 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:05:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-02 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:06:05 [end_date_ymd] => 2025-01-02 09:06:05 [RateCDR] => 1 ) [2025-01-02 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:06:05' and `end` < '2025-01-02 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:06:18] Production.INFO: count ==827 [2025-01-02 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:06:05 - End Time 2025-01-02 09:06:05 [2025-01-02 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157190', 'tblTempUsageDetail_20' ) start [2025-01-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157190', 'tblTempUsageDetail_20' ) end [2025-01-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157190', 'tblTempVendorCDR_20' ) start [2025-01-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157190', 'tblTempVendorCDR_20' ) end [2025-01-02 09:06:19] Production.INFO: ProcessCDR(1,14157190,1,1,2) [2025-01-02 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157190', 'tblTempUsageDetail_20' ) start [2025-01-02 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157190', 'tblTempUsageDetail_20' ) end [2025-01-02 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:06:23] Production.INFO: ==18432== Releasing lock... [2025-01-02 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:06:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-02 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:07:05 [end_date_ymd] => 2025-01-02 09:07:05 [RateCDR] => 1 ) [2025-01-02 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:07:05' and `end` < '2025-01-02 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:07:18] Production.INFO: count ==836 [2025-01-02 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:07:05 - End Time 2025-01-02 09:07:05 [2025-01-02 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157195', 'tblTempUsageDetail_20' ) start [2025-01-02 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157195', 'tblTempUsageDetail_20' ) end [2025-01-02 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157195', 'tblTempVendorCDR_20' ) start [2025-01-02 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157195', 'tblTempVendorCDR_20' ) end [2025-01-02 09:07:18] Production.INFO: ProcessCDR(1,14157195,1,1,2) [2025-01-02 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157195', 'tblTempUsageDetail_20' ) start [2025-01-02 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157195', 'tblTempUsageDetail_20' ) end [2025-01-02 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:07:22] Production.INFO: ==18502== Releasing lock... [2025-01-02 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:07:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:08:05 [end_date_ymd] => 2025-01-02 09:08:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:08:05' and `end` < '2025-01-02 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-01-02 09:08:18] Production.INFO: count ==849 [2025-01-02 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:08:05 - End Time 2025-01-02 09:08:05 [2025-01-02 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157200', 'tblTempUsageDetail_20' ) start [2025-01-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157200', 'tblTempUsageDetail_20' ) end [2025-01-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157200', 'tblTempVendorCDR_20' ) start [2025-01-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157200', 'tblTempVendorCDR_20' ) end [2025-01-02 09:08:19] Production.INFO: ProcessCDR(1,14157200,1,1,2) [2025-01-02 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157200', 'tblTempUsageDetail_20' ) start [2025-01-02 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157200', 'tblTempUsageDetail_20' ) end [2025-01-02 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:08:23] Production.INFO: ==18573== Releasing lock... [2025-01-02 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:08:23] Production.INFO: 35 MB #Memory Used# [2025-01-02 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:09:05 [end_date_ymd] => 2025-01-02 09:09:05 [RateCDR] => 1 ) [2025-01-02 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:09:05' and `end` < '2025-01-02 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:09:18] Production.INFO: count ==878 [2025-01-02 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:09:05 - End Time 2025-01-02 09:09:05 [2025-01-02 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157205', 'tblTempUsageDetail_20' ) start [2025-01-02 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157205', 'tblTempUsageDetail_20' ) end [2025-01-02 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157205', 'tblTempVendorCDR_20' ) start [2025-01-02 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157205', 'tblTempVendorCDR_20' ) end [2025-01-02 09:09:18] Production.INFO: ProcessCDR(1,14157205,1,1,2) [2025-01-02 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157205', 'tblTempUsageDetail_20' ) start [2025-01-02 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157205', 'tblTempUsageDetail_20' ) end [2025-01-02 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:09:23] Production.INFO: ==18646== Releasing lock... [2025-01-02 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:09:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-02 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:10:06 [end_date_ymd] => 2025-01-02 09:10:06 [RateCDR] => 1 ) [2025-01-02 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:10:06' and `end` < '2025-01-02 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:10:19] Production.INFO: count ==902 [2025-01-02 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:10:06 - End Time 2025-01-02 09:10:06 [2025-01-02 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157211', 'tblTempUsageDetail_20' ) start [2025-01-02 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157211', 'tblTempUsageDetail_20' ) end [2025-01-02 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157211', 'tblTempVendorCDR_20' ) start [2025-01-02 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157211', 'tblTempVendorCDR_20' ) end [2025-01-02 09:10:19] Production.INFO: ProcessCDR(1,14157211,1,1,2) [2025-01-02 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157211', 'tblTempUsageDetail_20' ) start [2025-01-02 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157211', 'tblTempUsageDetail_20' ) end [2025-01-02 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:10:23] Production.INFO: ==18720== Releasing lock... [2025-01-02 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:10:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:11:05 [end_date_ymd] => 2025-01-02 09:11:05 [RateCDR] => 1 ) [2025-01-02 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:11:05' and `end` < '2025-01-02 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:11:18] Production.INFO: count ==987 [2025-01-02 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:11:05 - End Time 2025-01-02 09:11:05 [2025-01-02 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157216', 'tblTempUsageDetail_20' ) start [2025-01-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157216', 'tblTempUsageDetail_20' ) end [2025-01-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157216', 'tblTempVendorCDR_20' ) start [2025-01-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157216', 'tblTempVendorCDR_20' ) end [2025-01-02 09:11:18] Production.INFO: ProcessCDR(1,14157216,1,1,2) [2025-01-02 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157216', 'tblTempUsageDetail_20' ) start [2025-01-02 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157216', 'tblTempUsageDetail_20' ) end [2025-01-02 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:11:23] Production.INFO: ==18794== Releasing lock... [2025-01-02 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:11:23] Production.INFO: 36 MB #Memory Used# [2025-01-02 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:12:05 [end_date_ymd] => 2025-01-02 09:12:05 [RateCDR] => 1 ) [2025-01-02 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:12:05' and `end` < '2025-01-02 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:12:18] Production.INFO: count ==1001 [2025-01-02 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:12:05 - End Time 2025-01-02 09:12:05 [2025-01-02 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157221', 'tblTempUsageDetail_20' ) start [2025-01-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157221', 'tblTempUsageDetail_20' ) end [2025-01-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157221', 'tblTempVendorCDR_20' ) start [2025-01-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157221', 'tblTempVendorCDR_20' ) end [2025-01-02 09:12:18] Production.INFO: ProcessCDR(1,14157221,1,1,2) [2025-01-02 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157221', 'tblTempUsageDetail_20' ) start [2025-01-02 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157221', 'tblTempUsageDetail_20' ) end [2025-01-02 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:12:23] Production.INFO: ==18867== Releasing lock... [2025-01-02 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:12:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:13:04 [end_date_ymd] => 2025-01-02 09:13:04 [RateCDR] => 1 ) [2025-01-02 09:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:13:04' and `end` < '2025-01-02 09:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:13:17] Production.INFO: count ==1031 [2025-01-02 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:13:04 - End Time 2025-01-02 09:13:04 [2025-01-02 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157226', 'tblTempUsageDetail_20' ) start [2025-01-02 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157226', 'tblTempUsageDetail_20' ) end [2025-01-02 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157226', 'tblTempVendorCDR_20' ) start [2025-01-02 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157226', 'tblTempVendorCDR_20' ) end [2025-01-02 09:13:18] Production.INFO: ProcessCDR(1,14157226,1,1,2) [2025-01-02 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157226', 'tblTempUsageDetail_20' ) start [2025-01-02 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157226', 'tblTempUsageDetail_20' ) end [2025-01-02 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:13:22] Production.INFO: ==18936== Releasing lock... [2025-01-02 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:13:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-02 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:14:05 [end_date_ymd] => 2025-01-02 09:14:05 [RateCDR] => 1 ) [2025-01-02 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:14:05' and `end` < '2025-01-02 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:14:19] Production.INFO: count ==1045 [2025-01-02 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:14:05 - End Time 2025-01-02 09:14:05 [2025-01-02 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157231', 'tblTempUsageDetail_20' ) start [2025-01-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157231', 'tblTempUsageDetail_20' ) end [2025-01-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157231', 'tblTempVendorCDR_20' ) start [2025-01-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157231', 'tblTempVendorCDR_20' ) end [2025-01-02 09:14:19] Production.INFO: ProcessCDR(1,14157231,1,1,2) [2025-01-02 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157231', 'tblTempUsageDetail_20' ) start [2025-01-02 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157231', 'tblTempUsageDetail_20' ) end [2025-01-02 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:14:22] Production.INFO: ==19008== Releasing lock... [2025-01-02 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-02 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:15:05 [end_date_ymd] => 2025-01-02 09:15:05 [RateCDR] => 1 ) [2025-01-02 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:15:05' and `end` < '2025-01-02 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:15:17] Production.INFO: count ==1062 [2025-01-02 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:15:05 - End Time 2025-01-02 09:15:05 [2025-01-02 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157236', 'tblTempUsageDetail_20' ) start [2025-01-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157236', 'tblTempUsageDetail_20' ) end [2025-01-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157236', 'tblTempVendorCDR_20' ) start [2025-01-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157236', 'tblTempVendorCDR_20' ) end [2025-01-02 09:15:18] Production.INFO: ProcessCDR(1,14157236,1,1,2) [2025-01-02 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157236', 'tblTempUsageDetail_20' ) start [2025-01-02 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157236', 'tblTempUsageDetail_20' ) end [2025-01-02 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:15:22] Production.INFO: ==19086== Releasing lock... [2025-01-02 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:15:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:16:05 [end_date_ymd] => 2025-01-02 09:16:05 [RateCDR] => 1 ) [2025-01-02 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:16:05' and `end` < '2025-01-02 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:16:18] Production.INFO: count ==1090 [2025-01-02 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:16:05 - End Time 2025-01-02 09:16:05 [2025-01-02 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157241', 'tblTempUsageDetail_20' ) start [2025-01-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157241', 'tblTempUsageDetail_20' ) end [2025-01-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157241', 'tblTempVendorCDR_20' ) start [2025-01-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157241', 'tblTempVendorCDR_20' ) end [2025-01-02 09:16:18] Production.INFO: ProcessCDR(1,14157241,1,1,2) [2025-01-02 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157241', 'tblTempUsageDetail_20' ) start [2025-01-02 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157241', 'tblTempUsageDetail_20' ) end [2025-01-02 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:16:22] Production.INFO: ==19170== Releasing lock... [2025-01-02 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-02 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:17:04 [end_date_ymd] => 2025-01-02 09:17:04 [RateCDR] => 1 ) [2025-01-02 09:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:17:04' and `end` < '2025-01-02 09:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:17:17] Production.INFO: count ==1125 [2025-01-02 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:17:04 - End Time 2025-01-02 09:17:04 [2025-01-02 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157246', 'tblTempUsageDetail_20' ) start [2025-01-02 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157246', 'tblTempUsageDetail_20' ) end [2025-01-02 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157246', 'tblTempVendorCDR_20' ) start [2025-01-02 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157246', 'tblTempVendorCDR_20' ) end [2025-01-02 09:17:18] Production.INFO: ProcessCDR(1,14157246,1,1,2) [2025-01-02 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157246', 'tblTempUsageDetail_20' ) start [2025-01-02 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157246', 'tblTempUsageDetail_20' ) end [2025-01-02 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:17:22] Production.INFO: ==19262== Releasing lock... [2025-01-02 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:17:22] Production.INFO: 37 MB #Memory Used# [2025-01-02 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:18:04 [end_date_ymd] => 2025-01-02 09:18:04 [RateCDR] => 1 ) [2025-01-02 09:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:18:04' and `end` < '2025-01-02 09:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:18:17] Production.INFO: count ==1129 [2025-01-02 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:18:04 - End Time 2025-01-02 09:18:04 [2025-01-02 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157251', 'tblTempUsageDetail_20' ) start [2025-01-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157251', 'tblTempUsageDetail_20' ) end [2025-01-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157251', 'tblTempVendorCDR_20' ) start [2025-01-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157251', 'tblTempVendorCDR_20' ) end [2025-01-02 09:18:18] Production.INFO: ProcessCDR(1,14157251,1,1,2) [2025-01-02 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157251', 'tblTempUsageDetail_20' ) start [2025-01-02 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157251', 'tblTempUsageDetail_20' ) end [2025-01-02 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:18:22] Production.INFO: ==19342== Releasing lock... [2025-01-02 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-02 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:19:04 [end_date_ymd] => 2025-01-02 09:19:04 [RateCDR] => 1 ) [2025-01-02 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:19:04' and `end` < '2025-01-02 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:19:23] Production.INFO: count ==1146 [2025-01-02 09:19:24] Production.ERROR: pbx CDR StartTime 2025-01-02 06:19:04 - End Time 2025-01-02 09:19:04 [2025-01-02 09:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157256', 'tblTempUsageDetail_20' ) start [2025-01-02 09:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157256', 'tblTempUsageDetail_20' ) end [2025-01-02 09:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157256', 'tblTempVendorCDR_20' ) start [2025-01-02 09:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157256', 'tblTempVendorCDR_20' ) end [2025-01-02 09:19:24] Production.INFO: ProcessCDR(1,14157256,1,1,2) [2025-01-02 09:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157256', 'tblTempUsageDetail_20' ) start [2025-01-02 09:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157256', 'tblTempUsageDetail_20' ) end [2025-01-02 09:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:19:28] Production.INFO: ==19445== Releasing lock... [2025-01-02 09:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:19:28] Production.INFO: 37 MB #Memory Used# [2025-01-02 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:20:06 [end_date_ymd] => 2025-01-02 09:20:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:20:06' and `end` < '2025-01-02 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-01-02 09:20:18] Production.INFO: count ==1156 [2025-01-02 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:20:06 - End Time 2025-01-02 09:20:06 [2025-01-02 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157262', 'tblTempUsageDetail_20' ) start [2025-01-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157262', 'tblTempUsageDetail_20' ) end [2025-01-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157262', 'tblTempVendorCDR_20' ) start [2025-01-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157262', 'tblTempVendorCDR_20' ) end [2025-01-02 09:20:19] Production.INFO: ProcessCDR(1,14157262,1,1,2) [2025-01-02 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157262', 'tblTempUsageDetail_20' ) start [2025-01-02 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157262', 'tblTempUsageDetail_20' ) end [2025-01-02 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:20:24] Production.INFO: ==19540== Releasing lock... [2025-01-02 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:20:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-02 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:21:06 [end_date_ymd] => 2025-01-02 09:21:06 [RateCDR] => 1 ) [2025-01-02 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:21:06' and `end` < '2025-01-02 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:21:19] Production.INFO: count ==1218 [2025-01-02 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:21:06 - End Time 2025-01-02 09:21:06 [2025-01-02 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157267', 'tblTempUsageDetail_20' ) start [2025-01-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157267', 'tblTempUsageDetail_20' ) end [2025-01-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157267', 'tblTempVendorCDR_20' ) start [2025-01-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157267', 'tblTempVendorCDR_20' ) end [2025-01-02 09:21:19] Production.INFO: ProcessCDR(1,14157267,1,1,2) [2025-01-02 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157267', 'tblTempUsageDetail_20' ) start [2025-01-02 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157267', 'tblTempUsageDetail_20' ) end [2025-01-02 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:21:24] Production.INFO: ==19678== Releasing lock... [2025-01-02 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:21:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-02 09:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:22:04 [end_date_ymd] => 2025-01-02 09:22:04 [RateCDR] => 1 ) [2025-01-02 09:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:22:04' and `end` < '2025-01-02 09:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:22:23] Production.INFO: count ==1228 [2025-01-02 09:22:24] Production.ERROR: pbx CDR StartTime 2025-01-02 06:22:04 - End Time 2025-01-02 09:22:04 [2025-01-02 09:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157272', 'tblTempUsageDetail_20' ) start [2025-01-02 09:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157272', 'tblTempUsageDetail_20' ) end [2025-01-02 09:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157272', 'tblTempVendorCDR_20' ) start [2025-01-02 09:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157272', 'tblTempVendorCDR_20' ) end [2025-01-02 09:22:24] Production.INFO: ProcessCDR(1,14157272,1,1,2) [2025-01-02 09:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157272', 'tblTempUsageDetail_20' ) start [2025-01-02 09:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157272', 'tblTempUsageDetail_20' ) end [2025-01-02 09:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:22:28] Production.INFO: ==19781== Releasing lock... [2025-01-02 09:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:22:28] Production.INFO: 37.75 MB #Memory Used# [2025-01-02 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:23:05 [end_date_ymd] => 2025-01-02 09:23:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:23:05' and `end` < '2025-01-02 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-01-02 09:23:28] Production.INFO: count ==1274 [2025-01-02 09:23:29] Production.ERROR: pbx CDR StartTime 2025-01-02 06:23:05 - End Time 2025-01-02 09:23:05 [2025-01-02 09:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157277', 'tblTempUsageDetail_20' ) start [2025-01-02 09:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157277', 'tblTempUsageDetail_20' ) end [2025-01-02 09:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157277', 'tblTempVendorCDR_20' ) start [2025-01-02 09:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157277', 'tblTempVendorCDR_20' ) end [2025-01-02 09:23:29] Production.INFO: ProcessCDR(1,14157277,1,1,2) [2025-01-02 09:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157277', 'tblTempUsageDetail_20' ) start [2025-01-02 09:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157277', 'tblTempUsageDetail_20' ) end [2025-01-02 09:23:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:23:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:23:34] Production.INFO: ==19879== Releasing lock... [2025-01-02 09:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:23:34] Production.INFO: 38 MB #Memory Used# [2025-01-02 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:24:04 [end_date_ymd] => 2025-01-02 09:24:04 [RateCDR] => 1 ) [2025-01-02 09:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:24:04' and `end` < '2025-01-02 09:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:24:35] Production.INFO: count ==1327 [2025-01-02 09:24:35] Production.ERROR: pbx CDR StartTime 2025-01-02 06:24:04 - End Time 2025-01-02 09:24:04 [2025-01-02 09:24:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157282', 'tblTempUsageDetail_20' ) start [2025-01-02 09:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157282', 'tblTempUsageDetail_20' ) end [2025-01-02 09:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157282', 'tblTempVendorCDR_20' ) start [2025-01-02 09:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157282', 'tblTempVendorCDR_20' ) end [2025-01-02 09:24:35] Production.INFO: ProcessCDR(1,14157282,1,1,2) [2025-01-02 09:24:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:24:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:24:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157282', 'tblTempUsageDetail_20' ) start [2025-01-02 09:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157282', 'tblTempUsageDetail_20' ) end [2025-01-02 09:24:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:24:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:24:40] Production.INFO: ==19990== Releasing lock... [2025-01-02 09:24:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:24:40] Production.INFO: 38.25 MB #Memory Used# [2025-01-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:25:05 [end_date_ymd] => 2025-01-02 09:25:05 [RateCDR] => 1 ) [2025-01-02 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:25:05' and `end` < '2025-01-02 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:25:26] Production.INFO: count ==1381 [2025-01-02 09:25:26] Production.ERROR: pbx CDR StartTime 2025-01-02 06:25:05 - End Time 2025-01-02 09:25:05 [2025-01-02 09:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157287', 'tblTempUsageDetail_20' ) start [2025-01-02 09:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157287', 'tblTempUsageDetail_20' ) end [2025-01-02 09:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157287', 'tblTempVendorCDR_20' ) start [2025-01-02 09:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157287', 'tblTempVendorCDR_20' ) end [2025-01-02 09:25:26] Production.INFO: ProcessCDR(1,14157287,1,1,2) [2025-01-02 09:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157287', 'tblTempUsageDetail_20' ) start [2025-01-02 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157287', 'tblTempUsageDetail_20' ) end [2025-01-02 09:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:25:31] Production.INFO: ==20090== Releasing lock... [2025-01-02 09:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:25:31] Production.INFO: 38.75 MB #Memory Used# [2025-01-02 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:26:05 [end_date_ymd] => 2025-01-02 09:26:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:26:05' and `end` < '2025-01-02 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-01-02 09:26:30] Production.INFO: count ==1400 [2025-01-02 09:26:31] Production.ERROR: pbx CDR StartTime 2025-01-02 06:26:05 - End Time 2025-01-02 09:26:05 [2025-01-02 09:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157292', 'tblTempUsageDetail_20' ) start [2025-01-02 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157292', 'tblTempUsageDetail_20' ) end [2025-01-02 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157292', 'tblTempVendorCDR_20' ) start [2025-01-02 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157292', 'tblTempVendorCDR_20' ) end [2025-01-02 09:26:31] Production.INFO: ProcessCDR(1,14157292,1,1,2) [2025-01-02 09:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157292', 'tblTempUsageDetail_20' ) start [2025-01-02 09:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157292', 'tblTempUsageDetail_20' ) end [2025-01-02 09:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:26:35] Production.INFO: ==20203== Releasing lock... [2025-01-02 09:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:26:35] Production.INFO: 38.75 MB #Memory Used# [2025-01-02 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:27:05 [end_date_ymd] => 2025-01-02 09:27:05 [RateCDR] => 1 ) [2025-01-02 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:27:05' and `end` < '2025-01-02 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:27:22] Production.INFO: count ==1408 [2025-01-02 09:27:22] Production.ERROR: pbx CDR StartTime 2025-01-02 06:27:05 - End Time 2025-01-02 09:27:05 [2025-01-02 09:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157297', 'tblTempUsageDetail_20' ) start [2025-01-02 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157297', 'tblTempUsageDetail_20' ) end [2025-01-02 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157297', 'tblTempVendorCDR_20' ) start [2025-01-02 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157297', 'tblTempVendorCDR_20' ) end [2025-01-02 09:27:22] Production.INFO: ProcessCDR(1,14157297,1,1,2) [2025-01-02 09:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157297', 'tblTempUsageDetail_20' ) start [2025-01-02 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157297', 'tblTempUsageDetail_20' ) end [2025-01-02 09:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:27:27] Production.INFO: ==20315== Releasing lock... [2025-01-02 09:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:27:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-02 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:28:05 [end_date_ymd] => 2025-01-02 09:28:05 [RateCDR] => 1 ) [2025-01-02 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:28:05' and `end` < '2025-01-02 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:28:36] Production.INFO: count ==1419 [2025-01-02 09:28:37] Production.ERROR: pbx CDR StartTime 2025-01-02 06:28:05 - End Time 2025-01-02 09:28:05 [2025-01-02 09:28:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157302', 'tblTempUsageDetail_20' ) start [2025-01-02 09:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157302', 'tblTempUsageDetail_20' ) end [2025-01-02 09:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157302', 'tblTempVendorCDR_20' ) start [2025-01-02 09:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157302', 'tblTempVendorCDR_20' ) end [2025-01-02 09:28:37] Production.INFO: ProcessCDR(1,14157302,1,1,2) [2025-01-02 09:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:28:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:28:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:28:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157302', 'tblTempUsageDetail_20' ) start [2025-01-02 09:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157302', 'tblTempUsageDetail_20' ) end [2025-01-02 09:28:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:28:42] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:28:42] Production.INFO: ==20431== Releasing lock... [2025-01-02 09:28:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:28:42] Production.INFO: 39.25 MB #Memory Used# [2025-01-02 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:29:05 [end_date_ymd] => 2025-01-02 09:29:05 [RateCDR] => 1 ) [2025-01-02 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:29:05' and `end` < '2025-01-02 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:29:25] Production.INFO: count ==1457 [2025-01-02 09:29:25] Production.ERROR: pbx CDR StartTime 2025-01-02 06:29:05 - End Time 2025-01-02 09:29:05 [2025-01-02 09:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157307', 'tblTempUsageDetail_20' ) start [2025-01-02 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157307', 'tblTempUsageDetail_20' ) end [2025-01-02 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157307', 'tblTempVendorCDR_20' ) start [2025-01-02 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157307', 'tblTempVendorCDR_20' ) end [2025-01-02 09:29:25] Production.INFO: ProcessCDR(1,14157307,1,1,2) [2025-01-02 09:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157307', 'tblTempUsageDetail_20' ) start [2025-01-02 09:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157307', 'tblTempUsageDetail_20' ) end [2025-01-02 09:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:29:30] Production.INFO: ==20545== Releasing lock... [2025-01-02 09:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:29:30] Production.INFO: 39.25 MB #Memory Used# [2025-01-02 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:30:05 [end_date_ymd] => 2025-01-02 09:30:05 [RateCDR] => 1 ) [2025-01-02 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:30:05' and `end` < '2025-01-02 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:30:19] Production.INFO: count ==1488 [2025-01-02 09:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:30:05 - End Time 2025-01-02 09:30:05 [2025-01-02 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157313', 'tblTempUsageDetail_20' ) start [2025-01-02 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157313', 'tblTempUsageDetail_20' ) end [2025-01-02 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157313', 'tblTempVendorCDR_20' ) start [2025-01-02 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157313', 'tblTempVendorCDR_20' ) end [2025-01-02 09:30:19] Production.INFO: ProcessCDR(1,14157313,1,1,2) [2025-01-02 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157313', 'tblTempUsageDetail_20' ) start [2025-01-02 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157313', 'tblTempUsageDetail_20' ) end [2025-01-02 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:30:24] Production.INFO: ==20652== Releasing lock... [2025-01-02 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:30:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-02 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:31:04 [end_date_ymd] => 2025-01-02 09:31:04 [RateCDR] => 1 ) [2025-01-02 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:31:04' and `end` < '2025-01-02 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:31:18] Production.INFO: count ==1561 [2025-01-02 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:31:04 - End Time 2025-01-02 09:31:04 [2025-01-02 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157318', 'tblTempUsageDetail_20' ) start [2025-01-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157318', 'tblTempUsageDetail_20' ) end [2025-01-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157318', 'tblTempVendorCDR_20' ) start [2025-01-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157318', 'tblTempVendorCDR_20' ) end [2025-01-02 09:31:18] Production.INFO: ProcessCDR(1,14157318,1,1,2) [2025-01-02 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157318', 'tblTempUsageDetail_20' ) start [2025-01-02 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157318', 'tblTempUsageDetail_20' ) end [2025-01-02 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:31:23] Production.INFO: ==20775== Releasing lock... [2025-01-02 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:31:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-02 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:32:05 [end_date_ymd] => 2025-01-02 09:32:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:32:05' and `end` < '2025-01-02 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-01-02 09:32:19] Production.INFO: count ==1581 [2025-01-02 09:32:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:32:05 - End Time 2025-01-02 09:32:05 [2025-01-02 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157323', 'tblTempUsageDetail_20' ) start [2025-01-02 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157323', 'tblTempUsageDetail_20' ) end [2025-01-02 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157323', 'tblTempVendorCDR_20' ) start [2025-01-02 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157323', 'tblTempVendorCDR_20' ) end [2025-01-02 09:32:20] Production.INFO: ProcessCDR(1,14157323,1,1,2) [2025-01-02 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157323', 'tblTempUsageDetail_20' ) start [2025-01-02 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157323', 'tblTempUsageDetail_20' ) end [2025-01-02 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:32:24] Production.INFO: ==20894== Releasing lock... [2025-01-02 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:32:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-02 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:33:05 [end_date_ymd] => 2025-01-02 09:33:05 [RateCDR] => 1 ) [2025-01-02 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:33:05' and `end` < '2025-01-02 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:33:23] Production.INFO: count ==1613 [2025-01-02 09:33:24] Production.ERROR: pbx CDR StartTime 2025-01-02 06:33:05 - End Time 2025-01-02 09:33:05 [2025-01-02 09:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157328', 'tblTempUsageDetail_20' ) start [2025-01-02 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157328', 'tblTempUsageDetail_20' ) end [2025-01-02 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157328', 'tblTempVendorCDR_20' ) start [2025-01-02 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157328', 'tblTempVendorCDR_20' ) end [2025-01-02 09:33:24] Production.INFO: ProcessCDR(1,14157328,1,1,2) [2025-01-02 09:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157328', 'tblTempUsageDetail_20' ) start [2025-01-02 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157328', 'tblTempUsageDetail_20' ) end [2025-01-02 09:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:33:29] Production.INFO: ==21005== Releasing lock... [2025-01-02 09:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:33:29] Production.INFO: 40.5 MB #Memory Used# [2025-01-02 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:34:05 [end_date_ymd] => 2025-01-02 09:34:05 [RateCDR] => 1 ) [2025-01-02 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:34:05' and `end` < '2025-01-02 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:34:18] Production.INFO: count ==1646 [2025-01-02 09:34:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:34:05 - End Time 2025-01-02 09:34:05 [2025-01-02 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157333', 'tblTempUsageDetail_20' ) start [2025-01-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157333', 'tblTempUsageDetail_20' ) end [2025-01-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157333', 'tblTempVendorCDR_20' ) start [2025-01-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157333', 'tblTempVendorCDR_20' ) end [2025-01-02 09:34:18] Production.INFO: ProcessCDR(1,14157333,1,1,2) [2025-01-02 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157333', 'tblTempUsageDetail_20' ) start [2025-01-02 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157333', 'tblTempUsageDetail_20' ) end [2025-01-02 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:34:23] Production.INFO: ==21112== Releasing lock... [2025-01-02 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:34:23] Production.INFO: 41 MB #Memory Used# [2025-01-02 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:35:05 [end_date_ymd] => 2025-01-02 09:35:05 [RateCDR] => 1 ) [2025-01-02 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:35:05' and `end` < '2025-01-02 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:35:19] Production.INFO: count ==1666 [2025-01-02 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:35:05 - End Time 2025-01-02 09:35:05 [2025-01-02 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157338', 'tblTempUsageDetail_20' ) start [2025-01-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157338', 'tblTempUsageDetail_20' ) end [2025-01-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157338', 'tblTempVendorCDR_20' ) start [2025-01-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157338', 'tblTempVendorCDR_20' ) end [2025-01-02 09:35:19] Production.INFO: ProcessCDR(1,14157338,1,1,2) [2025-01-02 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157338', 'tblTempUsageDetail_20' ) start [2025-01-02 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157338', 'tblTempUsageDetail_20' ) end [2025-01-02 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:35:24] Production.INFO: ==21235== Releasing lock... [2025-01-02 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:35:24] Production.INFO: 41 MB #Memory Used# [2025-01-02 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:36:04 [end_date_ymd] => 2025-01-02 09:36:04 [RateCDR] => 1 ) [2025-01-02 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:36:04' and `end` < '2025-01-02 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:36:19] Production.INFO: count ==1688 [2025-01-02 09:36:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:36:04 - End Time 2025-01-02 09:36:04 [2025-01-02 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157343', 'tblTempUsageDetail_20' ) start [2025-01-02 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157343', 'tblTempUsageDetail_20' ) end [2025-01-02 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157343', 'tblTempVendorCDR_20' ) start [2025-01-02 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157343', 'tblTempVendorCDR_20' ) end [2025-01-02 09:36:20] Production.INFO: ProcessCDR(1,14157343,1,1,2) [2025-01-02 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157343', 'tblTempUsageDetail_20' ) start [2025-01-02 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157343', 'tblTempUsageDetail_20' ) end [2025-01-02 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:36:24] Production.INFO: ==21385== Releasing lock... [2025-01-02 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:36:24] Production.INFO: 41 MB #Memory Used# [2025-01-02 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:37:05 [end_date_ymd] => 2025-01-02 09:37:05 [RateCDR] => 1 ) [2025-01-02 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:37:05' and `end` < '2025-01-02 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:37:18] Production.INFO: count ==1714 [2025-01-02 09:37:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:37:05 - End Time 2025-01-02 09:37:05 [2025-01-02 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157348', 'tblTempUsageDetail_20' ) start [2025-01-02 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157348', 'tblTempUsageDetail_20' ) end [2025-01-02 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157348', 'tblTempVendorCDR_20' ) start [2025-01-02 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157348', 'tblTempVendorCDR_20' ) end [2025-01-02 09:37:19] Production.INFO: ProcessCDR(1,14157348,1,1,2) [2025-01-02 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157348', 'tblTempUsageDetail_20' ) start [2025-01-02 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157348', 'tblTempUsageDetail_20' ) end [2025-01-02 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:37:24] Production.INFO: ==21500== Releasing lock... [2025-01-02 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:37:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:38:06 [end_date_ymd] => 2025-01-02 09:38:06 [RateCDR] => 1 ) [2025-01-02 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:38:06' and `end` < '2025-01-02 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:38:21] Production.INFO: count ==1757 [2025-01-02 09:38:22] Production.ERROR: pbx CDR StartTime 2025-01-02 06:38:06 - End Time 2025-01-02 09:38:06 [2025-01-02 09:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157353', 'tblTempUsageDetail_20' ) start [2025-01-02 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157353', 'tblTempUsageDetail_20' ) end [2025-01-02 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157353', 'tblTempVendorCDR_20' ) start [2025-01-02 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157353', 'tblTempVendorCDR_20' ) end [2025-01-02 09:38:22] Production.INFO: ProcessCDR(1,14157353,1,1,2) [2025-01-02 09:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157353', 'tblTempUsageDetail_20' ) start [2025-01-02 09:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157353', 'tblTempUsageDetail_20' ) end [2025-01-02 09:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:38:27] Production.INFO: ==21597== Releasing lock... [2025-01-02 09:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:38:27] Production.INFO: 41.75 MB #Memory Used# [2025-01-02 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:39:05 [end_date_ymd] => 2025-01-02 09:39:05 [RateCDR] => 1 ) [2025-01-02 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:39:05' and `end` < '2025-01-02 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:39:19] Production.INFO: count ==1767 [2025-01-02 09:39:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:39:05 - End Time 2025-01-02 09:39:05 [2025-01-02 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157358', 'tblTempUsageDetail_20' ) start [2025-01-02 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157358', 'tblTempUsageDetail_20' ) end [2025-01-02 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157358', 'tblTempVendorCDR_20' ) start [2025-01-02 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157358', 'tblTempVendorCDR_20' ) end [2025-01-02 09:39:20] Production.INFO: ProcessCDR(1,14157358,1,1,2) [2025-01-02 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157358', 'tblTempUsageDetail_20' ) start [2025-01-02 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157358', 'tblTempUsageDetail_20' ) end [2025-01-02 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:39:25] Production.INFO: ==21699== Releasing lock... [2025-01-02 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:39:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-02 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:40:06 [end_date_ymd] => 2025-01-02 09:40:06 [RateCDR] => 1 ) [2025-01-02 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:40:06' and `end` < '2025-01-02 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:40:20] Production.INFO: count ==1788 [2025-01-02 09:40:21] Production.ERROR: pbx CDR StartTime 2025-01-02 06:40:06 - End Time 2025-01-02 09:40:06 [2025-01-02 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157362', 'tblTempUsageDetail_20' ) start [2025-01-02 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157362', 'tblTempUsageDetail_20' ) end [2025-01-02 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157362', 'tblTempVendorCDR_20' ) start [2025-01-02 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157362', 'tblTempVendorCDR_20' ) end [2025-01-02 09:40:21] Production.INFO: ProcessCDR(1,14157362,1,1,2) [2025-01-02 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157362', 'tblTempUsageDetail_20' ) start [2025-01-02 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157362', 'tblTempUsageDetail_20' ) end [2025-01-02 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:40:25] Production.INFO: ==21804== Releasing lock... [2025-01-02 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:40:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-02 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:41:05 [end_date_ymd] => 2025-01-02 09:41:05 [RateCDR] => 1 ) [2025-01-02 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:41:05' and `end` < '2025-01-02 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:41:18] Production.INFO: count ==1836 [2025-01-02 09:41:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:41:05 - End Time 2025-01-02 09:41:05 [2025-01-02 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157369', 'tblTempUsageDetail_20' ) start [2025-01-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157369', 'tblTempUsageDetail_20' ) end [2025-01-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157369', 'tblTempVendorCDR_20' ) start [2025-01-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157369', 'tblTempVendorCDR_20' ) end [2025-01-02 09:41:19] Production.INFO: ProcessCDR(1,14157369,1,1,2) [2025-01-02 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157369', 'tblTempUsageDetail_20' ) start [2025-01-02 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157369', 'tblTempUsageDetail_20' ) end [2025-01-02 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:41:24] Production.INFO: ==21912== Releasing lock... [2025-01-02 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:41:24] Production.INFO: 42 MB #Memory Used# [2025-01-02 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:42:05 [end_date_ymd] => 2025-01-02 09:42:05 [RateCDR] => 1 ) [2025-01-02 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:42:05' and `end` < '2025-01-02 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:42:19] Production.INFO: count ==1839 [2025-01-02 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:42:05 - End Time 2025-01-02 09:42:05 [2025-01-02 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157374', 'tblTempUsageDetail_20' ) start [2025-01-02 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157374', 'tblTempUsageDetail_20' ) end [2025-01-02 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157374', 'tblTempVendorCDR_20' ) start [2025-01-02 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157374', 'tblTempVendorCDR_20' ) end [2025-01-02 09:42:19] Production.INFO: ProcessCDR(1,14157374,1,1,2) [2025-01-02 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157374', 'tblTempUsageDetail_20' ) start [2025-01-02 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157374', 'tblTempUsageDetail_20' ) end [2025-01-02 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:42:24] Production.INFO: ==22004== Releasing lock... [2025-01-02 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:42:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-02 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:43:05 [end_date_ymd] => 2025-01-02 09:43:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:43:05' and `end` < '2025-01-02 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-01-02 09:43:22] Production.INFO: count ==1857 [2025-01-02 09:43:22] Production.ERROR: pbx CDR StartTime 2025-01-02 06:43:05 - End Time 2025-01-02 09:43:05 [2025-01-02 09:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157379', 'tblTempUsageDetail_20' ) start [2025-01-02 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157379', 'tblTempUsageDetail_20' ) end [2025-01-02 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157379', 'tblTempVendorCDR_20' ) start [2025-01-02 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157379', 'tblTempVendorCDR_20' ) end [2025-01-02 09:43:22] Production.INFO: ProcessCDR(1,14157379,1,1,2) [2025-01-02 09:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157379', 'tblTempUsageDetail_20' ) start [2025-01-02 09:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157379', 'tblTempUsageDetail_20' ) end [2025-01-02 09:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:43:28] Production.INFO: ==22103== Releasing lock... [2025-01-02 09:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:43:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-02 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:44:05 [end_date_ymd] => 2025-01-02 09:44:05 [RateCDR] => 1 ) [2025-01-02 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:44:05' and `end` < '2025-01-02 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:44:23] Production.INFO: count ==1871 [2025-01-02 09:44:24] Production.ERROR: pbx CDR StartTime 2025-01-02 06:44:05 - End Time 2025-01-02 09:44:05 [2025-01-02 09:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157382', 'tblTempUsageDetail_20' ) start [2025-01-02 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157382', 'tblTempUsageDetail_20' ) end [2025-01-02 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157382', 'tblTempVendorCDR_20' ) start [2025-01-02 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157382', 'tblTempVendorCDR_20' ) end [2025-01-02 09:44:24] Production.INFO: ProcessCDR(1,14157382,1,1,2) [2025-01-02 09:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157382', 'tblTempUsageDetail_20' ) start [2025-01-02 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157382', 'tblTempUsageDetail_20' ) end [2025-01-02 09:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:44:29] Production.INFO: ==22221== Releasing lock... [2025-01-02 09:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:44:29] Production.INFO: 42.25 MB #Memory Used# [2025-01-02 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:45:04 [end_date_ymd] => 2025-01-02 09:45:04 [RateCDR] => 1 ) [2025-01-02 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:45:04' and `end` < '2025-01-02 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:45:17] Production.INFO: count ==1883 [2025-01-02 09:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:45:04 - End Time 2025-01-02 09:45:04 [2025-01-02 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157389', 'tblTempUsageDetail_20' ) start [2025-01-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157389', 'tblTempUsageDetail_20' ) end [2025-01-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157389', 'tblTempVendorCDR_20' ) start [2025-01-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157389', 'tblTempVendorCDR_20' ) end [2025-01-02 09:45:18] Production.INFO: ProcessCDR(1,14157389,1,1,2) [2025-01-02 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157389', 'tblTempUsageDetail_20' ) start [2025-01-02 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157389', 'tblTempUsageDetail_20' ) end [2025-01-02 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:45:22] Production.INFO: ==22309== Releasing lock... [2025-01-02 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-02 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:46:05 [end_date_ymd] => 2025-01-02 09:46:05 [RateCDR] => 1 ) [2025-01-02 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:46:05' and `end` < '2025-01-02 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:46:20] Production.INFO: count ==1896 [2025-01-02 09:46:21] Production.ERROR: pbx CDR StartTime 2025-01-02 06:46:05 - End Time 2025-01-02 09:46:05 [2025-01-02 09:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157394', 'tblTempUsageDetail_20' ) start [2025-01-02 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157394', 'tblTempUsageDetail_20' ) end [2025-01-02 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157394', 'tblTempVendorCDR_20' ) start [2025-01-02 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157394', 'tblTempVendorCDR_20' ) end [2025-01-02 09:46:21] Production.INFO: ProcessCDR(1,14157394,1,1,2) [2025-01-02 09:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157394', 'tblTempUsageDetail_20' ) start [2025-01-02 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157394', 'tblTempUsageDetail_20' ) end [2025-01-02 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:46:26] Production.INFO: ==22394== Releasing lock... [2025-01-02 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:46:26] Production.INFO: 42.75 MB #Memory Used# [2025-01-02 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:47:05 [end_date_ymd] => 2025-01-02 09:47:05 [RateCDR] => 1 ) [2025-01-02 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:47:05' and `end` < '2025-01-02 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:47:18] Production.INFO: count ==1907 [2025-01-02 09:47:18] Production.ERROR: pbx CDR StartTime 2025-01-02 06:47:05 - End Time 2025-01-02 09:47:05 [2025-01-02 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157399', 'tblTempUsageDetail_20' ) start [2025-01-02 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157399', 'tblTempUsageDetail_20' ) end [2025-01-02 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157399', 'tblTempVendorCDR_20' ) start [2025-01-02 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157399', 'tblTempVendorCDR_20' ) end [2025-01-02 09:47:18] Production.INFO: ProcessCDR(1,14157399,1,1,2) [2025-01-02 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157399', 'tblTempUsageDetail_20' ) start [2025-01-02 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157399', 'tblTempUsageDetail_20' ) end [2025-01-02 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:47:23] Production.INFO: ==22479== Releasing lock... [2025-01-02 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:47:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-02 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:48:05 [end_date_ymd] => 2025-01-02 09:48:05 [RateCDR] => 1 ) [2025-01-02 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:48:05' and `end` < '2025-01-02 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:48:19] Production.INFO: count ==1909 [2025-01-02 09:48:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:48:05 - End Time 2025-01-02 09:48:05 [2025-01-02 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157404', 'tblTempUsageDetail_20' ) start [2025-01-02 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157404', 'tblTempUsageDetail_20' ) end [2025-01-02 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157404', 'tblTempVendorCDR_20' ) start [2025-01-02 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157404', 'tblTempVendorCDR_20' ) end [2025-01-02 09:48:20] Production.INFO: ProcessCDR(1,14157404,1,1,2) [2025-01-02 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157404', 'tblTempUsageDetail_20' ) start [2025-01-02 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157404', 'tblTempUsageDetail_20' ) end [2025-01-02 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:48:24] Production.INFO: ==22560== Releasing lock... [2025-01-02 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:48:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-02 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:49:05 [end_date_ymd] => 2025-01-02 09:49:05 [RateCDR] => 1 ) [2025-01-02 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:49:05' and `end` < '2025-01-02 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:49:23] Production.INFO: count ==1926 [2025-01-02 09:49:24] Production.ERROR: pbx CDR StartTime 2025-01-02 06:49:05 - End Time 2025-01-02 09:49:05 [2025-01-02 09:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157409', 'tblTempUsageDetail_20' ) start [2025-01-02 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157409', 'tblTempUsageDetail_20' ) end [2025-01-02 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157409', 'tblTempVendorCDR_20' ) start [2025-01-02 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157409', 'tblTempVendorCDR_20' ) end [2025-01-02 09:49:24] Production.INFO: ProcessCDR(1,14157409,1,1,2) [2025-01-02 09:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157409', 'tblTempUsageDetail_20' ) start [2025-01-02 09:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157409', 'tblTempUsageDetail_20' ) end [2025-01-02 09:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:49:28] Production.INFO: ==22638== Releasing lock... [2025-01-02 09:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:49:28] Production.INFO: 43 MB #Memory Used# [2025-01-02 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:50:05 [end_date_ymd] => 2025-01-02 09:50:05 [RateCDR] => 1 ) [2025-01-02 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:50:05' and `end` < '2025-01-02 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:50:20] Production.INFO: count ==1948 [2025-01-02 09:50:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:50:05 - End Time 2025-01-02 09:50:05 [2025-01-02 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157414', 'tblTempUsageDetail_20' ) start [2025-01-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157414', 'tblTempUsageDetail_20' ) end [2025-01-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157414', 'tblTempVendorCDR_20' ) start [2025-01-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157414', 'tblTempVendorCDR_20' ) end [2025-01-02 09:50:20] Production.INFO: ProcessCDR(1,14157414,1,1,2) [2025-01-02 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157414', 'tblTempUsageDetail_20' ) start [2025-01-02 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157414', 'tblTempUsageDetail_20' ) end [2025-01-02 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:50:25] Production.INFO: ==22722== Releasing lock... [2025-01-02 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:50:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-02 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:51:05 [end_date_ymd] => 2025-01-02 09:51:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:51:05' and `end` < '2025-01-02 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-01-02 09:51:19] Production.INFO: count ==2001 [2025-01-02 09:51:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:51:05 - End Time 2025-01-02 09:51:05 [2025-01-02 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157420', 'tblTempUsageDetail_20' ) start [2025-01-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157420', 'tblTempUsageDetail_20' ) end [2025-01-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157420', 'tblTempVendorCDR_20' ) start [2025-01-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157420', 'tblTempVendorCDR_20' ) end [2025-01-02 09:51:20] Production.INFO: ProcessCDR(1,14157420,1,1,2) [2025-01-02 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157420', 'tblTempUsageDetail_20' ) start [2025-01-02 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157420', 'tblTempUsageDetail_20' ) end [2025-01-02 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:51:25] Production.INFO: ==22800== Releasing lock... [2025-01-02 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:51:25] Production.INFO: 43.5 MB #Memory Used# [2025-01-02 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:52:05 [end_date_ymd] => 2025-01-02 09:52:05 [RateCDR] => 1 ) [2025-01-02 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:52:05' and `end` < '2025-01-02 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:52:21] Production.INFO: count ==2033 [2025-01-02 09:52:22] Production.ERROR: pbx CDR StartTime 2025-01-02 06:52:05 - End Time 2025-01-02 09:52:05 [2025-01-02 09:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157425', 'tblTempUsageDetail_20' ) start [2025-01-02 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157425', 'tblTempUsageDetail_20' ) end [2025-01-02 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157425', 'tblTempVendorCDR_20' ) start [2025-01-02 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157425', 'tblTempVendorCDR_20' ) end [2025-01-02 09:52:22] Production.INFO: ProcessCDR(1,14157425,1,1,2) [2025-01-02 09:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157425', 'tblTempUsageDetail_20' ) start [2025-01-02 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157425', 'tblTempUsageDetail_20' ) end [2025-01-02 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:52:27] Production.INFO: ==22918== Releasing lock... [2025-01-02 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:52:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-02 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:53:05 [end_date_ymd] => 2025-01-02 09:53:05 [RateCDR] => 1 ) [2025-01-02 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:53:05' and `end` < '2025-01-02 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:53:19] Production.INFO: count ==2038 [2025-01-02 09:53:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:53:05 - End Time 2025-01-02 09:53:05 [2025-01-02 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157430', 'tblTempUsageDetail_20' ) start [2025-01-02 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157430', 'tblTempUsageDetail_20' ) end [2025-01-02 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157430', 'tblTempVendorCDR_20' ) start [2025-01-02 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157430', 'tblTempVendorCDR_20' ) end [2025-01-02 09:53:20] Production.INFO: ProcessCDR(1,14157430,1,1,2) [2025-01-02 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157430', 'tblTempUsageDetail_20' ) start [2025-01-02 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157430', 'tblTempUsageDetail_20' ) end [2025-01-02 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:53:25] Production.INFO: ==22992== Releasing lock... [2025-01-02 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:53:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-02 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:54:05 [end_date_ymd] => 2025-01-02 09:54:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 06:54:05' and `end` < '2025-01-02 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-01-02 09:54:19] Production.INFO: count ==2043 [2025-01-02 09:54:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:54:05 - End Time 2025-01-02 09:54:05 [2025-01-02 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157435', 'tblTempUsageDetail_20' ) start [2025-01-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157435', 'tblTempUsageDetail_20' ) end [2025-01-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157435', 'tblTempVendorCDR_20' ) start [2025-01-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157435', 'tblTempVendorCDR_20' ) end [2025-01-02 09:54:20] Production.INFO: ProcessCDR(1,14157435,1,1,2) [2025-01-02 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157435', 'tblTempUsageDetail_20' ) start [2025-01-02 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157435', 'tblTempUsageDetail_20' ) end [2025-01-02 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:54:24] Production.INFO: ==23075== Releasing lock... [2025-01-02 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:54:24] Production.INFO: 44 MB #Memory Used# [2025-01-02 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:55:05 [end_date_ymd] => 2025-01-02 09:55:05 [RateCDR] => 1 ) [2025-01-02 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:55:05' and `end` < '2025-01-02 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:55:18] Production.INFO: count ==2045 [2025-01-02 09:55:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:55:05 - End Time 2025-01-02 09:55:05 [2025-01-02 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157440', 'tblTempUsageDetail_20' ) start [2025-01-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157440', 'tblTempUsageDetail_20' ) end [2025-01-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157440', 'tblTempVendorCDR_20' ) start [2025-01-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157440', 'tblTempVendorCDR_20' ) end [2025-01-02 09:55:19] Production.INFO: ProcessCDR(1,14157440,1,1,2) [2025-01-02 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157440', 'tblTempUsageDetail_20' ) start [2025-01-02 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157440', 'tblTempUsageDetail_20' ) end [2025-01-02 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:55:23] Production.INFO: ==23159== Releasing lock... [2025-01-02 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-02 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:56:05 [end_date_ymd] => 2025-01-02 09:56:05 [RateCDR] => 1 ) [2025-01-02 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:56:05' and `end` < '2025-01-02 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:56:19] Production.INFO: count ==2057 [2025-01-02 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:56:05 - End Time 2025-01-02 09:56:05 [2025-01-02 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157445', 'tblTempUsageDetail_20' ) start [2025-01-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157445', 'tblTempUsageDetail_20' ) end [2025-01-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157445', 'tblTempVendorCDR_20' ) start [2025-01-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157445', 'tblTempVendorCDR_20' ) end [2025-01-02 09:56:20] Production.INFO: ProcessCDR(1,14157445,1,1,2) [2025-01-02 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157445', 'tblTempUsageDetail_20' ) start [2025-01-02 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157445', 'tblTempUsageDetail_20' ) end [2025-01-02 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:56:25] Production.INFO: ==23238== Releasing lock... [2025-01-02 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:56:25] Production.INFO: 44 MB #Memory Used# [2025-01-02 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:57:05 [end_date_ymd] => 2025-01-02 09:57:05 [RateCDR] => 1 ) [2025-01-02 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:57:05' and `end` < '2025-01-02 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:57:18] Production.INFO: count ==2077 [2025-01-02 09:57:19] Production.ERROR: pbx CDR StartTime 2025-01-02 06:57:05 - End Time 2025-01-02 09:57:05 [2025-01-02 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157450', 'tblTempUsageDetail_20' ) start [2025-01-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157450', 'tblTempUsageDetail_20' ) end [2025-01-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157450', 'tblTempVendorCDR_20' ) start [2025-01-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157450', 'tblTempVendorCDR_20' ) end [2025-01-02 09:57:19] Production.INFO: ProcessCDR(1,14157450,1,1,2) [2025-01-02 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157450', 'tblTempUsageDetail_20' ) start [2025-01-02 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157450', 'tblTempUsageDetail_20' ) end [2025-01-02 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:57:24] Production.INFO: ==23314== Releasing lock... [2025-01-02 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:57:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-02 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:58:05 [end_date_ymd] => 2025-01-02 09:58:05 [RateCDR] => 1 ) [2025-01-02 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:58:05' and `end` < '2025-01-02 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:58:19] Production.INFO: count ==2093 [2025-01-02 09:58:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:58:05 - End Time 2025-01-02 09:58:05 [2025-01-02 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157455', 'tblTempUsageDetail_20' ) start [2025-01-02 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157455', 'tblTempUsageDetail_20' ) end [2025-01-02 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157455', 'tblTempVendorCDR_20' ) start [2025-01-02 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157455', 'tblTempVendorCDR_20' ) end [2025-01-02 09:58:20] Production.INFO: ProcessCDR(1,14157455,1,1,2) [2025-01-02 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157455', 'tblTempUsageDetail_20' ) start [2025-01-02 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157455', 'tblTempUsageDetail_20' ) end [2025-01-02 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:58:25] Production.INFO: ==23398== Releasing lock... [2025-01-02 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:58:25] Production.INFO: 44.5 MB #Memory Used# [2025-01-02 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 06:59:05 [end_date_ymd] => 2025-01-02 09:59:05 [RateCDR] => 1 ) [2025-01-02 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 06:59:05' and `end` < '2025-01-02 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 09:59:19] Production.INFO: count ==2109 [2025-01-02 09:59:20] Production.ERROR: pbx CDR StartTime 2025-01-02 06:59:05 - End Time 2025-01-02 09:59:05 [2025-01-02 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157460', 'tblTempUsageDetail_20' ) start [2025-01-02 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157460', 'tblTempUsageDetail_20' ) end [2025-01-02 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157460', 'tblTempVendorCDR_20' ) start [2025-01-02 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157460', 'tblTempVendorCDR_20' ) end [2025-01-02 09:59:20] Production.INFO: ProcessCDR(1,14157460,1,1,2) [2025-01-02 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157460', 'tblTempUsageDetail_20' ) start [2025-01-02 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157460', 'tblTempUsageDetail_20' ) end [2025-01-02 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 09:59:25] Production.INFO: ==23477== Releasing lock... [2025-01-02 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 09:59:25] Production.INFO: 44.25 MB #Memory Used# [2025-01-02 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:00:05 [end_date_ymd] => 2025-01-02 10:00:05 [RateCDR] => 1 ) [2025-01-02 10:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:00:05' and `end` < '2025-01-02 10:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:00:28] Production.INFO: count ==2161 [2025-01-02 10:00:29] Production.ERROR: pbx CDR StartTime 2025-01-02 07:00:05 - End Time 2025-01-02 10:00:05 [2025-01-02 10:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157465', 'tblTempUsageDetail_20' ) start [2025-01-02 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157465', 'tblTempUsageDetail_20' ) end [2025-01-02 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157465', 'tblTempVendorCDR_20' ) start [2025-01-02 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157465', 'tblTempVendorCDR_20' ) end [2025-01-02 10:00:29] Production.INFO: ProcessCDR(1,14157465,1,1,2) [2025-01-02 10:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157465', 'tblTempUsageDetail_20' ) start [2025-01-02 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157465', 'tblTempUsageDetail_20' ) end [2025-01-02 10:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:00:34] Production.INFO: ==23560== Releasing lock... [2025-01-02 10:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:00:34] Production.INFO: 44.25 MB #Memory Used# [2025-01-02 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:01:05 [end_date_ymd] => 2025-01-02 10:01:05 [RateCDR] => 1 ) [2025-01-02 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:01:05' and `end` < '2025-01-02 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:01:21] Production.INFO: count ==2247 [2025-01-02 10:01:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:01:05 - End Time 2025-01-02 10:01:05 [2025-01-02 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157471', 'tblTempUsageDetail_20' ) start [2025-01-02 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157471', 'tblTempUsageDetail_20' ) end [2025-01-02 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157471', 'tblTempVendorCDR_20' ) start [2025-01-02 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157471', 'tblTempVendorCDR_20' ) end [2025-01-02 10:01:22] Production.INFO: ProcessCDR(1,14157471,1,1,2) [2025-01-02 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157471', 'tblTempUsageDetail_20' ) start [2025-01-02 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157471', 'tblTempUsageDetail_20' ) end [2025-01-02 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:01:26] Production.INFO: ==23653== Releasing lock... [2025-01-02 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:01:26] Production.INFO: 45 MB #Memory Used# [2025-01-02 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:02:04 [end_date_ymd] => 2025-01-02 10:02:04 [RateCDR] => 1 ) [2025-01-02 10:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:02:04' and `end` < '2025-01-02 10:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:02:18] Production.INFO: count ==2254 [2025-01-02 10:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:02:04 - End Time 2025-01-02 10:02:04 [2025-01-02 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157476', 'tblTempUsageDetail_20' ) start [2025-01-02 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157476', 'tblTempUsageDetail_20' ) end [2025-01-02 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157476', 'tblTempVendorCDR_20' ) start [2025-01-02 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157476', 'tblTempVendorCDR_20' ) end [2025-01-02 10:02:19] Production.INFO: ProcessCDR(1,14157476,1,1,2) [2025-01-02 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157476', 'tblTempUsageDetail_20' ) start [2025-01-02 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157476', 'tblTempUsageDetail_20' ) end [2025-01-02 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:02:24] Production.INFO: ==23723== Releasing lock... [2025-01-02 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:02:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-02 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:03:05 [end_date_ymd] => 2025-01-02 10:03:05 [RateCDR] => 1 ) [2025-01-02 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:03:05' and `end` < '2025-01-02 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:03:23] Production.INFO: count ==2269 [2025-01-02 10:03:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:03:05 - End Time 2025-01-02 10:03:05 [2025-01-02 10:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157481', 'tblTempUsageDetail_20' ) start [2025-01-02 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157481', 'tblTempUsageDetail_20' ) end [2025-01-02 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157481', 'tblTempVendorCDR_20' ) start [2025-01-02 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157481', 'tblTempVendorCDR_20' ) end [2025-01-02 10:03:24] Production.INFO: ProcessCDR(1,14157481,1,1,2) [2025-01-02 10:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157481', 'tblTempUsageDetail_20' ) start [2025-01-02 10:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157481', 'tblTempUsageDetail_20' ) end [2025-01-02 10:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:03:29] Production.INFO: ==23793== Releasing lock... [2025-01-02 10:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:03:29] Production.INFO: 45 MB #Memory Used# [2025-01-02 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:04:05 [end_date_ymd] => 2025-01-02 10:04:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:04:05' and `end` < '2025-01-02 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-01-02 10:04:20] Production.INFO: count ==2280 [2025-01-02 10:04:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:04:05 - End Time 2025-01-02 10:04:05 [2025-01-02 10:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157486', 'tblTempUsageDetail_20' ) start [2025-01-02 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157486', 'tblTempUsageDetail_20' ) end [2025-01-02 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157486', 'tblTempVendorCDR_20' ) start [2025-01-02 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157486', 'tblTempVendorCDR_20' ) end [2025-01-02 10:04:21] Production.INFO: ProcessCDR(1,14157486,1,1,2) [2025-01-02 10:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157486', 'tblTempUsageDetail_20' ) start [2025-01-02 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157486', 'tblTempUsageDetail_20' ) end [2025-01-02 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:04:26] Production.INFO: ==23869== Releasing lock... [2025-01-02 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:04:26] Production.INFO: 45.5 MB #Memory Used# [2025-01-02 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:05:05 [end_date_ymd] => 2025-01-02 10:05:05 [RateCDR] => 1 ) [2025-01-02 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:05:05' and `end` < '2025-01-02 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:05:19] Production.INFO: count ==2284 [2025-01-02 10:05:20] Production.ERROR: pbx CDR StartTime 2025-01-02 07:05:05 - End Time 2025-01-02 10:05:05 [2025-01-02 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157491', 'tblTempUsageDetail_20' ) start [2025-01-02 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157491', 'tblTempUsageDetail_20' ) end [2025-01-02 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157491', 'tblTempVendorCDR_20' ) start [2025-01-02 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157491', 'tblTempVendorCDR_20' ) end [2025-01-02 10:05:20] Production.INFO: ProcessCDR(1,14157491,1,1,2) [2025-01-02 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157491', 'tblTempUsageDetail_20' ) start [2025-01-02 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157491', 'tblTempUsageDetail_20' ) end [2025-01-02 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:05:24] Production.INFO: ==23938== Releasing lock... [2025-01-02 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:05:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-02 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:06:05 [end_date_ymd] => 2025-01-02 10:06:05 [RateCDR] => 1 ) [2025-01-02 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:06:05' and `end` < '2025-01-02 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:06:21] Production.INFO: count ==2292 [2025-01-02 10:06:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:06:05 - End Time 2025-01-02 10:06:05 [2025-01-02 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157496', 'tblTempUsageDetail_20' ) start [2025-01-02 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157496', 'tblTempUsageDetail_20' ) end [2025-01-02 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157496', 'tblTempVendorCDR_20' ) start [2025-01-02 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157496', 'tblTempVendorCDR_20' ) end [2025-01-02 10:06:22] Production.INFO: ProcessCDR(1,14157496,1,1,2) [2025-01-02 10:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157496', 'tblTempUsageDetail_20' ) start [2025-01-02 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157496', 'tblTempUsageDetail_20' ) end [2025-01-02 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:06:26] Production.INFO: ==24014== Releasing lock... [2025-01-02 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:06:26] Production.INFO: 45.5 MB #Memory Used# [2025-01-02 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:07:05 [end_date_ymd] => 2025-01-02 10:07:05 [RateCDR] => 1 ) [2025-01-02 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:07:05' and `end` < '2025-01-02 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:07:25] Production.INFO: count ==2308 [2025-01-02 10:07:26] Production.ERROR: pbx CDR StartTime 2025-01-02 07:07:05 - End Time 2025-01-02 10:07:05 [2025-01-02 10:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157501', 'tblTempUsageDetail_20' ) start [2025-01-02 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157501', 'tblTempUsageDetail_20' ) end [2025-01-02 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157501', 'tblTempVendorCDR_20' ) start [2025-01-02 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157501', 'tblTempVendorCDR_20' ) end [2025-01-02 10:07:26] Production.INFO: ProcessCDR(1,14157501,1,1,2) [2025-01-02 10:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157501', 'tblTempUsageDetail_20' ) start [2025-01-02 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157501', 'tblTempUsageDetail_20' ) end [2025-01-02 10:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:07:30] Production.INFO: ==24087== Releasing lock... [2025-01-02 10:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:07:30] Production.INFO: 45.5 MB #Memory Used# [2025-01-02 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:08:05 [end_date_ymd] => 2025-01-02 10:08:05 [RateCDR] => 1 ) [2025-01-02 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:08:05' and `end` < '2025-01-02 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:08:20] Production.INFO: count ==2313 [2025-01-02 10:08:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:08:05 - End Time 2025-01-02 10:08:05 [2025-01-02 10:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157506', 'tblTempUsageDetail_20' ) start [2025-01-02 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157506', 'tblTempUsageDetail_20' ) end [2025-01-02 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157506', 'tblTempVendorCDR_20' ) start [2025-01-02 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157506', 'tblTempVendorCDR_20' ) end [2025-01-02 10:08:21] Production.INFO: ProcessCDR(1,14157506,1,1,2) [2025-01-02 10:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157506', 'tblTempUsageDetail_20' ) start [2025-01-02 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157506', 'tblTempUsageDetail_20' ) end [2025-01-02 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:08:26] Production.INFO: ==24197== Releasing lock... [2025-01-02 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:08:26] Production.INFO: 45.5 MB #Memory Used# [2025-01-02 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:09:05 [end_date_ymd] => 2025-01-02 10:09:05 [RateCDR] => 1 ) [2025-01-02 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:09:05' and `end` < '2025-01-02 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:09:24] Production.INFO: count ==2368 [2025-01-02 10:09:25] Production.ERROR: pbx CDR StartTime 2025-01-02 07:09:05 - End Time 2025-01-02 10:09:05 [2025-01-02 10:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157511', 'tblTempUsageDetail_20' ) start [2025-01-02 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157511', 'tblTempUsageDetail_20' ) end [2025-01-02 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157511', 'tblTempVendorCDR_20' ) start [2025-01-02 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157511', 'tblTempVendorCDR_20' ) end [2025-01-02 10:09:25] Production.INFO: ProcessCDR(1,14157511,1,1,2) [2025-01-02 10:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157511', 'tblTempUsageDetail_20' ) start [2025-01-02 10:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157511', 'tblTempUsageDetail_20' ) end [2025-01-02 10:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:09:30] Production.INFO: ==24268== Releasing lock... [2025-01-02 10:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:09:30] Production.INFO: 46 MB #Memory Used# [2025-01-02 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:10:05 [end_date_ymd] => 2025-01-02 10:10:05 [RateCDR] => 1 ) [2025-01-02 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:10:05' and `end` < '2025-01-02 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:10:27] Production.INFO: count ==2396 [2025-01-02 10:10:28] Production.ERROR: pbx CDR StartTime 2025-01-02 07:10:05 - End Time 2025-01-02 10:10:05 [2025-01-02 10:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157516', 'tblTempUsageDetail_20' ) start [2025-01-02 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157516', 'tblTempUsageDetail_20' ) end [2025-01-02 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157516', 'tblTempVendorCDR_20' ) start [2025-01-02 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157516', 'tblTempVendorCDR_20' ) end [2025-01-02 10:10:28] Production.INFO: ProcessCDR(1,14157516,1,1,2) [2025-01-02 10:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157516', 'tblTempUsageDetail_20' ) start [2025-01-02 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157516', 'tblTempUsageDetail_20' ) end [2025-01-02 10:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:10:32] Production.INFO: ==24340== Releasing lock... [2025-01-02 10:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:10:32] Production.INFO: 46.5 MB #Memory Used# [2025-01-02 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:11:05 [end_date_ymd] => 2025-01-02 10:11:05 [RateCDR] => 1 ) [2025-01-02 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:11:05' and `end` < '2025-01-02 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:11:23] Production.INFO: count ==2454 [2025-01-02 10:11:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:11:05 - End Time 2025-01-02 10:11:05 [2025-01-02 10:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157522', 'tblTempUsageDetail_20' ) start [2025-01-02 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157522', 'tblTempUsageDetail_20' ) end [2025-01-02 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157522', 'tblTempVendorCDR_20' ) start [2025-01-02 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157522', 'tblTempVendorCDR_20' ) end [2025-01-02 10:11:24] Production.INFO: ProcessCDR(1,14157522,1,1,2) [2025-01-02 10:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157522', 'tblTempUsageDetail_20' ) start [2025-01-02 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157522', 'tblTempUsageDetail_20' ) end [2025-01-02 10:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:11:29] Production.INFO: ==24415== Releasing lock... [2025-01-02 10:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:11:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-02 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:12:05 [end_date_ymd] => 2025-01-02 10:12:05 [RateCDR] => 1 ) [2025-01-02 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:12:05' and `end` < '2025-01-02 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:12:18] Production.INFO: count ==2473 [2025-01-02 10:12:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:12:05 - End Time 2025-01-02 10:12:05 [2025-01-02 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157527', 'tblTempUsageDetail_20' ) start [2025-01-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157527', 'tblTempUsageDetail_20' ) end [2025-01-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157527', 'tblTempVendorCDR_20' ) start [2025-01-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157527', 'tblTempVendorCDR_20' ) end [2025-01-02 10:12:19] Production.INFO: ProcessCDR(1,14157527,1,1,2) [2025-01-02 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157527', 'tblTempUsageDetail_20' ) start [2025-01-02 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157527', 'tblTempUsageDetail_20' ) end [2025-01-02 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:12:24] Production.INFO: ==24493== Releasing lock... [2025-01-02 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:12:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-02 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:13:05 [end_date_ymd] => 2025-01-02 10:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:13:05' and `end` < '2025-01-02 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-01-02 10:13:18] Production.INFO: count ==2490 [2025-01-02 10:13:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:13:05 - End Time 2025-01-02 10:13:05 [2025-01-02 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157532', 'tblTempUsageDetail_20' ) start [2025-01-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157532', 'tblTempUsageDetail_20' ) end [2025-01-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157532', 'tblTempVendorCDR_20' ) start [2025-01-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157532', 'tblTempVendorCDR_20' ) end [2025-01-02 10:13:19] Production.INFO: ProcessCDR(1,14157532,1,1,2) [2025-01-02 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157532', 'tblTempUsageDetail_20' ) start [2025-01-02 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157532', 'tblTempUsageDetail_20' ) end [2025-01-02 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:13:24] Production.INFO: ==24564== Releasing lock... [2025-01-02 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:13:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-02 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:14:05 [end_date_ymd] => 2025-01-02 10:14:05 [RateCDR] => 1 ) [2025-01-02 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:14:05' and `end` < '2025-01-02 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:14:33] Production.INFO: count ==2506 [2025-01-02 10:14:34] Production.ERROR: pbx CDR StartTime 2025-01-02 07:14:05 - End Time 2025-01-02 10:14:05 [2025-01-02 10:14:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157537', 'tblTempUsageDetail_20' ) start [2025-01-02 10:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157537', 'tblTempUsageDetail_20' ) end [2025-01-02 10:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157537', 'tblTempVendorCDR_20' ) start [2025-01-02 10:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157537', 'tblTempVendorCDR_20' ) end [2025-01-02 10:14:34] Production.INFO: ProcessCDR(1,14157537,1,1,2) [2025-01-02 10:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:14:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157537', 'tblTempUsageDetail_20' ) start [2025-01-02 10:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157537', 'tblTempUsageDetail_20' ) end [2025-01-02 10:14:39] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:14:39] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:14:39] Production.INFO: ==24636== Releasing lock... [2025-01-02 10:14:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:14:39] Production.INFO: 47.25 MB #Memory Used# [2025-01-02 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:15:04 [end_date_ymd] => 2025-01-02 10:15:04 [RateCDR] => 1 ) [2025-01-02 10:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:15:04' and `end` < '2025-01-02 10:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:15:32] Production.INFO: count ==2533 [2025-01-02 10:15:33] Production.ERROR: pbx CDR StartTime 2025-01-02 07:15:04 - End Time 2025-01-02 10:15:04 [2025-01-02 10:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157542', 'tblTempUsageDetail_20' ) start [2025-01-02 10:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157542', 'tblTempUsageDetail_20' ) end [2025-01-02 10:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157542', 'tblTempVendorCDR_20' ) start [2025-01-02 10:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157542', 'tblTempVendorCDR_20' ) end [2025-01-02 10:15:33] Production.INFO: ProcessCDR(1,14157542,1,1,2) [2025-01-02 10:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157542', 'tblTempUsageDetail_20' ) start [2025-01-02 10:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157542', 'tblTempUsageDetail_20' ) end [2025-01-02 10:15:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:15:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:15:38] Production.INFO: ==24705== Releasing lock... [2025-01-02 10:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:15:38] Production.INFO: 47.25 MB #Memory Used# [2025-01-02 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:16:05 [end_date_ymd] => 2025-01-02 10:16:05 [RateCDR] => 1 ) [2025-01-02 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:16:05' and `end` < '2025-01-02 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:16:25] Production.INFO: count ==2550 [2025-01-02 10:16:27] Production.ERROR: pbx CDR StartTime 2025-01-02 07:16:05 - End Time 2025-01-02 10:16:05 [2025-01-02 10:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157547', 'tblTempUsageDetail_20' ) start [2025-01-02 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157547', 'tblTempUsageDetail_20' ) end [2025-01-02 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157547', 'tblTempVendorCDR_20' ) start [2025-01-02 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157547', 'tblTempVendorCDR_20' ) end [2025-01-02 10:16:27] Production.INFO: ProcessCDR(1,14157547,1,1,2) [2025-01-02 10:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157547', 'tblTempUsageDetail_20' ) start [2025-01-02 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157547', 'tblTempUsageDetail_20' ) end [2025-01-02 10:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:16:31] Production.INFO: ==24779== Releasing lock... [2025-01-02 10:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:16:31] Production.INFO: 47.75 MB #Memory Used# [2025-01-02 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:17:04 [end_date_ymd] => 2025-01-02 10:17:04 [RateCDR] => 1 ) [2025-01-02 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:17:04' and `end` < '2025-01-02 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:17:22] Production.INFO: count ==2564 [2025-01-02 10:17:23] Production.ERROR: pbx CDR StartTime 2025-01-02 07:17:04 - End Time 2025-01-02 10:17:04 [2025-01-02 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157552', 'tblTempUsageDetail_20' ) start [2025-01-02 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157552', 'tblTempUsageDetail_20' ) end [2025-01-02 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157552', 'tblTempVendorCDR_20' ) start [2025-01-02 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157552', 'tblTempVendorCDR_20' ) end [2025-01-02 10:17:23] Production.INFO: ProcessCDR(1,14157552,1,1,2) [2025-01-02 10:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157552', 'tblTempUsageDetail_20' ) start [2025-01-02 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157552', 'tblTempUsageDetail_20' ) end [2025-01-02 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:17:28] Production.INFO: ==24850== Releasing lock... [2025-01-02 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:17:28] Production.INFO: 48.75 MB #Memory Used# [2025-01-02 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:18:05 [end_date_ymd] => 2025-01-02 10:18:05 [RateCDR] => 1 ) [2025-01-02 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:18:05' and `end` < '2025-01-02 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:18:20] Production.INFO: count ==2574 [2025-01-02 10:18:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:18:05 - End Time 2025-01-02 10:18:05 [2025-01-02 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157557', 'tblTempUsageDetail_20' ) start [2025-01-02 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157557', 'tblTempUsageDetail_20' ) end [2025-01-02 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157557', 'tblTempVendorCDR_20' ) start [2025-01-02 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157557', 'tblTempVendorCDR_20' ) end [2025-01-02 10:18:21] Production.INFO: ProcessCDR(1,14157557,1,1,2) [2025-01-02 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157557', 'tblTempUsageDetail_20' ) start [2025-01-02 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157557', 'tblTempUsageDetail_20' ) end [2025-01-02 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:18:26] Production.INFO: ==24921== Releasing lock... [2025-01-02 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:18:26] Production.INFO: 48 MB #Memory Used# [2025-01-02 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:19:05 [end_date_ymd] => 2025-01-02 10:19:05 [RateCDR] => 1 ) [2025-01-02 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:19:05' and `end` < '2025-01-02 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:19:20] Production.INFO: count ==2592 [2025-01-02 10:19:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:19:05 - End Time 2025-01-02 10:19:05 [2025-01-02 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157562', 'tblTempUsageDetail_20' ) start [2025-01-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157562', 'tblTempUsageDetail_20' ) end [2025-01-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157562', 'tblTempVendorCDR_20' ) start [2025-01-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157562', 'tblTempVendorCDR_20' ) end [2025-01-02 10:19:21] Production.INFO: ProcessCDR(1,14157562,1,1,2) [2025-01-02 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157562', 'tblTempUsageDetail_20' ) start [2025-01-02 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157562', 'tblTempUsageDetail_20' ) end [2025-01-02 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:19:26] Production.INFO: ==24990== Releasing lock... [2025-01-02 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:19:26] Production.INFO: 48.25 MB #Memory Used# [2025-01-02 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:20:06 [end_date_ymd] => 2025-01-02 10:20:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:20:06' and `end` < '2025-01-02 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-01-02 10:20:24] Production.INFO: count ==2606 [2025-01-02 10:20:25] Production.ERROR: pbx CDR StartTime 2025-01-02 07:20:06 - End Time 2025-01-02 10:20:06 [2025-01-02 10:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157568', 'tblTempUsageDetail_20' ) start [2025-01-02 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157568', 'tblTempUsageDetail_20' ) end [2025-01-02 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157568', 'tblTempVendorCDR_20' ) start [2025-01-02 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157568', 'tblTempVendorCDR_20' ) end [2025-01-02 10:20:25] Production.INFO: ProcessCDR(1,14157568,1,1,2) [2025-01-02 10:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157568', 'tblTempUsageDetail_20' ) start [2025-01-02 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157568', 'tblTempUsageDetail_20' ) end [2025-01-02 10:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:20:30] Production.INFO: ==25064== Releasing lock... [2025-01-02 10:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:20:30] Production.INFO: 48 MB #Memory Used# [2025-01-02 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:21:05 [end_date_ymd] => 2025-01-02 10:21:05 [RateCDR] => 1 ) [2025-01-02 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:21:05' and `end` < '2025-01-02 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:21:20] Production.INFO: count ==2681 [2025-01-02 10:21:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:21:05 - End Time 2025-01-02 10:21:05 [2025-01-02 10:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157573', 'tblTempUsageDetail_20' ) start [2025-01-02 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157573', 'tblTempUsageDetail_20' ) end [2025-01-02 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157573', 'tblTempVendorCDR_20' ) start [2025-01-02 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157573', 'tblTempVendorCDR_20' ) end [2025-01-02 10:21:22] Production.INFO: ProcessCDR(1,14157573,1,1,2) [2025-01-02 10:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157573', 'tblTempUsageDetail_20' ) start [2025-01-02 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157573', 'tblTempUsageDetail_20' ) end [2025-01-02 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:21:26] Production.INFO: ==25137== Releasing lock... [2025-01-02 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:21:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-02 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:22:05 [end_date_ymd] => 2025-01-02 10:22:05 [RateCDR] => 1 ) [2025-01-02 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:22:05' and `end` < '2025-01-02 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:22:18] Production.INFO: count ==2698 [2025-01-02 10:22:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:22:05 - End Time 2025-01-02 10:22:05 [2025-01-02 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157578', 'tblTempUsageDetail_20' ) start [2025-01-02 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157578', 'tblTempUsageDetail_20' ) end [2025-01-02 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157578', 'tblTempVendorCDR_20' ) start [2025-01-02 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157578', 'tblTempVendorCDR_20' ) end [2025-01-02 10:22:19] Production.INFO: ProcessCDR(1,14157578,1,1,2) [2025-01-02 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157578', 'tblTempUsageDetail_20' ) start [2025-01-02 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157578', 'tblTempUsageDetail_20' ) end [2025-01-02 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:22:24] Production.INFO: ==25207== Releasing lock... [2025-01-02 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:22:24] Production.INFO: 49 MB #Memory Used# [2025-01-02 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:23:05 [end_date_ymd] => 2025-01-02 10:23:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:23:05' and `end` < '2025-01-02 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-01-02 10:23:21] Production.INFO: count ==2723 [2025-01-02 10:23:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:23:05 - End Time 2025-01-02 10:23:05 [2025-01-02 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157583', 'tblTempUsageDetail_20' ) start [2025-01-02 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157583', 'tblTempUsageDetail_20' ) end [2025-01-02 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157583', 'tblTempVendorCDR_20' ) start [2025-01-02 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157583', 'tblTempVendorCDR_20' ) end [2025-01-02 10:23:22] Production.INFO: ProcessCDR(1,14157583,1,1,2) [2025-01-02 10:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157583', 'tblTempUsageDetail_20' ) start [2025-01-02 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157583', 'tblTempUsageDetail_20' ) end [2025-01-02 10:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:23:27] Production.INFO: ==25320== Releasing lock... [2025-01-02 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:23:27] Production.INFO: 48.25 MB #Memory Used# [2025-01-02 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:24:05 [end_date_ymd] => 2025-01-02 10:24:05 [RateCDR] => 1 ) [2025-01-02 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:24:05' and `end` < '2025-01-02 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:24:19] Production.INFO: count ==2735 [2025-01-02 10:24:20] Production.ERROR: pbx CDR StartTime 2025-01-02 07:24:05 - End Time 2025-01-02 10:24:05 [2025-01-02 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157588', 'tblTempUsageDetail_20' ) start [2025-01-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157588', 'tblTempUsageDetail_20' ) end [2025-01-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157588', 'tblTempVendorCDR_20' ) start [2025-01-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157588', 'tblTempVendorCDR_20' ) end [2025-01-02 10:24:20] Production.INFO: ProcessCDR(1,14157588,1,1,2) [2025-01-02 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157588', 'tblTempUsageDetail_20' ) start [2025-01-02 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157588', 'tblTempUsageDetail_20' ) end [2025-01-02 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:24:25] Production.INFO: ==25393== Releasing lock... [2025-01-02 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:24:25] Production.INFO: 48.75 MB #Memory Used# [2025-01-02 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:25:05 [end_date_ymd] => 2025-01-02 10:25:05 [RateCDR] => 1 ) [2025-01-02 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:25:05' and `end` < '2025-01-02 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-01-02 10:25:18] Production.INFO: count ==2741 [2025-01-02 10:25:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:25:05 - End Time 2025-01-02 10:25:05 [2025-01-02 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157593', 'tblTempUsageDetail_20' ) start [2025-01-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157593', 'tblTempUsageDetail_20' ) end [2025-01-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157593', 'tblTempVendorCDR_20' ) start [2025-01-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157593', 'tblTempVendorCDR_20' ) end [2025-01-02 10:25:19] Production.INFO: ProcessCDR(1,14157593,1,1,2) [2025-01-02 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157593', 'tblTempUsageDetail_20' ) start [2025-01-02 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157593', 'tblTempUsageDetail_20' ) end [2025-01-02 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:25:23] Production.INFO: ==25463== Releasing lock... [2025-01-02 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:25:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:26:05 [end_date_ymd] => 2025-01-02 10:26:05 [RateCDR] => 1 ) [2025-01-02 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:26:05' and `end` < '2025-01-02 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:26:20] Production.INFO: count ==2755 [2025-01-02 10:26:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:26:05 - End Time 2025-01-02 10:26:05 [2025-01-02 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157598', 'tblTempUsageDetail_20' ) start [2025-01-02 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157598', 'tblTempUsageDetail_20' ) end [2025-01-02 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157598', 'tblTempVendorCDR_20' ) start [2025-01-02 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157598', 'tblTempVendorCDR_20' ) end [2025-01-02 10:26:21] Production.INFO: ProcessCDR(1,14157598,1,1,2) [2025-01-02 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157598', 'tblTempUsageDetail_20' ) start [2025-01-02 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157598', 'tblTempUsageDetail_20' ) end [2025-01-02 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:26:26] Production.INFO: ==25533== Releasing lock... [2025-01-02 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:26:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-02 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:27:04 [end_date_ymd] => 2025-01-02 10:27:04 [RateCDR] => 1 ) [2025-01-02 10:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:27:04' and `end` < '2025-01-02 10:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:27:25] Production.INFO: count ==2761 [2025-01-02 10:27:26] Production.ERROR: pbx CDR StartTime 2025-01-02 07:27:04 - End Time 2025-01-02 10:27:04 [2025-01-02 10:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157603', 'tblTempUsageDetail_20' ) start [2025-01-02 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157603', 'tblTempUsageDetail_20' ) end [2025-01-02 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157603', 'tblTempVendorCDR_20' ) start [2025-01-02 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157603', 'tblTempVendorCDR_20' ) end [2025-01-02 10:27:26] Production.INFO: ProcessCDR(1,14157603,1,1,2) [2025-01-02 10:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157603', 'tblTempUsageDetail_20' ) start [2025-01-02 10:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157603', 'tblTempUsageDetail_20' ) end [2025-01-02 10:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:27:31] Production.INFO: ==25602== Releasing lock... [2025-01-02 10:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:27:31] Production.INFO: 48.75 MB #Memory Used# [2025-01-02 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:28:05 [end_date_ymd] => 2025-01-02 10:28:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:28:05' and `end` < '2025-01-02 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-01-02 10:28:21] Production.INFO: count ==2779 [2025-01-02 10:28:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:28:05 - End Time 2025-01-02 10:28:05 [2025-01-02 10:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157608', 'tblTempUsageDetail_20' ) start [2025-01-02 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157608', 'tblTempUsageDetail_20' ) end [2025-01-02 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157608', 'tblTempVendorCDR_20' ) start [2025-01-02 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157608', 'tblTempVendorCDR_20' ) end [2025-01-02 10:28:22] Production.INFO: ProcessCDR(1,14157608,1,1,2) [2025-01-02 10:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157608', 'tblTempUsageDetail_20' ) start [2025-01-02 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157608', 'tblTempUsageDetail_20' ) end [2025-01-02 10:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:28:27] Production.INFO: ==25672== Releasing lock... [2025-01-02 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:28:27] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:29:05 [end_date_ymd] => 2025-01-02 10:29:05 [RateCDR] => 1 ) [2025-01-02 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:29:05' and `end` < '2025-01-02 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:29:26] Production.INFO: count ==2801 [2025-01-02 10:29:27] Production.ERROR: pbx CDR StartTime 2025-01-02 07:29:05 - End Time 2025-01-02 10:29:05 [2025-01-02 10:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157613', 'tblTempUsageDetail_20' ) start [2025-01-02 10:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157613', 'tblTempUsageDetail_20' ) end [2025-01-02 10:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157613', 'tblTempVendorCDR_20' ) start [2025-01-02 10:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157613', 'tblTempVendorCDR_20' ) end [2025-01-02 10:29:28] Production.INFO: ProcessCDR(1,14157613,1,1,2) [2025-01-02 10:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157613', 'tblTempUsageDetail_20' ) start [2025-01-02 10:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157613', 'tblTempUsageDetail_20' ) end [2025-01-02 10:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:29:32] Production.INFO: ==25744== Releasing lock... [2025-01-02 10:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:29:32] Production.INFO: 49 MB #Memory Used# [2025-01-02 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:30:05 [end_date_ymd] => 2025-01-02 10:30:05 [RateCDR] => 1 ) [2025-01-02 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:30:05' and `end` < '2025-01-02 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:30:24] Production.INFO: count ==2816 [2025-01-02 10:30:25] Production.ERROR: pbx CDR StartTime 2025-01-02 07:30:05 - End Time 2025-01-02 10:30:05 [2025-01-02 10:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157618', 'tblTempUsageDetail_20' ) start [2025-01-02 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157618', 'tblTempUsageDetail_20' ) end [2025-01-02 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157618', 'tblTempVendorCDR_20' ) start [2025-01-02 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157618', 'tblTempVendorCDR_20' ) end [2025-01-02 10:30:25] Production.INFO: ProcessCDR(1,14157618,1,1,2) [2025-01-02 10:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157618', 'tblTempUsageDetail_20' ) start [2025-01-02 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157618', 'tblTempUsageDetail_20' ) end [2025-01-02 10:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:30:30] Production.INFO: ==25817== Releasing lock... [2025-01-02 10:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:30:30] Production.INFO: 49 MB #Memory Used# [2025-01-02 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:31:05 [end_date_ymd] => 2025-01-02 10:31:05 [RateCDR] => 1 ) [2025-01-02 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:31:05' and `end` < '2025-01-02 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:31:20] Production.INFO: count ==2889 [2025-01-02 10:31:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:31:05 - End Time 2025-01-02 10:31:05 [2025-01-02 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157624', 'tblTempUsageDetail_20' ) start [2025-01-02 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157624', 'tblTempUsageDetail_20' ) end [2025-01-02 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157624', 'tblTempVendorCDR_20' ) start [2025-01-02 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157624', 'tblTempVendorCDR_20' ) end [2025-01-02 10:31:22] Production.INFO: ProcessCDR(1,14157624,1,1,2) [2025-01-02 10:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157624', 'tblTempUsageDetail_20' ) start [2025-01-02 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157624', 'tblTempUsageDetail_20' ) end [2025-01-02 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:31:26] Production.INFO: ==25890== Releasing lock... [2025-01-02 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:31:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-02 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:32:04 [end_date_ymd] => 2025-01-02 10:32:04 [RateCDR] => 1 ) [2025-01-02 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:32:04' and `end` < '2025-01-02 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:32:18] Production.INFO: count ==2892 [2025-01-02 10:32:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:32:04 - End Time 2025-01-02 10:32:04 [2025-01-02 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157629', 'tblTempUsageDetail_20' ) start [2025-01-02 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157629', 'tblTempUsageDetail_20' ) end [2025-01-02 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157629', 'tblTempVendorCDR_20' ) start [2025-01-02 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157629', 'tblTempVendorCDR_20' ) end [2025-01-02 10:32:19] Production.INFO: ProcessCDR(1,14157629,1,1,2) [2025-01-02 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157629', 'tblTempUsageDetail_20' ) start [2025-01-02 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157629', 'tblTempUsageDetail_20' ) end [2025-01-02 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:32:23] Production.INFO: ==25959== Releasing lock... [2025-01-02 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:32:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:33:05 [end_date_ymd] => 2025-01-02 10:33:05 [RateCDR] => 1 ) [2025-01-02 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:33:05' and `end` < '2025-01-02 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:33:18] Production.INFO: count ==2899 [2025-01-02 10:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:33:05 - End Time 2025-01-02 10:33:05 [2025-01-02 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157634', 'tblTempUsageDetail_20' ) start [2025-01-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157634', 'tblTempUsageDetail_20' ) end [2025-01-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157634', 'tblTempVendorCDR_20' ) start [2025-01-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157634', 'tblTempVendorCDR_20' ) end [2025-01-02 10:33:19] Production.INFO: ProcessCDR(1,14157634,1,1,2) [2025-01-02 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157634', 'tblTempUsageDetail_20' ) start [2025-01-02 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157634', 'tblTempUsageDetail_20' ) end [2025-01-02 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:33:24] Production.INFO: ==26033== Releasing lock... [2025-01-02 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:33:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-02 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:34:05 [end_date_ymd] => 2025-01-02 10:34:05 [RateCDR] => 1 ) [2025-01-02 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:34:05' and `end` < '2025-01-02 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:34:20] Production.INFO: count ==2918 [2025-01-02 10:34:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:34:05 - End Time 2025-01-02 10:34:05 [2025-01-02 10:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157639', 'tblTempUsageDetail_20' ) start [2025-01-02 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157639', 'tblTempUsageDetail_20' ) end [2025-01-02 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157639', 'tblTempVendorCDR_20' ) start [2025-01-02 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157639', 'tblTempVendorCDR_20' ) end [2025-01-02 10:34:22] Production.INFO: ProcessCDR(1,14157639,1,1,2) [2025-01-02 10:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157639', 'tblTempUsageDetail_20' ) start [2025-01-02 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157639', 'tblTempUsageDetail_20' ) end [2025-01-02 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:34:26] Production.INFO: ==26103== Releasing lock... [2025-01-02 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:34:26] Production.INFO: 50.75 MB #Memory Used# [2025-01-02 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:35:05 [end_date_ymd] => 2025-01-02 10:35:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:35:05' and `end` < '2025-01-02 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-01-02 10:35:23] Production.INFO: count ==2918 [2025-01-02 10:35:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:35:05 - End Time 2025-01-02 10:35:05 [2025-01-02 10:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157644', 'tblTempUsageDetail_20' ) start [2025-01-02 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157644', 'tblTempUsageDetail_20' ) end [2025-01-02 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157644', 'tblTempVendorCDR_20' ) start [2025-01-02 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157644', 'tblTempVendorCDR_20' ) end [2025-01-02 10:35:24] Production.INFO: ProcessCDR(1,14157644,1,1,2) [2025-01-02 10:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157644', 'tblTempUsageDetail_20' ) start [2025-01-02 10:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157644', 'tblTempUsageDetail_20' ) end [2025-01-02 10:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:35:28] Production.INFO: ==26175== Releasing lock... [2025-01-02 10:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:35:28] Production.INFO: 50 MB #Memory Used# [2025-01-02 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:36:05 [end_date_ymd] => 2025-01-02 10:36:05 [RateCDR] => 1 ) [2025-01-02 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:36:05' and `end` < '2025-01-02 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:36:23] Production.INFO: count ==2928 [2025-01-02 10:36:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:36:05 - End Time 2025-01-02 10:36:05 [2025-01-02 10:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157649', 'tblTempUsageDetail_20' ) start [2025-01-02 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157649', 'tblTempUsageDetail_20' ) end [2025-01-02 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157649', 'tblTempVendorCDR_20' ) start [2025-01-02 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157649', 'tblTempVendorCDR_20' ) end [2025-01-02 10:36:24] Production.INFO: ProcessCDR(1,14157649,1,1,2) [2025-01-02 10:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157649', 'tblTempUsageDetail_20' ) start [2025-01-02 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157649', 'tblTempUsageDetail_20' ) end [2025-01-02 10:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:36:29] Production.INFO: ==26247== Releasing lock... [2025-01-02 10:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:36:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-02 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:37:04 [end_date_ymd] => 2025-01-02 10:37:04 [RateCDR] => 1 ) [2025-01-02 10:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:37:04' and `end` < '2025-01-02 10:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:37:22] Production.INFO: count ==2961 [2025-01-02 10:37:23] Production.ERROR: pbx CDR StartTime 2025-01-02 07:37:04 - End Time 2025-01-02 10:37:04 [2025-01-02 10:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157654', 'tblTempUsageDetail_20' ) start [2025-01-02 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157654', 'tblTempUsageDetail_20' ) end [2025-01-02 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157654', 'tblTempVendorCDR_20' ) start [2025-01-02 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157654', 'tblTempVendorCDR_20' ) end [2025-01-02 10:37:23] Production.INFO: ProcessCDR(1,14157654,1,1,2) [2025-01-02 10:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157654', 'tblTempUsageDetail_20' ) start [2025-01-02 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157654', 'tblTempUsageDetail_20' ) end [2025-01-02 10:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:37:28] Production.INFO: ==26316== Releasing lock... [2025-01-02 10:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:37:28] Production.INFO: 50 MB #Memory Used# [2025-01-02 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:38:05 [end_date_ymd] => 2025-01-02 10:38:05 [RateCDR] => 1 ) [2025-01-02 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:38:05' and `end` < '2025-01-02 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:38:21] Production.INFO: count ==2976 [2025-01-02 10:38:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:38:05 - End Time 2025-01-02 10:38:05 [2025-01-02 10:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157659', 'tblTempUsageDetail_20' ) start [2025-01-02 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157659', 'tblTempUsageDetail_20' ) end [2025-01-02 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157659', 'tblTempVendorCDR_20' ) start [2025-01-02 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157659', 'tblTempVendorCDR_20' ) end [2025-01-02 10:38:23] Production.INFO: ProcessCDR(1,14157659,1,1,2) [2025-01-02 10:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157659', 'tblTempUsageDetail_20' ) start [2025-01-02 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157659', 'tblTempUsageDetail_20' ) end [2025-01-02 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:38:26] Production.INFO: ==26387== Releasing lock... [2025-01-02 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:38:26] Production.INFO: 50.5 MB #Memory Used# [2025-01-02 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:39:05 [end_date_ymd] => 2025-01-02 10:39:05 [RateCDR] => 1 ) [2025-01-02 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:39:05' and `end` < '2025-01-02 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:39:18] Production.INFO: count ==2990 [2025-01-02 10:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:39:05 - End Time 2025-01-02 10:39:05 [2025-01-02 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157663', 'tblTempUsageDetail_20' ) start [2025-01-02 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157663', 'tblTempUsageDetail_20' ) end [2025-01-02 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157663', 'tblTempVendorCDR_20' ) start [2025-01-02 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157663', 'tblTempVendorCDR_20' ) end [2025-01-02 10:39:19] Production.INFO: ProcessCDR(1,14157663,1,1,2) [2025-01-02 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157663', 'tblTempUsageDetail_20' ) start [2025-01-02 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157663', 'tblTempUsageDetail_20' ) end [2025-01-02 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:39:23] Production.INFO: ==26503== Releasing lock... [2025-01-02 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:39:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-02 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:40:05 [end_date_ymd] => 2025-01-02 10:40:05 [RateCDR] => 1 ) [2025-01-02 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:40:05' and `end` < '2025-01-02 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:40:23] Production.INFO: count ==3000 [2025-01-02 10:40:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:40:05 - End Time 2025-01-02 10:40:05 [2025-01-02 10:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157669', 'tblTempUsageDetail_20' ) start [2025-01-02 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157669', 'tblTempUsageDetail_20' ) end [2025-01-02 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157669', 'tblTempVendorCDR_20' ) start [2025-01-02 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157669', 'tblTempVendorCDR_20' ) end [2025-01-02 10:40:24] Production.INFO: ProcessCDR(1,14157669,1,1,2) [2025-01-02 10:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157669', 'tblTempUsageDetail_20' ) start [2025-01-02 10:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157669', 'tblTempUsageDetail_20' ) end [2025-01-02 10:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:40:29] Production.INFO: ==26577== Releasing lock... [2025-01-02 10:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:40:29] Production.INFO: 50.25 MB #Memory Used# [2025-01-02 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:41:05 [end_date_ymd] => 2025-01-02 10:41:05 [RateCDR] => 1 ) [2025-01-02 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:41:05' and `end` < '2025-01-02 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:41:29] Production.INFO: count ==3082 [2025-01-02 10:41:30] Production.ERROR: pbx CDR StartTime 2025-01-02 07:41:05 - End Time 2025-01-02 10:41:05 [2025-01-02 10:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157675', 'tblTempUsageDetail_20' ) start [2025-01-02 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157675', 'tblTempUsageDetail_20' ) end [2025-01-02 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157675', 'tblTempVendorCDR_20' ) start [2025-01-02 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157675', 'tblTempVendorCDR_20' ) end [2025-01-02 10:41:30] Production.INFO: ProcessCDR(1,14157675,1,1,2) [2025-01-02 10:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157675', 'tblTempUsageDetail_20' ) start [2025-01-02 10:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157675', 'tblTempUsageDetail_20' ) end [2025-01-02 10:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:41:35] Production.INFO: ==26651== Releasing lock... [2025-01-02 10:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:41:35] Production.INFO: 51.5 MB #Memory Used# [2025-01-02 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:42:04 [end_date_ymd] => 2025-01-02 10:42:04 [RateCDR] => 1 ) [2025-01-02 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:42:04' and `end` < '2025-01-02 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:42:23] Production.INFO: count ==3089 [2025-01-02 10:42:25] Production.ERROR: pbx CDR StartTime 2025-01-02 07:42:04 - End Time 2025-01-02 10:42:04 [2025-01-02 10:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157680', 'tblTempUsageDetail_20' ) start [2025-01-02 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157680', 'tblTempUsageDetail_20' ) end [2025-01-02 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157680', 'tblTempVendorCDR_20' ) start [2025-01-02 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157680', 'tblTempVendorCDR_20' ) end [2025-01-02 10:42:25] Production.INFO: ProcessCDR(1,14157680,1,1,2) [2025-01-02 10:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157680', 'tblTempUsageDetail_20' ) start [2025-01-02 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157680', 'tblTempUsageDetail_20' ) end [2025-01-02 10:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:42:29] Production.INFO: ==26723== Releasing lock... [2025-01-02 10:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:42:29] Production.INFO: 51.25 MB #Memory Used# [2025-01-02 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:43:05 [end_date_ymd] => 2025-01-02 10:43:05 [RateCDR] => 1 ) [2025-01-02 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:43:05' and `end` < '2025-01-02 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:43:30] Production.INFO: count ==3100 [2025-01-02 10:43:31] Production.ERROR: pbx CDR StartTime 2025-01-02 07:43:05 - End Time 2025-01-02 10:43:05 [2025-01-02 10:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157685', 'tblTempUsageDetail_20' ) start [2025-01-02 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157685', 'tblTempUsageDetail_20' ) end [2025-01-02 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157685', 'tblTempVendorCDR_20' ) start [2025-01-02 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157685', 'tblTempVendorCDR_20' ) end [2025-01-02 10:43:31] Production.INFO: ProcessCDR(1,14157685,1,1,2) [2025-01-02 10:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157685', 'tblTempUsageDetail_20' ) start [2025-01-02 10:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157685', 'tblTempUsageDetail_20' ) end [2025-01-02 10:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:43:36] Production.INFO: ==26793== Releasing lock... [2025-01-02 10:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:43:36] Production.INFO: 51.5 MB #Memory Used# [2025-01-02 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:44:05 [end_date_ymd] => 2025-01-02 10:44:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 07:44:05' and `end` < '2025-01-02 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-01-02 10:44:25] Production.INFO: count ==3091 [2025-01-02 10:44:26] Production.ERROR: pbx CDR StartTime 2025-01-02 07:44:05 - End Time 2025-01-02 10:44:05 [2025-01-02 10:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157690', 'tblTempUsageDetail_20' ) start [2025-01-02 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157690', 'tblTempUsageDetail_20' ) end [2025-01-02 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157690', 'tblTempVendorCDR_20' ) start [2025-01-02 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157690', 'tblTempVendorCDR_20' ) end [2025-01-02 10:44:26] Production.INFO: ProcessCDR(1,14157690,1,1,2) [2025-01-02 10:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157690', 'tblTempUsageDetail_20' ) start [2025-01-02 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157690', 'tblTempUsageDetail_20' ) end [2025-01-02 10:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:44:31] Production.INFO: ==26863== Releasing lock... [2025-01-02 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:44:31] Production.INFO: 51 MB #Memory Used# [2025-01-02 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:45:05 [end_date_ymd] => 2025-01-02 10:45:05 [RateCDR] => 1 ) [2025-01-02 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:45:05' and `end` < '2025-01-02 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:45:30] Production.INFO: count ==3097 [2025-01-02 10:45:31] Production.ERROR: pbx CDR StartTime 2025-01-02 07:45:05 - End Time 2025-01-02 10:45:05 [2025-01-02 10:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157695', 'tblTempUsageDetail_20' ) start [2025-01-02 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157695', 'tblTempUsageDetail_20' ) end [2025-01-02 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157695', 'tblTempVendorCDR_20' ) start [2025-01-02 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157695', 'tblTempVendorCDR_20' ) end [2025-01-02 10:45:31] Production.INFO: ProcessCDR(1,14157695,1,1,2) [2025-01-02 10:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157695', 'tblTempUsageDetail_20' ) start [2025-01-02 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157695', 'tblTempUsageDetail_20' ) end [2025-01-02 10:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:45:36] Production.INFO: ==26934== Releasing lock... [2025-01-02 10:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:45:36] Production.INFO: 51 MB #Memory Used# [2025-01-02 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:46:05 [end_date_ymd] => 2025-01-02 10:46:05 [RateCDR] => 1 ) [2025-01-02 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:46:05' and `end` < '2025-01-02 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:46:26] Production.INFO: count ==3130 [2025-01-02 10:46:27] Production.ERROR: pbx CDR StartTime 2025-01-02 07:46:05 - End Time 2025-01-02 10:46:05 [2025-01-02 10:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157700', 'tblTempUsageDetail_20' ) start [2025-01-02 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157700', 'tblTempUsageDetail_20' ) end [2025-01-02 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157700', 'tblTempVendorCDR_20' ) start [2025-01-02 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157700', 'tblTempVendorCDR_20' ) end [2025-01-02 10:46:28] Production.INFO: ProcessCDR(1,14157700,1,1,2) [2025-01-02 10:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157700', 'tblTempUsageDetail_20' ) start [2025-01-02 10:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157700', 'tblTempUsageDetail_20' ) end [2025-01-02 10:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:46:32] Production.INFO: ==27010== Releasing lock... [2025-01-02 10:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:46:32] Production.INFO: 51.25 MB #Memory Used# [2025-01-02 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:47:04 [end_date_ymd] => 2025-01-02 10:47:04 [RateCDR] => 1 ) [2025-01-02 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:47:04' and `end` < '2025-01-02 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:47:22] Production.INFO: count ==3150 [2025-01-02 10:47:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:47:04 - End Time 2025-01-02 10:47:04 [2025-01-02 10:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157705', 'tblTempUsageDetail_20' ) start [2025-01-02 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157705', 'tblTempUsageDetail_20' ) end [2025-01-02 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157705', 'tblTempVendorCDR_20' ) start [2025-01-02 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157705', 'tblTempVendorCDR_20' ) end [2025-01-02 10:47:24] Production.INFO: ProcessCDR(1,14157705,1,1,2) [2025-01-02 10:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157705', 'tblTempUsageDetail_20' ) start [2025-01-02 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157705', 'tblTempUsageDetail_20' ) end [2025-01-02 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:47:28] Production.INFO: ==27081== Releasing lock... [2025-01-02 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:47:28] Production.INFO: 51.5 MB #Memory Used# [2025-01-02 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:48:05 [end_date_ymd] => 2025-01-02 10:48:05 [RateCDR] => 1 ) [2025-01-02 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:48:05' and `end` < '2025-01-02 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:48:18] Production.INFO: count ==3172 [2025-01-02 10:48:20] Production.ERROR: pbx CDR StartTime 2025-01-02 07:48:05 - End Time 2025-01-02 10:48:05 [2025-01-02 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157710', 'tblTempUsageDetail_20' ) start [2025-01-02 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157710', 'tblTempUsageDetail_20' ) end [2025-01-02 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157710', 'tblTempVendorCDR_20' ) start [2025-01-02 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157710', 'tblTempVendorCDR_20' ) end [2025-01-02 10:48:20] Production.INFO: ProcessCDR(1,14157710,1,1,2) [2025-01-02 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157710', 'tblTempUsageDetail_20' ) start [2025-01-02 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157710', 'tblTempUsageDetail_20' ) end [2025-01-02 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:48:24] Production.INFO: ==27155== Releasing lock... [2025-01-02 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:48:24] Production.INFO: 53 MB #Memory Used# [2025-01-02 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:49:05 [end_date_ymd] => 2025-01-02 10:49:05 [RateCDR] => 1 ) [2025-01-02 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:49:05' and `end` < '2025-01-02 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:49:19] Production.INFO: count ==3196 [2025-01-02 10:49:20] Production.ERROR: pbx CDR StartTime 2025-01-02 07:49:05 - End Time 2025-01-02 10:49:05 [2025-01-02 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157715', 'tblTempUsageDetail_20' ) start [2025-01-02 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157715', 'tblTempUsageDetail_20' ) end [2025-01-02 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157715', 'tblTempVendorCDR_20' ) start [2025-01-02 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157715', 'tblTempVendorCDR_20' ) end [2025-01-02 10:49:20] Production.INFO: ProcessCDR(1,14157715,1,1,2) [2025-01-02 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157715', 'tblTempUsageDetail_20' ) start [2025-01-02 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157715', 'tblTempUsageDetail_20' ) end [2025-01-02 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:49:25] Production.INFO: ==27227== Releasing lock... [2025-01-02 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:49:25] Production.INFO: 53 MB #Memory Used# [2025-01-02 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:50:05 [end_date_ymd] => 2025-01-02 10:50:05 [RateCDR] => 1 ) [2025-01-02 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:50:05' and `end` < '2025-01-02 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:50:18] Production.INFO: count ==3225 [2025-01-02 10:50:20] Production.ERROR: pbx CDR StartTime 2025-01-02 07:50:05 - End Time 2025-01-02 10:50:05 [2025-01-02 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157721', 'tblTempUsageDetail_20' ) start [2025-01-02 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157721', 'tblTempUsageDetail_20' ) end [2025-01-02 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157721', 'tblTempVendorCDR_20' ) start [2025-01-02 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157721', 'tblTempVendorCDR_20' ) end [2025-01-02 10:50:20] Production.INFO: ProcessCDR(1,14157721,1,1,2) [2025-01-02 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157721', 'tblTempUsageDetail_20' ) start [2025-01-02 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157721', 'tblTempUsageDetail_20' ) end [2025-01-02 10:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:50:24] Production.INFO: ==27299== Releasing lock... [2025-01-02 10:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:50:24] Production.INFO: 53 MB #Memory Used# [2025-01-02 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:51:05 [end_date_ymd] => 2025-01-02 10:51:05 [RateCDR] => 1 ) [2025-01-02 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:51:05' and `end` < '2025-01-02 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:51:19] Production.INFO: count ==3298 [2025-01-02 10:51:20] Production.ERROR: pbx CDR StartTime 2025-01-02 07:51:05 - End Time 2025-01-02 10:51:05 [2025-01-02 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157726', 'tblTempUsageDetail_20' ) start [2025-01-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157726', 'tblTempUsageDetail_20' ) end [2025-01-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157726', 'tblTempVendorCDR_20' ) start [2025-01-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157726', 'tblTempVendorCDR_20' ) end [2025-01-02 10:51:21] Production.INFO: ProcessCDR(1,14157726,1,1,2) [2025-01-02 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157726', 'tblTempUsageDetail_20' ) start [2025-01-02 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157726', 'tblTempUsageDetail_20' ) end [2025-01-02 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:51:25] Production.INFO: ==27371== Releasing lock... [2025-01-02 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:51:25] Production.INFO: 52.5 MB #Memory Used# [2025-01-02 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:52:05 [end_date_ymd] => 2025-01-02 10:52:05 [RateCDR] => 1 ) [2025-01-02 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:52:05' and `end` < '2025-01-02 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:52:20] Production.INFO: count ==3316 [2025-01-02 10:52:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:52:05 - End Time 2025-01-02 10:52:05 [2025-01-02 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157731', 'tblTempUsageDetail_20' ) start [2025-01-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157731', 'tblTempUsageDetail_20' ) end [2025-01-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157731', 'tblTempVendorCDR_20' ) start [2025-01-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157731', 'tblTempVendorCDR_20' ) end [2025-01-02 10:52:21] Production.INFO: ProcessCDR(1,14157731,1,1,2) [2025-01-02 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157731', 'tblTempUsageDetail_20' ) start [2025-01-02 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157731', 'tblTempUsageDetail_20' ) end [2025-01-02 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:52:25] Production.INFO: ==27448== Releasing lock... [2025-01-02 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:52:25] Production.INFO: 54.25 MB #Memory Used# [2025-01-02 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:53:05 [end_date_ymd] => 2025-01-02 10:53:05 [RateCDR] => 1 ) [2025-01-02 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:53:05' and `end` < '2025-01-02 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:53:18] Production.INFO: count ==3348 [2025-01-02 10:53:19] Production.ERROR: pbx CDR StartTime 2025-01-02 07:53:05 - End Time 2025-01-02 10:53:05 [2025-01-02 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157736', 'tblTempUsageDetail_20' ) start [2025-01-02 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157736', 'tblTempUsageDetail_20' ) end [2025-01-02 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157736', 'tblTempVendorCDR_20' ) start [2025-01-02 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157736', 'tblTempVendorCDR_20' ) end [2025-01-02 10:53:19] Production.INFO: ProcessCDR(1,14157736,1,1,2) [2025-01-02 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157736', 'tblTempUsageDetail_20' ) start [2025-01-02 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157736', 'tblTempUsageDetail_20' ) end [2025-01-02 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:53:24] Production.INFO: ==27520== Releasing lock... [2025-01-02 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:53:24] Production.INFO: 54 MB #Memory Used# [2025-01-02 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:54:06 [end_date_ymd] => 2025-01-02 10:54:06 [RateCDR] => 1 ) [2025-01-02 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:54:06' and `end` < '2025-01-02 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:54:20] Production.INFO: count ==3370 [2025-01-02 10:54:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:54:06 - End Time 2025-01-02 10:54:06 [2025-01-02 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157741', 'tblTempUsageDetail_20' ) start [2025-01-02 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157741', 'tblTempUsageDetail_20' ) end [2025-01-02 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157741', 'tblTempVendorCDR_20' ) start [2025-01-02 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157741', 'tblTempVendorCDR_20' ) end [2025-01-02 10:54:21] Production.INFO: ProcessCDR(1,14157741,1,1,2) [2025-01-02 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157741', 'tblTempUsageDetail_20' ) start [2025-01-02 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157741', 'tblTempUsageDetail_20' ) end [2025-01-02 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:54:25] Production.INFO: ==27632== Releasing lock... [2025-01-02 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:54:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-02 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:55:05 [end_date_ymd] => 2025-01-02 10:55:05 [RateCDR] => 1 ) [2025-01-02 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:55:05' and `end` < '2025-01-02 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:55:28] Production.INFO: count ==3380 [2025-01-02 10:55:30] Production.ERROR: pbx CDR StartTime 2025-01-02 07:55:05 - End Time 2025-01-02 10:55:05 [2025-01-02 10:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157746', 'tblTempUsageDetail_20' ) start [2025-01-02 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157746', 'tblTempUsageDetail_20' ) end [2025-01-02 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157746', 'tblTempVendorCDR_20' ) start [2025-01-02 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157746', 'tblTempVendorCDR_20' ) end [2025-01-02 10:55:30] Production.INFO: ProcessCDR(1,14157746,1,1,2) [2025-01-02 10:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157746', 'tblTempUsageDetail_20' ) start [2025-01-02 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157746', 'tblTempUsageDetail_20' ) end [2025-01-02 10:55:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:55:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:55:35] Production.INFO: ==27702== Releasing lock... [2025-01-02 10:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:55:35] Production.INFO: 53.75 MB #Memory Used# [2025-01-02 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:56:06 [end_date_ymd] => 2025-01-02 10:56:06 [RateCDR] => 1 ) [2025-01-02 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:56:06' and `end` < '2025-01-02 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:56:27] Production.INFO: count ==3403 [2025-01-02 10:56:28] Production.ERROR: pbx CDR StartTime 2025-01-02 07:56:06 - End Time 2025-01-02 10:56:06 [2025-01-02 10:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157751', 'tblTempUsageDetail_20' ) start [2025-01-02 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157751', 'tblTempUsageDetail_20' ) end [2025-01-02 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157751', 'tblTempVendorCDR_20' ) start [2025-01-02 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157751', 'tblTempVendorCDR_20' ) end [2025-01-02 10:56:28] Production.INFO: ProcessCDR(1,14157751,1,1,2) [2025-01-02 10:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157751', 'tblTempUsageDetail_20' ) start [2025-01-02 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157751', 'tblTempUsageDetail_20' ) end [2025-01-02 10:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:56:33] Production.INFO: ==27775== Releasing lock... [2025-01-02 10:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:56:33] Production.INFO: 53.5 MB #Memory Used# [2025-01-02 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:57:05 [end_date_ymd] => 2025-01-02 10:57:05 [RateCDR] => 1 ) [2025-01-02 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:57:05' and `end` < '2025-01-02 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:57:23] Production.INFO: count ==3404 [2025-01-02 10:57:24] Production.ERROR: pbx CDR StartTime 2025-01-02 07:57:05 - End Time 2025-01-02 10:57:05 [2025-01-02 10:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157756', 'tblTempUsageDetail_20' ) start [2025-01-02 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157756', 'tblTempUsageDetail_20' ) end [2025-01-02 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157756', 'tblTempVendorCDR_20' ) start [2025-01-02 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157756', 'tblTempVendorCDR_20' ) end [2025-01-02 10:57:24] Production.INFO: ProcessCDR(1,14157756,1,1,2) [2025-01-02 10:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157756', 'tblTempUsageDetail_20' ) start [2025-01-02 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157756', 'tblTempUsageDetail_20' ) end [2025-01-02 10:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:57:29] Production.INFO: ==27844== Releasing lock... [2025-01-02 10:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:57:29] Production.INFO: 53.75 MB #Memory Used# [2025-01-02 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:58:04 [end_date_ymd] => 2025-01-02 10:58:04 [RateCDR] => 1 ) [2025-01-02 10:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:58:04' and `end` < '2025-01-02 10:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:58:20] Production.INFO: count ==3423 [2025-01-02 10:58:21] Production.ERROR: pbx CDR StartTime 2025-01-02 07:58:04 - End Time 2025-01-02 10:58:04 [2025-01-02 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157761', 'tblTempUsageDetail_20' ) start [2025-01-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157761', 'tblTempUsageDetail_20' ) end [2025-01-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157761', 'tblTempVendorCDR_20' ) start [2025-01-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157761', 'tblTempVendorCDR_20' ) end [2025-01-02 10:58:21] Production.INFO: ProcessCDR(1,14157761,1,1,2) [2025-01-02 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157761', 'tblTempUsageDetail_20' ) start [2025-01-02 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157761', 'tblTempUsageDetail_20' ) end [2025-01-02 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:58:25] Production.INFO: ==27914== Releasing lock... [2025-01-02 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:58:25] Production.INFO: 54 MB #Memory Used# [2025-01-02 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 07:59:04 [end_date_ymd] => 2025-01-02 10:59:04 [RateCDR] => 1 ) [2025-01-02 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 07:59:04' and `end` < '2025-01-02 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 10:59:21] Production.INFO: count ==3448 [2025-01-02 10:59:22] Production.ERROR: pbx CDR StartTime 2025-01-02 07:59:04 - End Time 2025-01-02 10:59:04 [2025-01-02 10:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157766', 'tblTempUsageDetail_20' ) start [2025-01-02 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157766', 'tblTempUsageDetail_20' ) end [2025-01-02 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157766', 'tblTempVendorCDR_20' ) start [2025-01-02 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157766', 'tblTempVendorCDR_20' ) end [2025-01-02 10:59:22] Production.INFO: ProcessCDR(1,14157766,1,1,2) [2025-01-02 10:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157766', 'tblTempUsageDetail_20' ) start [2025-01-02 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157766', 'tblTempUsageDetail_20' ) end [2025-01-02 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 10:59:25] Production.INFO: ==27987== Releasing lock... [2025-01-02 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 10:59:25] Production.INFO: 54 MB #Memory Used# [2025-01-02 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:00:06 [end_date_ymd] => 2025-01-02 11:00:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:00:06' and `end` < '2025-01-02 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-01-02 11:00:25] Production.INFO: count ==3469 [2025-01-02 11:00:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:00:06 - End Time 2025-01-02 11:00:06 [2025-01-02 11:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157772', 'tblTempUsageDetail_20' ) start [2025-01-02 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157772', 'tblTempUsageDetail_20' ) end [2025-01-02 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157772', 'tblTempVendorCDR_20' ) start [2025-01-02 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157772', 'tblTempVendorCDR_20' ) end [2025-01-02 11:00:26] Production.INFO: ProcessCDR(1,14157772,1,1,2) [2025-01-02 11:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157772', 'tblTempUsageDetail_20' ) start [2025-01-02 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157772', 'tblTempUsageDetail_20' ) end [2025-01-02 11:00:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:00:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:00:31] Production.INFO: ==28060== Releasing lock... [2025-01-02 11:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:00:31] Production.INFO: 54 MB #Memory Used# [2025-01-02 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:01:05 [end_date_ymd] => 2025-01-02 11:01:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:01:05' and `end` < '2025-01-02 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-01-02 11:01:18] Production.INFO: count ==3525 [2025-01-02 11:01:19] Production.ERROR: pbx CDR StartTime 2025-01-02 08:01:05 - End Time 2025-01-02 11:01:05 [2025-01-02 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157777', 'tblTempUsageDetail_20' ) start [2025-01-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157777', 'tblTempUsageDetail_20' ) end [2025-01-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157777', 'tblTempVendorCDR_20' ) start [2025-01-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157777', 'tblTempVendorCDR_20' ) end [2025-01-02 11:01:20] Production.INFO: ProcessCDR(1,14157777,1,1,2) [2025-01-02 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157777', 'tblTempUsageDetail_20' ) start [2025-01-02 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157777', 'tblTempUsageDetail_20' ) end [2025-01-02 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:01:23] Production.INFO: ==28224== Releasing lock... [2025-01-02 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:01:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-02 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:02:06 [end_date_ymd] => 2025-01-02 11:02:06 [RateCDR] => 1 ) [2025-01-02 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:02:06' and `end` < '2025-01-02 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:02:19] Production.INFO: count ==3533 [2025-01-02 11:02:20] Production.ERROR: pbx CDR StartTime 2025-01-02 08:02:06 - End Time 2025-01-02 11:02:06 [2025-01-02 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157782', 'tblTempUsageDetail_20' ) start [2025-01-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157782', 'tblTempUsageDetail_20' ) end [2025-01-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157782', 'tblTempVendorCDR_20' ) start [2025-01-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157782', 'tblTempVendorCDR_20' ) end [2025-01-02 11:02:20] Production.INFO: ProcessCDR(1,14157782,1,1,2) [2025-01-02 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157782', 'tblTempUsageDetail_20' ) start [2025-01-02 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157782', 'tblTempUsageDetail_20' ) end [2025-01-02 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:02:25] Production.INFO: ==28294== Releasing lock... [2025-01-02 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:02:25] Production.INFO: 54.25 MB #Memory Used# [2025-01-02 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:03:05 [end_date_ymd] => 2025-01-02 11:03:05 [RateCDR] => 1 ) [2025-01-02 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:03:05' and `end` < '2025-01-02 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:03:20] Production.INFO: count ==3566 [2025-01-02 11:03:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:03:05 - End Time 2025-01-02 11:03:05 [2025-01-02 11:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157787', 'tblTempUsageDetail_20' ) start [2025-01-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157787', 'tblTempUsageDetail_20' ) end [2025-01-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157787', 'tblTempVendorCDR_20' ) start [2025-01-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157787', 'tblTempVendorCDR_20' ) end [2025-01-02 11:03:22] Production.INFO: ProcessCDR(1,14157787,1,1,2) [2025-01-02 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157787', 'tblTempUsageDetail_20' ) start [2025-01-02 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157787', 'tblTempUsageDetail_20' ) end [2025-01-02 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:03:26] Production.INFO: ==28363== Releasing lock... [2025-01-02 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:03:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-02 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:04:04 [end_date_ymd] => 2025-01-02 11:04:04 [RateCDR] => 1 ) [2025-01-02 11:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:04:04' and `end` < '2025-01-02 11:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:04:29] Production.INFO: count ==3598 [2025-01-02 11:04:31] Production.ERROR: pbx CDR StartTime 2025-01-02 08:04:04 - End Time 2025-01-02 11:04:04 [2025-01-02 11:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157792', 'tblTempUsageDetail_20' ) start [2025-01-02 11:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157792', 'tblTempUsageDetail_20' ) end [2025-01-02 11:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157792', 'tblTempVendorCDR_20' ) start [2025-01-02 11:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157792', 'tblTempVendorCDR_20' ) end [2025-01-02 11:04:31] Production.INFO: ProcessCDR(1,14157792,1,1,2) [2025-01-02 11:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157792', 'tblTempUsageDetail_20' ) start [2025-01-02 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157792', 'tblTempUsageDetail_20' ) end [2025-01-02 11:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:04:36] Production.INFO: ==28436== Releasing lock... [2025-01-02 11:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:04:36] Production.INFO: 54.75 MB #Memory Used# [2025-01-02 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:05:04 [end_date_ymd] => 2025-01-02 11:05:04 [RateCDR] => 1 ) [2025-01-02 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:05:04' and `end` < '2025-01-02 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:05:27] Production.INFO: count ==3593 [2025-01-02 11:05:28] Production.ERROR: pbx CDR StartTime 2025-01-02 08:05:04 - End Time 2025-01-02 11:05:04 [2025-01-02 11:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157797', 'tblTempUsageDetail_20' ) start [2025-01-02 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157797', 'tblTempUsageDetail_20' ) end [2025-01-02 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157797', 'tblTempVendorCDR_20' ) start [2025-01-02 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157797', 'tblTempVendorCDR_20' ) end [2025-01-02 11:05:28] Production.INFO: ProcessCDR(1,14157797,1,1,2) [2025-01-02 11:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157797', 'tblTempUsageDetail_20' ) start [2025-01-02 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157797', 'tblTempUsageDetail_20' ) end [2025-01-02 11:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:05:33] Production.INFO: ==28586== Releasing lock... [2025-01-02 11:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:05:33] Production.INFO: 54.75 MB #Memory Used# [2025-01-02 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:06:05 [end_date_ymd] => 2025-01-02 11:06:05 [RateCDR] => 1 ) [2025-01-02 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:06:05' and `end` < '2025-01-02 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:06:24] Production.INFO: count ==3619 [2025-01-02 11:06:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:06:05 - End Time 2025-01-02 11:06:05 [2025-01-02 11:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157802', 'tblTempUsageDetail_20' ) start [2025-01-02 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157802', 'tblTempUsageDetail_20' ) end [2025-01-02 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157802', 'tblTempVendorCDR_20' ) start [2025-01-02 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157802', 'tblTempVendorCDR_20' ) end [2025-01-02 11:06:26] Production.INFO: ProcessCDR(1,14157802,1,1,2) [2025-01-02 11:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157802', 'tblTempUsageDetail_20' ) start [2025-01-02 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157802', 'tblTempUsageDetail_20' ) end [2025-01-02 11:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:06:29] Production.INFO: ==28659== Releasing lock... [2025-01-02 11:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:06:29] Production.INFO: 55 MB #Memory Used# [2025-01-02 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:07:05 [end_date_ymd] => 2025-01-02 11:07:05 [RateCDR] => 1 ) [2025-01-02 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:07:05' and `end` < '2025-01-02 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:07:25] Production.INFO: count ==3608 [2025-01-02 11:07:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:07:05 - End Time 2025-01-02 11:07:05 [2025-01-02 11:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157807', 'tblTempUsageDetail_20' ) start [2025-01-02 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157807', 'tblTempUsageDetail_20' ) end [2025-01-02 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157807', 'tblTempVendorCDR_20' ) start [2025-01-02 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157807', 'tblTempVendorCDR_20' ) end [2025-01-02 11:07:27] Production.INFO: ProcessCDR(1,14157807,1,1,2) [2025-01-02 11:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157807', 'tblTempUsageDetail_20' ) start [2025-01-02 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157807', 'tblTempUsageDetail_20' ) end [2025-01-02 11:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:07:31] Production.INFO: ==28731== Releasing lock... [2025-01-02 11:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:07:31] Production.INFO: 55 MB #Memory Used# [2025-01-02 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:08:05 [end_date_ymd] => 2025-01-02 11:08:05 [RateCDR] => 1 ) [2025-01-02 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:08:05' and `end` < '2025-01-02 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:08:24] Production.INFO: count ==3610 [2025-01-02 11:08:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:08:05 - End Time 2025-01-02 11:08:05 [2025-01-02 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157812', 'tblTempUsageDetail_20' ) start [2025-01-02 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157812', 'tblTempUsageDetail_20' ) end [2025-01-02 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157812', 'tblTempVendorCDR_20' ) start [2025-01-02 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157812', 'tblTempVendorCDR_20' ) end [2025-01-02 11:08:26] Production.INFO: ProcessCDR(1,14157812,1,1,2) [2025-01-02 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157812', 'tblTempUsageDetail_20' ) start [2025-01-02 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157812', 'tblTempUsageDetail_20' ) end [2025-01-02 11:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:08:31] Production.INFO: ==28878== Releasing lock... [2025-01-02 11:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:08:31] Production.INFO: 55.25 MB #Memory Used# [2025-01-02 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:09:05 [end_date_ymd] => 2025-01-02 11:09:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:09:05' and `end` < '2025-01-02 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-01-02 11:09:21] Production.INFO: count ==3608 [2025-01-02 11:09:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:09:05 - End Time 2025-01-02 11:09:05 [2025-01-02 11:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157817', 'tblTempUsageDetail_20' ) start [2025-01-02 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157817', 'tblTempUsageDetail_20' ) end [2025-01-02 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157817', 'tblTempVendorCDR_20' ) start [2025-01-02 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157817', 'tblTempVendorCDR_20' ) end [2025-01-02 11:09:22] Production.INFO: ProcessCDR(1,14157817,1,1,2) [2025-01-02 11:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157817', 'tblTempUsageDetail_20' ) start [2025-01-02 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157817', 'tblTempUsageDetail_20' ) end [2025-01-02 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:09:27] Production.INFO: ==28952== Releasing lock... [2025-01-02 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:09:27] Production.INFO: 55 MB #Memory Used# [2025-01-02 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:10:05 [end_date_ymd] => 2025-01-02 11:10:05 [RateCDR] => 1 ) [2025-01-02 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:10:05' and `end` < '2025-01-02 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:10:26] Production.INFO: count ==3621 [2025-01-02 11:10:27] Production.ERROR: pbx CDR StartTime 2025-01-02 08:10:05 - End Time 2025-01-02 11:10:05 [2025-01-02 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157823', 'tblTempUsageDetail_20' ) start [2025-01-02 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157823', 'tblTempUsageDetail_20' ) end [2025-01-02 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157823', 'tblTempVendorCDR_20' ) start [2025-01-02 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157823', 'tblTempVendorCDR_20' ) end [2025-01-02 11:10:28] Production.INFO: ProcessCDR(1,14157823,1,1,2) [2025-01-02 11:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157823', 'tblTempUsageDetail_20' ) start [2025-01-02 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157823', 'tblTempUsageDetail_20' ) end [2025-01-02 11:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:10:32] Production.INFO: ==29062== Releasing lock... [2025-01-02 11:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:10:32] Production.INFO: 55 MB #Memory Used# [2025-01-02 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:11:04 [end_date_ymd] => 2025-01-02 11:11:04 [RateCDR] => 1 ) [2025-01-02 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:11:04' and `end` < '2025-01-02 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:11:31] Production.INFO: count ==3727 [2025-01-02 11:11:33] Production.ERROR: pbx CDR StartTime 2025-01-02 08:11:04 - End Time 2025-01-02 11:11:04 [2025-01-02 11:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157828', 'tblTempUsageDetail_20' ) start [2025-01-02 11:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157828', 'tblTempUsageDetail_20' ) end [2025-01-02 11:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157828', 'tblTempVendorCDR_20' ) start [2025-01-02 11:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157828', 'tblTempVendorCDR_20' ) end [2025-01-02 11:11:33] Production.INFO: ProcessCDR(1,14157828,1,1,2) [2025-01-02 11:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157828', 'tblTempUsageDetail_20' ) start [2025-01-02 11:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157828', 'tblTempUsageDetail_20' ) end [2025-01-02 11:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:11:38] Production.INFO: ==29136== Releasing lock... [2025-01-02 11:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:11:38] Production.INFO: 55.75 MB #Memory Used# [2025-01-02 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:12:05 [end_date_ymd] => 2025-01-02 11:12:05 [RateCDR] => 1 ) [2025-01-02 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:12:05' and `end` < '2025-01-02 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:12:26] Production.INFO: count ==3744 [2025-01-02 11:12:27] Production.ERROR: pbx CDR StartTime 2025-01-02 08:12:05 - End Time 2025-01-02 11:12:05 [2025-01-02 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157833', 'tblTempUsageDetail_20' ) start [2025-01-02 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157833', 'tblTempUsageDetail_20' ) end [2025-01-02 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157833', 'tblTempVendorCDR_20' ) start [2025-01-02 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157833', 'tblTempVendorCDR_20' ) end [2025-01-02 11:12:27] Production.INFO: ProcessCDR(1,14157833,1,1,2) [2025-01-02 11:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157833', 'tblTempUsageDetail_20' ) start [2025-01-02 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157833', 'tblTempUsageDetail_20' ) end [2025-01-02 11:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:12:32] Production.INFO: ==29285== Releasing lock... [2025-01-02 11:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:12:32] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:13:05 [end_date_ymd] => 2025-01-02 11:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:13:05' and `end` < '2025-01-02 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-01-02 11:13:21] Production.INFO: count ==3757 [2025-01-02 11:13:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:13:05 - End Time 2025-01-02 11:13:05 [2025-01-02 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157838', 'tblTempUsageDetail_20' ) start [2025-01-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157838', 'tblTempUsageDetail_20' ) end [2025-01-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157838', 'tblTempVendorCDR_20' ) start [2025-01-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157838', 'tblTempVendorCDR_20' ) end [2025-01-02 11:13:22] Production.INFO: ProcessCDR(1,14157838,1,1,2) [2025-01-02 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157838', 'tblTempUsageDetail_20' ) start [2025-01-02 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157838', 'tblTempUsageDetail_20' ) end [2025-01-02 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:13:27] Production.INFO: ==29357== Releasing lock... [2025-01-02 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:13:27] Production.INFO: 56 MB #Memory Used# [2025-01-02 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:14:05 [end_date_ymd] => 2025-01-02 11:14:05 [RateCDR] => 1 ) [2025-01-02 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:14:05' and `end` < '2025-01-02 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:14:31] Production.INFO: count ==3767 [2025-01-02 11:14:33] Production.ERROR: pbx CDR StartTime 2025-01-02 08:14:05 - End Time 2025-01-02 11:14:05 [2025-01-02 11:14:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157843', 'tblTempUsageDetail_20' ) start [2025-01-02 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157843', 'tblTempUsageDetail_20' ) end [2025-01-02 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157843', 'tblTempVendorCDR_20' ) start [2025-01-02 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157843', 'tblTempVendorCDR_20' ) end [2025-01-02 11:14:33] Production.INFO: ProcessCDR(1,14157843,1,1,2) [2025-01-02 11:14:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:14:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:14:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:14:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157843', 'tblTempUsageDetail_20' ) start [2025-01-02 11:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157843', 'tblTempUsageDetail_20' ) end [2025-01-02 11:14:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:14:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:14:38] Production.INFO: ==29435== Releasing lock... [2025-01-02 11:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:14:38] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:15:05 [end_date_ymd] => 2025-01-02 11:15:05 [RateCDR] => 1 ) [2025-01-02 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:15:05' and `end` < '2025-01-02 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:15:28] Production.INFO: count ==3772 [2025-01-02 11:15:29] Production.ERROR: pbx CDR StartTime 2025-01-02 08:15:05 - End Time 2025-01-02 11:15:05 [2025-01-02 11:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157848', 'tblTempUsageDetail_20' ) start [2025-01-02 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157848', 'tblTempUsageDetail_20' ) end [2025-01-02 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157848', 'tblTempVendorCDR_20' ) start [2025-01-02 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157848', 'tblTempVendorCDR_20' ) end [2025-01-02 11:15:30] Production.INFO: ProcessCDR(1,14157848,1,1,2) [2025-01-02 11:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157848', 'tblTempUsageDetail_20' ) start [2025-01-02 11:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157848', 'tblTempUsageDetail_20' ) end [2025-01-02 11:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:15:34] Production.INFO: ==29589== Releasing lock... [2025-01-02 11:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:15:34] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:16:05 [end_date_ymd] => 2025-01-02 11:16:05 [RateCDR] => 1 ) [2025-01-02 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:16:05' and `end` < '2025-01-02 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:16:20] Production.INFO: count ==3781 [2025-01-02 11:16:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:16:05 - End Time 2025-01-02 11:16:05 [2025-01-02 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157853', 'tblTempUsageDetail_20' ) start [2025-01-02 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157853', 'tblTempUsageDetail_20' ) end [2025-01-02 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157853', 'tblTempVendorCDR_20' ) start [2025-01-02 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157853', 'tblTempVendorCDR_20' ) end [2025-01-02 11:16:22] Production.INFO: ProcessCDR(1,14157853,1,1,2) [2025-01-02 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157853', 'tblTempUsageDetail_20' ) start [2025-01-02 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157853', 'tblTempUsageDetail_20' ) end [2025-01-02 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:16:26] Production.INFO: ==29664== Releasing lock... [2025-01-02 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:16:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:17:04 [end_date_ymd] => 2025-01-02 11:17:04 [RateCDR] => 1 ) [2025-01-02 11:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:17:04' and `end` < '2025-01-02 11:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:17:19] Production.INFO: count ==3798 [2025-01-02 11:17:21] Production.ERROR: pbx CDR StartTime 2025-01-02 08:17:04 - End Time 2025-01-02 11:17:04 [2025-01-02 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157858', 'tblTempUsageDetail_20' ) start [2025-01-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157858', 'tblTempUsageDetail_20' ) end [2025-01-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157858', 'tblTempVendorCDR_20' ) start [2025-01-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157858', 'tblTempVendorCDR_20' ) end [2025-01-02 11:17:21] Production.INFO: ProcessCDR(1,14157858,1,1,2) [2025-01-02 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157858', 'tblTempUsageDetail_20' ) start [2025-01-02 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157858', 'tblTempUsageDetail_20' ) end [2025-01-02 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:17:26] Production.INFO: ==29739== Releasing lock... [2025-01-02 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:17:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:18:05 [end_date_ymd] => 2025-01-02 11:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:18:05' and `end` < '2025-01-02 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-01-02 11:18:28] Production.INFO: count ==3824 [2025-01-02 11:18:30] Production.ERROR: pbx CDR StartTime 2025-01-02 08:18:05 - End Time 2025-01-02 11:18:05 [2025-01-02 11:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157863', 'tblTempUsageDetail_20' ) start [2025-01-02 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157863', 'tblTempUsageDetail_20' ) end [2025-01-02 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157863', 'tblTempVendorCDR_20' ) start [2025-01-02 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157863', 'tblTempVendorCDR_20' ) end [2025-01-02 11:18:30] Production.INFO: ProcessCDR(1,14157863,1,1,2) [2025-01-02 11:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157863', 'tblTempUsageDetail_20' ) start [2025-01-02 11:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157863', 'tblTempUsageDetail_20' ) end [2025-01-02 11:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:18:35] Production.INFO: ==29822== Releasing lock... [2025-01-02 11:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:18:35] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:19:05 [end_date_ymd] => 2025-01-02 11:19:05 [RateCDR] => 1 ) [2025-01-02 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:19:05' and `end` < '2025-01-02 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:19:23] Production.INFO: count ==3831 [2025-01-02 11:19:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:19:05 - End Time 2025-01-02 11:19:05 [2025-01-02 11:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157868', 'tblTempUsageDetail_20' ) start [2025-01-02 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157868', 'tblTempUsageDetail_20' ) end [2025-01-02 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157868', 'tblTempVendorCDR_20' ) start [2025-01-02 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157868', 'tblTempVendorCDR_20' ) end [2025-01-02 11:19:24] Production.INFO: ProcessCDR(1,14157868,1,1,2) [2025-01-02 11:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157868', 'tblTempUsageDetail_20' ) start [2025-01-02 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157868', 'tblTempUsageDetail_20' ) end [2025-01-02 11:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:19:29] Production.INFO: ==29907== Releasing lock... [2025-01-02 11:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:19:29] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:20:05 [end_date_ymd] => 2025-01-02 11:20:05 [RateCDR] => 1 ) [2025-01-02 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:20:05' and `end` < '2025-01-02 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:20:31] Production.INFO: count ==3831 [2025-01-02 11:20:32] Production.ERROR: pbx CDR StartTime 2025-01-02 08:20:05 - End Time 2025-01-02 11:20:05 [2025-01-02 11:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157873', 'tblTempUsageDetail_20' ) start [2025-01-02 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157873', 'tblTempUsageDetail_20' ) end [2025-01-02 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157873', 'tblTempVendorCDR_20' ) start [2025-01-02 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157873', 'tblTempVendorCDR_20' ) end [2025-01-02 11:20:32] Production.INFO: ProcessCDR(1,14157873,1,1,2) [2025-01-02 11:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157873', 'tblTempUsageDetail_20' ) start [2025-01-02 11:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157873', 'tblTempUsageDetail_20' ) end [2025-01-02 11:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:20:37] Production.INFO: ==29990== Releasing lock... [2025-01-02 11:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:20:37] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:21:05 [end_date_ymd] => 2025-01-02 11:21:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:21:05' and `end` < '2025-01-02 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-01-02 11:21:24] Production.INFO: count ==3884 [2025-01-02 11:21:25] Production.ERROR: pbx CDR StartTime 2025-01-02 08:21:05 - End Time 2025-01-02 11:21:05 [2025-01-02 11:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157879', 'tblTempUsageDetail_20' ) start [2025-01-02 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157879', 'tblTempUsageDetail_20' ) end [2025-01-02 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157879', 'tblTempVendorCDR_20' ) start [2025-01-02 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157879', 'tblTempVendorCDR_20' ) end [2025-01-02 11:21:25] Production.INFO: ProcessCDR(1,14157879,1,1,2) [2025-01-02 11:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157879', 'tblTempUsageDetail_20' ) start [2025-01-02 11:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157879', 'tblTempUsageDetail_20' ) end [2025-01-02 11:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:21:30] Production.INFO: ==30076== Releasing lock... [2025-01-02 11:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:21:30] Production.INFO: 57 MB #Memory Used# [2025-01-02 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:22:04 [end_date_ymd] => 2025-01-02 11:22:04 [RateCDR] => 1 ) [2025-01-02 11:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:22:04' and `end` < '2025-01-02 11:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:22:22] Production.INFO: count ==3908 [2025-01-02 11:22:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:22:04 - End Time 2025-01-02 11:22:04 [2025-01-02 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157884', 'tblTempUsageDetail_20' ) start [2025-01-02 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157884', 'tblTempUsageDetail_20' ) end [2025-01-02 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157884', 'tblTempVendorCDR_20' ) start [2025-01-02 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157884', 'tblTempVendorCDR_20' ) end [2025-01-02 11:22:24] Production.INFO: ProcessCDR(1,14157884,1,1,2) [2025-01-02 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157884', 'tblTempUsageDetail_20' ) start [2025-01-02 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157884', 'tblTempUsageDetail_20' ) end [2025-01-02 11:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:22:29] Production.INFO: ==30162== Releasing lock... [2025-01-02 11:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:22:29] Production.INFO: 57.25 MB #Memory Used# [2025-01-02 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:23:06 [end_date_ymd] => 2025-01-02 11:23:06 [RateCDR] => 1 ) [2025-01-02 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:23:06' and `end` < '2025-01-02 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:23:21] Production.INFO: count ==3951 [2025-01-02 11:23:23] Production.ERROR: pbx CDR StartTime 2025-01-02 08:23:06 - End Time 2025-01-02 11:23:06 [2025-01-02 11:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157889', 'tblTempUsageDetail_20' ) start [2025-01-02 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157889', 'tblTempUsageDetail_20' ) end [2025-01-02 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157889', 'tblTempVendorCDR_20' ) start [2025-01-02 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157889', 'tblTempVendorCDR_20' ) end [2025-01-02 11:23:23] Production.INFO: ProcessCDR(1,14157889,1,1,2) [2025-01-02 11:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157889', 'tblTempUsageDetail_20' ) start [2025-01-02 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157889', 'tblTempUsageDetail_20' ) end [2025-01-02 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:23:28] Production.INFO: ==30247== Releasing lock... [2025-01-02 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:23:28] Production.INFO: 57.5 MB #Memory Used# [2025-01-02 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:24:05 [end_date_ymd] => 2025-01-02 11:24:05 [RateCDR] => 1 ) [2025-01-02 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:24:05' and `end` < '2025-01-02 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:24:31] Production.INFO: count ==3959 [2025-01-02 11:24:32] Production.ERROR: pbx CDR StartTime 2025-01-02 08:24:05 - End Time 2025-01-02 11:24:05 [2025-01-02 11:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157894', 'tblTempUsageDetail_20' ) start [2025-01-02 11:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157894', 'tblTempUsageDetail_20' ) end [2025-01-02 11:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157894', 'tblTempVendorCDR_20' ) start [2025-01-02 11:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157894', 'tblTempVendorCDR_20' ) end [2025-01-02 11:24:33] Production.INFO: ProcessCDR(1,14157894,1,1,2) [2025-01-02 11:24:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:24:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:24:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157894', 'tblTempUsageDetail_20' ) start [2025-01-02 11:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157894', 'tblTempUsageDetail_20' ) end [2025-01-02 11:24:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:24:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:24:36] Production.INFO: ==30330== Releasing lock... [2025-01-02 11:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:24:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-02 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:25:05 [end_date_ymd] => 2025-01-02 11:25:05 [RateCDR] => 1 ) [2025-01-02 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:25:05' and `end` < '2025-01-02 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:25:33] Production.INFO: count ==3968 [2025-01-02 11:25:35] Production.ERROR: pbx CDR StartTime 2025-01-02 08:25:05 - End Time 2025-01-02 11:25:05 [2025-01-02 11:25:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157899', 'tblTempUsageDetail_20' ) start [2025-01-02 11:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157899', 'tblTempUsageDetail_20' ) end [2025-01-02 11:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157899', 'tblTempVendorCDR_20' ) start [2025-01-02 11:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157899', 'tblTempVendorCDR_20' ) end [2025-01-02 11:25:35] Production.INFO: ProcessCDR(1,14157899,1,1,2) [2025-01-02 11:25:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:25:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:25:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157899', 'tblTempUsageDetail_20' ) start [2025-01-02 11:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157899', 'tblTempUsageDetail_20' ) end [2025-01-02 11:25:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:25:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:25:40] Production.INFO: ==30414== Releasing lock... [2025-01-02 11:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:25:40] Production.INFO: 57.75 MB #Memory Used# [2025-01-02 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:26:05 [end_date_ymd] => 2025-01-02 11:26:05 [RateCDR] => 1 ) [2025-01-02 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:26:05' and `end` < '2025-01-02 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:26:34] Production.INFO: count ==3992 [2025-01-02 11:26:36] Production.ERROR: pbx CDR StartTime 2025-01-02 08:26:05 - End Time 2025-01-02 11:26:05 [2025-01-02 11:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157904', 'tblTempUsageDetail_20' ) start [2025-01-02 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157904', 'tblTempUsageDetail_20' ) end [2025-01-02 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157904', 'tblTempVendorCDR_20' ) start [2025-01-02 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157904', 'tblTempVendorCDR_20' ) end [2025-01-02 11:26:36] Production.INFO: ProcessCDR(1,14157904,1,1,2) [2025-01-02 11:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:26:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:26:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:26:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:26:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157904', 'tblTempUsageDetail_20' ) start [2025-01-02 11:26:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157904', 'tblTempUsageDetail_20' ) end [2025-01-02 11:26:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:26:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:26:40] Production.INFO: ==30531== Releasing lock... [2025-01-02 11:26:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:26:40] Production.INFO: 57.75 MB #Memory Used# [2025-01-02 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:27:04 [end_date_ymd] => 2025-01-02 11:27:04 [RateCDR] => 1 ) [2025-01-02 11:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:27:04' and `end` < '2025-01-02 11:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:27:26] Production.INFO: count ==4012 [2025-01-02 11:27:28] Production.ERROR: pbx CDR StartTime 2025-01-02 08:27:04 - End Time 2025-01-02 11:27:04 [2025-01-02 11:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157909', 'tblTempUsageDetail_20' ) start [2025-01-02 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157909', 'tblTempUsageDetail_20' ) end [2025-01-02 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157909', 'tblTempVendorCDR_20' ) start [2025-01-02 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157909', 'tblTempVendorCDR_20' ) end [2025-01-02 11:27:28] Production.INFO: ProcessCDR(1,14157909,1,1,2) [2025-01-02 11:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157909', 'tblTempUsageDetail_20' ) start [2025-01-02 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157909', 'tblTempUsageDetail_20' ) end [2025-01-02 11:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:27:33] Production.INFO: ==30627== Releasing lock... [2025-01-02 11:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:27:33] Production.INFO: 58 MB #Memory Used# [2025-01-02 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:28:05 [end_date_ymd] => 2025-01-02 11:28:05 [RateCDR] => 1 ) [2025-01-02 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:28:05' and `end` < '2025-01-02 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:28:20] Production.INFO: count ==4027 [2025-01-02 11:28:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:28:05 - End Time 2025-01-02 11:28:05 [2025-01-02 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157914', 'tblTempUsageDetail_20' ) start [2025-01-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157914', 'tblTempUsageDetail_20' ) end [2025-01-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157914', 'tblTempVendorCDR_20' ) start [2025-01-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157914', 'tblTempVendorCDR_20' ) end [2025-01-02 11:28:22] Production.INFO: ProcessCDR(1,14157914,1,1,2) [2025-01-02 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157914', 'tblTempUsageDetail_20' ) start [2025-01-02 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157914', 'tblTempUsageDetail_20' ) end [2025-01-02 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:28:27] Production.INFO: ==30721== Releasing lock... [2025-01-02 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:28:27] Production.INFO: 58 MB #Memory Used# [2025-01-02 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:29:05 [end_date_ymd] => 2025-01-02 11:29:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:29:05' and `end` < '2025-01-02 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-01-02 11:29:21] Production.INFO: count ==4031 [2025-01-02 11:29:23] Production.ERROR: pbx CDR StartTime 2025-01-02 08:29:05 - End Time 2025-01-02 11:29:05 [2025-01-02 11:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157919', 'tblTempUsageDetail_20' ) start [2025-01-02 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157919', 'tblTempUsageDetail_20' ) end [2025-01-02 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157919', 'tblTempVendorCDR_20' ) start [2025-01-02 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157919', 'tblTempVendorCDR_20' ) end [2025-01-02 11:29:23] Production.INFO: ProcessCDR(1,14157919,1,1,2) [2025-01-02 11:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157919', 'tblTempUsageDetail_20' ) start [2025-01-02 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157919', 'tblTempUsageDetail_20' ) end [2025-01-02 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:29:27] Production.INFO: ==30813== Releasing lock... [2025-01-02 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:29:27] Production.INFO: 58 MB #Memory Used# [2025-01-02 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:30:06 [end_date_ymd] => 2025-01-02 11:30:06 [RateCDR] => 1 ) [2025-01-02 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:30:06' and `end` < '2025-01-02 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:30:27] Production.INFO: count ==4037 [2025-01-02 11:30:29] Production.ERROR: pbx CDR StartTime 2025-01-02 08:30:06 - End Time 2025-01-02 11:30:06 [2025-01-02 11:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157925', 'tblTempUsageDetail_20' ) start [2025-01-02 11:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157925', 'tblTempUsageDetail_20' ) end [2025-01-02 11:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157925', 'tblTempVendorCDR_20' ) start [2025-01-02 11:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157925', 'tblTempVendorCDR_20' ) end [2025-01-02 11:30:29] Production.INFO: ProcessCDR(1,14157925,1,1,2) [2025-01-02 11:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157925', 'tblTempUsageDetail_20' ) start [2025-01-02 11:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157925', 'tblTempUsageDetail_20' ) end [2025-01-02 11:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:30:34] Production.INFO: ==30906== Releasing lock... [2025-01-02 11:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:30:34] Production.INFO: 58.25 MB #Memory Used# [2025-01-02 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:31:04 [end_date_ymd] => 2025-01-02 11:31:04 [RateCDR] => 1 ) [2025-01-02 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:31:04' and `end` < '2025-01-02 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:31:22] Production.INFO: count ==4132 [2025-01-02 11:31:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:31:04 - End Time 2025-01-02 11:31:04 [2025-01-02 11:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157930', 'tblTempUsageDetail_20' ) start [2025-01-02 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157930', 'tblTempUsageDetail_20' ) end [2025-01-02 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157930', 'tblTempVendorCDR_20' ) start [2025-01-02 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157930', 'tblTempVendorCDR_20' ) end [2025-01-02 11:31:24] Production.INFO: ProcessCDR(1,14157930,1,1,2) [2025-01-02 11:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157930', 'tblTempUsageDetail_20' ) start [2025-01-02 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157930', 'tblTempUsageDetail_20' ) end [2025-01-02 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:31:29] Production.INFO: ==31001== Releasing lock... [2025-01-02 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:31:29] Production.INFO: 59 MB #Memory Used# [2025-01-02 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:32:05 [end_date_ymd] => 2025-01-02 11:32:05 [RateCDR] => 1 ) [2025-01-02 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:32:05' and `end` < '2025-01-02 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:32:24] Production.INFO: count ==4155 [2025-01-02 11:32:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:32:05 - End Time 2025-01-02 11:32:05 [2025-01-02 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157935', 'tblTempUsageDetail_20' ) start [2025-01-02 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157935', 'tblTempUsageDetail_20' ) end [2025-01-02 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157935', 'tblTempVendorCDR_20' ) start [2025-01-02 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157935', 'tblTempVendorCDR_20' ) end [2025-01-02 11:32:26] Production.INFO: ProcessCDR(1,14157935,1,1,2) [2025-01-02 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157935', 'tblTempUsageDetail_20' ) start [2025-01-02 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157935', 'tblTempUsageDetail_20' ) end [2025-01-02 11:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:32:30] Production.INFO: ==31102== Releasing lock... [2025-01-02 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:32:30] Production.INFO: 59 MB #Memory Used# [2025-01-02 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:33:05 [end_date_ymd] => 2025-01-02 11:33:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:33:05' and `end` < '2025-01-02 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-01-02 11:33:33] Production.INFO: count ==4152 [2025-01-02 11:33:34] Production.ERROR: pbx CDR StartTime 2025-01-02 08:33:05 - End Time 2025-01-02 11:33:05 [2025-01-02 11:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157940', 'tblTempUsageDetail_20' ) start [2025-01-02 11:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157940', 'tblTempUsageDetail_20' ) end [2025-01-02 11:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157940', 'tblTempVendorCDR_20' ) start [2025-01-02 11:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157940', 'tblTempVendorCDR_20' ) end [2025-01-02 11:33:35] Production.INFO: ProcessCDR(1,14157940,1,1,2) [2025-01-02 11:33:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:33:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:33:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:33:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157940', 'tblTempUsageDetail_20' ) start [2025-01-02 11:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157940', 'tblTempUsageDetail_20' ) end [2025-01-02 11:33:39] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:33:39] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:33:39] Production.INFO: ==31199== Releasing lock... [2025-01-02 11:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:33:39] Production.INFO: 59 MB #Memory Used# [2025-01-02 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:34:04 [end_date_ymd] => 2025-01-02 11:34:04 [RateCDR] => 1 ) [2025-01-02 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:34:04' and `end` < '2025-01-02 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:34:25] Production.INFO: count ==4189 [2025-01-02 11:34:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:34:04 - End Time 2025-01-02 11:34:04 [2025-01-02 11:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157945', 'tblTempUsageDetail_20' ) start [2025-01-02 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157945', 'tblTempUsageDetail_20' ) end [2025-01-02 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157945', 'tblTempVendorCDR_20' ) start [2025-01-02 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157945', 'tblTempVendorCDR_20' ) end [2025-01-02 11:34:27] Production.INFO: ProcessCDR(1,14157945,1,1,2) [2025-01-02 11:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157945', 'tblTempUsageDetail_20' ) start [2025-01-02 11:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157945', 'tblTempUsageDetail_20' ) end [2025-01-02 11:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:34:31] Production.INFO: ==31298== Releasing lock... [2025-01-02 11:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:34:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:35:04 [end_date_ymd] => 2025-01-02 11:35:04 [RateCDR] => 1 ) [2025-01-02 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:35:04' and `end` < '2025-01-02 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:35:24] Production.INFO: count ==4191 [2025-01-02 11:35:25] Production.ERROR: pbx CDR StartTime 2025-01-02 08:35:04 - End Time 2025-01-02 11:35:04 [2025-01-02 11:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157950', 'tblTempUsageDetail_20' ) start [2025-01-02 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157950', 'tblTempUsageDetail_20' ) end [2025-01-02 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157950', 'tblTempVendorCDR_20' ) start [2025-01-02 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157950', 'tblTempVendorCDR_20' ) end [2025-01-02 11:35:26] Production.INFO: ProcessCDR(1,14157950,1,1,2) [2025-01-02 11:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157950', 'tblTempUsageDetail_20' ) start [2025-01-02 11:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157950', 'tblTempUsageDetail_20' ) end [2025-01-02 11:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:35:30] Production.INFO: ==31395== Releasing lock... [2025-01-02 11:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:35:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:36:05 [end_date_ymd] => 2025-01-02 11:36:05 [RateCDR] => 1 ) [2025-01-02 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:36:05' and `end` < '2025-01-02 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:36:18] Production.INFO: count ==4173 [2025-01-02 11:36:20] Production.ERROR: pbx CDR StartTime 2025-01-02 08:36:05 - End Time 2025-01-02 11:36:05 [2025-01-02 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157955', 'tblTempUsageDetail_20' ) start [2025-01-02 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157955', 'tblTempUsageDetail_20' ) end [2025-01-02 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157955', 'tblTempVendorCDR_20' ) start [2025-01-02 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157955', 'tblTempVendorCDR_20' ) end [2025-01-02 11:36:20] Production.INFO: ProcessCDR(1,14157955,1,1,2) [2025-01-02 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157955', 'tblTempUsageDetail_20' ) start [2025-01-02 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157955', 'tblTempUsageDetail_20' ) end [2025-01-02 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:36:25] Production.INFO: ==31488== Releasing lock... [2025-01-02 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:36:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-02 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:37:05 [end_date_ymd] => 2025-01-02 11:37:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:37:05' and `end` < '2025-01-02 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-01-02 11:37:20] Production.INFO: count ==4163 [2025-01-02 11:37:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:37:05 - End Time 2025-01-02 11:37:05 [2025-01-02 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157960', 'tblTempUsageDetail_20' ) start [2025-01-02 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157960', 'tblTempUsageDetail_20' ) end [2025-01-02 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157960', 'tblTempVendorCDR_20' ) start [2025-01-02 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157960', 'tblTempVendorCDR_20' ) end [2025-01-02 11:37:22] Production.INFO: ProcessCDR(1,14157960,1,1,2) [2025-01-02 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157960', 'tblTempUsageDetail_20' ) start [2025-01-02 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157960', 'tblTempUsageDetail_20' ) end [2025-01-02 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:37:27] Production.INFO: ==31584== Releasing lock... [2025-01-02 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:37:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:38:05 [end_date_ymd] => 2025-01-02 11:38:05 [RateCDR] => 1 ) [2025-01-02 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:38:05' and `end` < '2025-01-02 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:38:24] Production.INFO: count ==4161 [2025-01-02 11:38:26] Production.ERROR: pbx CDR StartTime 2025-01-02 08:38:05 - End Time 2025-01-02 11:38:05 [2025-01-02 11:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157965', 'tblTempUsageDetail_20' ) start [2025-01-02 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157965', 'tblTempUsageDetail_20' ) end [2025-01-02 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157965', 'tblTempVendorCDR_20' ) start [2025-01-02 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157965', 'tblTempVendorCDR_20' ) end [2025-01-02 11:38:26] Production.INFO: ProcessCDR(1,14157965,1,1,2) [2025-01-02 11:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157965', 'tblTempUsageDetail_20' ) start [2025-01-02 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157965', 'tblTempUsageDetail_20' ) end [2025-01-02 11:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:38:31] Production.INFO: ==31681== Releasing lock... [2025-01-02 11:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:38:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:39:05 [end_date_ymd] => 2025-01-02 11:39:05 [RateCDR] => 1 ) [2025-01-02 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:39:05' and `end` < '2025-01-02 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:39:28] Production.INFO: count ==4171 [2025-01-02 11:39:30] Production.ERROR: pbx CDR StartTime 2025-01-02 08:39:05 - End Time 2025-01-02 11:39:05 [2025-01-02 11:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157970', 'tblTempUsageDetail_20' ) start [2025-01-02 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157970', 'tblTempUsageDetail_20' ) end [2025-01-02 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157970', 'tblTempVendorCDR_20' ) start [2025-01-02 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157970', 'tblTempVendorCDR_20' ) end [2025-01-02 11:39:30] Production.INFO: ProcessCDR(1,14157970,1,1,2) [2025-01-02 11:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157970', 'tblTempUsageDetail_20' ) start [2025-01-02 11:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157970', 'tblTempUsageDetail_20' ) end [2025-01-02 11:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:39:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:39:35] Production.INFO: ==31786== Releasing lock... [2025-01-02 11:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:39:35] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:40:05 [end_date_ymd] => 2025-01-02 11:40:05 [RateCDR] => 1 ) [2025-01-02 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:40:05' and `end` < '2025-01-02 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:40:27] Production.INFO: count ==4163 [2025-01-02 11:40:29] Production.ERROR: pbx CDR StartTime 2025-01-02 08:40:05 - End Time 2025-01-02 11:40:05 [2025-01-02 11:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157976', 'tblTempUsageDetail_20' ) start [2025-01-02 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157976', 'tblTempUsageDetail_20' ) end [2025-01-02 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157976', 'tblTempVendorCDR_20' ) start [2025-01-02 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157976', 'tblTempVendorCDR_20' ) end [2025-01-02 11:40:29] Production.INFO: ProcessCDR(1,14157976,1,1,2) [2025-01-02 11:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157976', 'tblTempUsageDetail_20' ) start [2025-01-02 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157976', 'tblTempUsageDetail_20' ) end [2025-01-02 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:40:33] Production.INFO: ==31880== Releasing lock... [2025-01-02 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:40:33] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:41:05 [end_date_ymd] => 2025-01-02 11:41:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:41:05' and `end` < '2025-01-02 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-01-02 11:41:28] Production.INFO: count ==4291 [2025-01-02 11:41:30] Production.ERROR: pbx CDR StartTime 2025-01-02 08:41:05 - End Time 2025-01-02 11:41:05 [2025-01-02 11:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157981', 'tblTempUsageDetail_20' ) start [2025-01-02 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157981', 'tblTempUsageDetail_20' ) end [2025-01-02 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157981', 'tblTempVendorCDR_20' ) start [2025-01-02 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157981', 'tblTempVendorCDR_20' ) end [2025-01-02 11:41:30] Production.INFO: ProcessCDR(1,14157981,1,1,2) [2025-01-02 11:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157981', 'tblTempUsageDetail_20' ) start [2025-01-02 11:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157981', 'tblTempUsageDetail_20' ) end [2025-01-02 11:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:41:35] Production.INFO: ==32024== Releasing lock... [2025-01-02 11:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:41:35] Production.INFO: 60 MB #Memory Used# [2025-01-02 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:42:04 [end_date_ymd] => 2025-01-02 11:42:04 [RateCDR] => 1 ) [2025-01-02 11:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:42:04' and `end` < '2025-01-02 11:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:42:35] Production.INFO: count ==4287 [2025-01-02 11:42:37] Production.ERROR: pbx CDR StartTime 2025-01-02 08:42:04 - End Time 2025-01-02 11:42:04 [2025-01-02 11:42:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157986', 'tblTempUsageDetail_20' ) start [2025-01-02 11:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157986', 'tblTempUsageDetail_20' ) end [2025-01-02 11:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157986', 'tblTempVendorCDR_20' ) start [2025-01-02 11:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157986', 'tblTempVendorCDR_20' ) end [2025-01-02 11:42:37] Production.INFO: ProcessCDR(1,14157986,1,1,2) [2025-01-02 11:42:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:42:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:42:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:42:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157986', 'tblTempUsageDetail_20' ) start [2025-01-02 11:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157986', 'tblTempUsageDetail_20' ) end [2025-01-02 11:42:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:42:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:42:41] Production.INFO: ==32138== Releasing lock... [2025-01-02 11:42:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:42:41] Production.INFO: 60 MB #Memory Used# [2025-01-02 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:43:05 [end_date_ymd] => 2025-01-02 11:43:05 [RateCDR] => 1 ) [2025-01-02 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:43:05' and `end` < '2025-01-02 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:43:32] Production.INFO: count ==4304 [2025-01-02 11:43:33] Production.ERROR: pbx CDR StartTime 2025-01-02 08:43:05 - End Time 2025-01-02 11:43:05 [2025-01-02 11:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157991', 'tblTempUsageDetail_20' ) start [2025-01-02 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157991', 'tblTempUsageDetail_20' ) end [2025-01-02 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157991', 'tblTempVendorCDR_20' ) start [2025-01-02 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157991', 'tblTempVendorCDR_20' ) end [2025-01-02 11:43:34] Production.INFO: ProcessCDR(1,14157991,1,1,2) [2025-01-02 11:43:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157991', 'tblTempUsageDetail_20' ) start [2025-01-02 11:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157991', 'tblTempUsageDetail_20' ) end [2025-01-02 11:43:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:43:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:43:38] Production.INFO: ==32242== Releasing lock... [2025-01-02 11:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:43:38] Production.INFO: 60.25 MB #Memory Used# [2025-01-02 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:44:05 [end_date_ymd] => 2025-01-02 11:44:05 [RateCDR] => 1 ) [2025-01-02 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:44:05' and `end` < '2025-01-02 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:44:31] Production.INFO: count ==4335 [2025-01-02 11:44:32] Production.ERROR: pbx CDR StartTime 2025-01-02 08:44:05 - End Time 2025-01-02 11:44:05 [2025-01-02 11:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157996', 'tblTempUsageDetail_20' ) start [2025-01-02 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14157996', 'tblTempUsageDetail_20' ) end [2025-01-02 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157996', 'tblTempVendorCDR_20' ) start [2025-01-02 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14157996', 'tblTempVendorCDR_20' ) end [2025-01-02 11:44:33] Production.INFO: ProcessCDR(1,14157996,1,1,2) [2025-01-02 11:44:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14157996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:44:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14157996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:44:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14157996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:44:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14157996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157996', 'tblTempUsageDetail_20' ) start [2025-01-02 11:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14157996', 'tblTempUsageDetail_20' ) end [2025-01-02 11:44:37] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:44:37] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:44:37] Production.INFO: ==32352== Releasing lock... [2025-01-02 11:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:44:37] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:45:05 [end_date_ymd] => 2025-01-02 11:45:05 [RateCDR] => 1 ) [2025-01-02 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:45:05' and `end` < '2025-01-02 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:45:25] Production.INFO: count ==4340 [2025-01-02 11:45:27] Production.ERROR: pbx CDR StartTime 2025-01-02 08:45:05 - End Time 2025-01-02 11:45:05 [2025-01-02 11:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158001', 'tblTempUsageDetail_20' ) start [2025-01-02 11:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158001', 'tblTempUsageDetail_20' ) end [2025-01-02 11:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158001', 'tblTempVendorCDR_20' ) start [2025-01-02 11:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158001', 'tblTempVendorCDR_20' ) end [2025-01-02 11:45:27] Production.INFO: ProcessCDR(1,14158001,1,1,2) [2025-01-02 11:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158001', 'tblTempUsageDetail_20' ) start [2025-01-02 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158001', 'tblTempUsageDetail_20' ) end [2025-01-02 11:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:45:30] Production.INFO: ==32457== Releasing lock... [2025-01-02 11:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:45:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:46:05 [end_date_ymd] => 2025-01-02 11:46:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:46:05' and `end` < '2025-01-02 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-01-02 11:46:19] Production.INFO: count ==4348 [2025-01-02 11:46:21] Production.ERROR: pbx CDR StartTime 2025-01-02 08:46:05 - End Time 2025-01-02 11:46:05 [2025-01-02 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158006', 'tblTempUsageDetail_20' ) start [2025-01-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158006', 'tblTempUsageDetail_20' ) end [2025-01-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158006', 'tblTempVendorCDR_20' ) start [2025-01-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158006', 'tblTempVendorCDR_20' ) end [2025-01-02 11:46:21] Production.INFO: ProcessCDR(1,14158006,1,1,2) [2025-01-02 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158006', 'tblTempUsageDetail_20' ) start [2025-01-02 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158006', 'tblTempUsageDetail_20' ) end [2025-01-02 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:46:25] Production.INFO: ==32569== Releasing lock... [2025-01-02 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:46:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:47:04 [end_date_ymd] => 2025-01-02 11:47:04 [RateCDR] => 1 ) [2025-01-02 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:47:04' and `end` < '2025-01-02 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:47:22] Production.INFO: count ==4350 [2025-01-02 11:47:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:47:04 - End Time 2025-01-02 11:47:04 [2025-01-02 11:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158011', 'tblTempUsageDetail_20' ) start [2025-01-02 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158011', 'tblTempUsageDetail_20' ) end [2025-01-02 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158011', 'tblTempVendorCDR_20' ) start [2025-01-02 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158011', 'tblTempVendorCDR_20' ) end [2025-01-02 11:47:24] Production.INFO: ProcessCDR(1,14158011,1,1,2) [2025-01-02 11:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158011', 'tblTempUsageDetail_20' ) start [2025-01-02 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158011', 'tblTempUsageDetail_20' ) end [2025-01-02 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:47:29] Production.INFO: ==32681== Releasing lock... [2025-01-02 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:47:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:48:05 [end_date_ymd] => 2025-01-02 11:48:05 [RateCDR] => 1 ) [2025-01-02 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:48:05' and `end` < '2025-01-02 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:48:22] Production.INFO: count ==4348 [2025-01-02 11:48:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:48:05 - End Time 2025-01-02 11:48:05 [2025-01-02 11:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158016', 'tblTempUsageDetail_20' ) start [2025-01-02 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158016', 'tblTempUsageDetail_20' ) end [2025-01-02 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158016', 'tblTempVendorCDR_20' ) start [2025-01-02 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158016', 'tblTempVendorCDR_20' ) end [2025-01-02 11:48:24] Production.INFO: ProcessCDR(1,14158016,1,1,2) [2025-01-02 11:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158016', 'tblTempUsageDetail_20' ) start [2025-01-02 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158016', 'tblTempUsageDetail_20' ) end [2025-01-02 11:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:48:28] Production.INFO: ==326== Releasing lock... [2025-01-02 11:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:48:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:49:04 [end_date_ymd] => 2025-01-02 11:49:04 [RateCDR] => 1 ) [2025-01-02 11:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:49:04' and `end` < '2025-01-02 11:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:49:32] Production.INFO: count ==4354 [2025-01-02 11:49:34] Production.ERROR: pbx CDR StartTime 2025-01-02 08:49:04 - End Time 2025-01-02 11:49:04 [2025-01-02 11:49:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158021', 'tblTempUsageDetail_20' ) start [2025-01-02 11:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158021', 'tblTempUsageDetail_20' ) end [2025-01-02 11:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158021', 'tblTempVendorCDR_20' ) start [2025-01-02 11:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158021', 'tblTempVendorCDR_20' ) end [2025-01-02 11:49:34] Production.INFO: ProcessCDR(1,14158021,1,1,2) [2025-01-02 11:49:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:49:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:49:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:49:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158021', 'tblTempUsageDetail_20' ) start [2025-01-02 11:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158021', 'tblTempUsageDetail_20' ) end [2025-01-02 11:49:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:49:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:49:38] Production.INFO: ==448== Releasing lock... [2025-01-02 11:49:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:49:38] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:50:05 [end_date_ymd] => 2025-01-02 11:50:05 [RateCDR] => 1 ) [2025-01-02 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:50:05' and `end` < '2025-01-02 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:50:29] Production.INFO: count ==4368 [2025-01-02 11:50:31] Production.ERROR: pbx CDR StartTime 2025-01-02 08:50:05 - End Time 2025-01-02 11:50:05 [2025-01-02 11:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158026', 'tblTempUsageDetail_20' ) start [2025-01-02 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158026', 'tblTempUsageDetail_20' ) end [2025-01-02 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158026', 'tblTempVendorCDR_20' ) start [2025-01-02 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158026', 'tblTempVendorCDR_20' ) end [2025-01-02 11:50:31] Production.INFO: ProcessCDR(1,14158026,1,1,2) [2025-01-02 11:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158026', 'tblTempUsageDetail_20' ) start [2025-01-02 11:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158026', 'tblTempUsageDetail_20' ) end [2025-01-02 11:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:50:36] Production.INFO: ==561== Releasing lock... [2025-01-02 11:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:50:36] Production.INFO: 60.75 MB #Memory Used# [2025-01-02 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:51:05 [end_date_ymd] => 2025-01-02 11:51:05 [RateCDR] => 1 ) [2025-01-02 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:51:05' and `end` < '2025-01-02 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:51:23] Production.INFO: count ==4397 [2025-01-02 11:51:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:51:05 - End Time 2025-01-02 11:51:05 [2025-01-02 11:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158032', 'tblTempUsageDetail_20' ) start [2025-01-02 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158032', 'tblTempUsageDetail_20' ) end [2025-01-02 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158032', 'tblTempVendorCDR_20' ) start [2025-01-02 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158032', 'tblTempVendorCDR_20' ) end [2025-01-02 11:51:25] Production.INFO: ProcessCDR(1,14158032,1,1,2) [2025-01-02 11:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158032', 'tblTempUsageDetail_20' ) start [2025-01-02 11:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158032', 'tblTempUsageDetail_20' ) end [2025-01-02 11:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:51:29] Production.INFO: ==665== Releasing lock... [2025-01-02 11:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:51:29] Production.INFO: 61 MB #Memory Used# [2025-01-02 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:52:06 [end_date_ymd] => 2025-01-02 11:52:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:52:06' and `end` < '2025-01-02 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-01-02 11:52:20] Production.INFO: count ==4405 [2025-01-02 11:52:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:52:06 - End Time 2025-01-02 11:52:06 [2025-01-02 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158037', 'tblTempUsageDetail_20' ) start [2025-01-02 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158037', 'tblTempUsageDetail_20' ) end [2025-01-02 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158037', 'tblTempVendorCDR_20' ) start [2025-01-02 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158037', 'tblTempVendorCDR_20' ) end [2025-01-02 11:52:22] Production.INFO: ProcessCDR(1,14158037,1,1,2) [2025-01-02 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158037', 'tblTempUsageDetail_20' ) start [2025-01-02 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158037', 'tblTempUsageDetail_20' ) end [2025-01-02 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:52:26] Production.INFO: ==788== Releasing lock... [2025-01-02 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:52:26] Production.INFO: 61 MB #Memory Used# [2025-01-02 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:53:05 [end_date_ymd] => 2025-01-02 11:53:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:53:05' and `end` < '2025-01-02 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-01-02 11:53:18] Production.INFO: count ==4423 [2025-01-02 11:53:20] Production.ERROR: pbx CDR StartTime 2025-01-02 08:53:05 - End Time 2025-01-02 11:53:05 [2025-01-02 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158042', 'tblTempUsageDetail_20' ) start [2025-01-02 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158042', 'tblTempUsageDetail_20' ) end [2025-01-02 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158042', 'tblTempVendorCDR_20' ) start [2025-01-02 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158042', 'tblTempVendorCDR_20' ) end [2025-01-02 11:53:20] Production.INFO: ProcessCDR(1,14158042,1,1,2) [2025-01-02 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158042', 'tblTempUsageDetail_20' ) start [2025-01-02 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158042', 'tblTempUsageDetail_20' ) end [2025-01-02 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:53:25] Production.INFO: ==890== Releasing lock... [2025-01-02 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:53:25] Production.INFO: 61 MB #Memory Used# [2025-01-02 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:54:05 [end_date_ymd] => 2025-01-02 11:54:05 [RateCDR] => 1 ) [2025-01-02 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:54:05' and `end` < '2025-01-02 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:54:25] Production.INFO: count ==4439 [2025-01-02 11:54:27] Production.ERROR: pbx CDR StartTime 2025-01-02 08:54:05 - End Time 2025-01-02 11:54:05 [2025-01-02 11:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158047', 'tblTempUsageDetail_20' ) start [2025-01-02 11:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158047', 'tblTempUsageDetail_20' ) end [2025-01-02 11:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158047', 'tblTempVendorCDR_20' ) start [2025-01-02 11:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158047', 'tblTempVendorCDR_20' ) end [2025-01-02 11:54:27] Production.INFO: ProcessCDR(1,14158047,1,1,2) [2025-01-02 11:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158047', 'tblTempUsageDetail_20' ) start [2025-01-02 11:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158047', 'tblTempUsageDetail_20' ) end [2025-01-02 11:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:54:32] Production.INFO: ==992== Releasing lock... [2025-01-02 11:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:54:32] Production.INFO: 61.25 MB #Memory Used# [2025-01-02 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:55:05 [end_date_ymd] => 2025-01-02 11:55:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 08:55:05' and `end` < '2025-01-02 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-01-02 11:55:21] Production.INFO: count ==4442 [2025-01-02 11:55:22] Production.ERROR: pbx CDR StartTime 2025-01-02 08:55:05 - End Time 2025-01-02 11:55:05 [2025-01-02 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158052', 'tblTempUsageDetail_20' ) start [2025-01-02 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158052', 'tblTempUsageDetail_20' ) end [2025-01-02 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158052', 'tblTempVendorCDR_20' ) start [2025-01-02 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158052', 'tblTempVendorCDR_20' ) end [2025-01-02 11:55:22] Production.INFO: ProcessCDR(1,14158052,1,1,2) [2025-01-02 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158052', 'tblTempUsageDetail_20' ) start [2025-01-02 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158052', 'tblTempUsageDetail_20' ) end [2025-01-02 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:55:27] Production.INFO: ==1096== Releasing lock... [2025-01-02 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:55:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-02 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:56:05 [end_date_ymd] => 2025-01-02 11:56:05 [RateCDR] => 1 ) [2025-01-02 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:56:05' and `end` < '2025-01-02 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:56:19] Production.INFO: count ==4443 [2025-01-02 11:56:20] Production.ERROR: pbx CDR StartTime 2025-01-02 08:56:05 - End Time 2025-01-02 11:56:05 [2025-01-02 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158057', 'tblTempUsageDetail_20' ) start [2025-01-02 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158057', 'tblTempUsageDetail_20' ) end [2025-01-02 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158057', 'tblTempVendorCDR_20' ) start [2025-01-02 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158057', 'tblTempVendorCDR_20' ) end [2025-01-02 11:56:21] Production.INFO: ProcessCDR(1,14158057,1,1,2) [2025-01-02 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158057', 'tblTempUsageDetail_20' ) start [2025-01-02 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158057', 'tblTempUsageDetail_20' ) end [2025-01-02 11:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:56:24] Production.INFO: ==1205== Releasing lock... [2025-01-02 11:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:56:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-02 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:57:04 [end_date_ymd] => 2025-01-02 11:57:04 [RateCDR] => 1 ) [2025-01-02 11:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:57:04' and `end` < '2025-01-02 11:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:57:22] Production.INFO: count ==4454 [2025-01-02 11:57:24] Production.ERROR: pbx CDR StartTime 2025-01-02 08:57:04 - End Time 2025-01-02 11:57:04 [2025-01-02 11:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158062', 'tblTempUsageDetail_20' ) start [2025-01-02 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158062', 'tblTempUsageDetail_20' ) end [2025-01-02 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158062', 'tblTempVendorCDR_20' ) start [2025-01-02 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158062', 'tblTempVendorCDR_20' ) end [2025-01-02 11:57:24] Production.INFO: ProcessCDR(1,14158062,1,1,2) [2025-01-02 11:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158062', 'tblTempUsageDetail_20' ) start [2025-01-02 11:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158062', 'tblTempUsageDetail_20' ) end [2025-01-02 11:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:57:29] Production.INFO: ==1360== Releasing lock... [2025-01-02 11:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:57:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-02 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:58:05 [end_date_ymd] => 2025-01-02 11:58:05 [RateCDR] => 1 ) [2025-01-02 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:58:05' and `end` < '2025-01-02 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:58:19] Production.INFO: count ==4450 [2025-01-02 11:58:21] Production.ERROR: pbx CDR StartTime 2025-01-02 08:58:05 - End Time 2025-01-02 11:58:05 [2025-01-02 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158067', 'tblTempUsageDetail_20' ) start [2025-01-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158067', 'tblTempUsageDetail_20' ) end [2025-01-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158067', 'tblTempVendorCDR_20' ) start [2025-01-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158067', 'tblTempVendorCDR_20' ) end [2025-01-02 11:58:21] Production.INFO: ProcessCDR(1,14158067,1,1,2) [2025-01-02 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158067', 'tblTempUsageDetail_20' ) start [2025-01-02 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158067', 'tblTempUsageDetail_20' ) end [2025-01-02 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:58:26] Production.INFO: ==1466== Releasing lock... [2025-01-02 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:58:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-02 11:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 08:59:04 [end_date_ymd] => 2025-01-02 11:59:04 [RateCDR] => 1 ) [2025-01-02 11:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 08:59:04' and `end` < '2025-01-02 11:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 11:59:23] Production.INFO: count ==4475 [2025-01-02 11:59:25] Production.ERROR: pbx CDR StartTime 2025-01-02 08:59:04 - End Time 2025-01-02 11:59:04 [2025-01-02 11:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158072', 'tblTempUsageDetail_20' ) start [2025-01-02 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158072', 'tblTempUsageDetail_20' ) end [2025-01-02 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158072', 'tblTempVendorCDR_20' ) start [2025-01-02 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158072', 'tblTempVendorCDR_20' ) end [2025-01-02 11:59:25] Production.INFO: ProcessCDR(1,14158072,1,1,2) [2025-01-02 11:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 11:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158072', 'tblTempUsageDetail_20' ) start [2025-01-02 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158072', 'tblTempUsageDetail_20' ) end [2025-01-02 11:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 11:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 11:59:30] Production.INFO: ==1600== Releasing lock... [2025-01-02 11:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 11:59:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:00:06 [end_date_ymd] => 2025-01-02 12:00:06 [RateCDR] => 1 ) [2025-01-02 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:00:06' and `end` < '2025-01-02 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:00:29] Production.INFO: count ==4500 [2025-01-02 12:00:31] Production.ERROR: pbx CDR StartTime 2025-01-02 09:00:06 - End Time 2025-01-02 12:00:06 [2025-01-02 12:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158078', 'tblTempUsageDetail_20' ) start [2025-01-02 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158078', 'tblTempUsageDetail_20' ) end [2025-01-02 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158078', 'tblTempVendorCDR_20' ) start [2025-01-02 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158078', 'tblTempVendorCDR_20' ) end [2025-01-02 12:00:31] Production.INFO: ProcessCDR(1,14158078,1,1,2) [2025-01-02 12:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158078', 'tblTempUsageDetail_20' ) start [2025-01-02 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158078', 'tblTempUsageDetail_20' ) end [2025-01-02 12:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:00:36] Production.INFO: ==1691== Releasing lock... [2025-01-02 12:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:00:36] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:01:05 [end_date_ymd] => 2025-01-02 12:01:05 [RateCDR] => 1 ) [2025-01-02 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:01:05' and `end` < '2025-01-02 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:01:29] Production.INFO: count ==4596 [2025-01-02 12:01:31] Production.ERROR: pbx CDR StartTime 2025-01-02 09:01:05 - End Time 2025-01-02 12:01:05 [2025-01-02 12:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158083', 'tblTempUsageDetail_20' ) start [2025-01-02 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158083', 'tblTempUsageDetail_20' ) end [2025-01-02 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158083', 'tblTempVendorCDR_20' ) start [2025-01-02 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158083', 'tblTempVendorCDR_20' ) end [2025-01-02 12:01:31] Production.INFO: ProcessCDR(1,14158083,1,1,2) [2025-01-02 12:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158083', 'tblTempUsageDetail_20' ) start [2025-01-02 12:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158083', 'tblTempUsageDetail_20' ) end [2025-01-02 12:01:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:01:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:01:35] Production.INFO: ==1797== Releasing lock... [2025-01-02 12:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:01:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:02:05 [end_date_ymd] => 2025-01-02 12:02:05 [RateCDR] => 1 ) [2025-01-02 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:02:05' and `end` < '2025-01-02 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:02:26] Production.INFO: count ==4616 [2025-01-02 12:02:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:02:05 - End Time 2025-01-02 12:02:05 [2025-01-02 12:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158088', 'tblTempUsageDetail_20' ) start [2025-01-02 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158088', 'tblTempUsageDetail_20' ) end [2025-01-02 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158088', 'tblTempVendorCDR_20' ) start [2025-01-02 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158088', 'tblTempVendorCDR_20' ) end [2025-01-02 12:02:28] Production.INFO: ProcessCDR(1,14158088,1,1,2) [2025-01-02 12:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158088', 'tblTempUsageDetail_20' ) start [2025-01-02 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158088', 'tblTempUsageDetail_20' ) end [2025-01-02 12:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:02:33] Production.INFO: ==1889== Releasing lock... [2025-01-02 12:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:02:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:03:05 [end_date_ymd] => 2025-01-02 12:03:05 [RateCDR] => 1 ) [2025-01-02 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:03:05' and `end` < '2025-01-02 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:03:27] Production.INFO: count ==4611 [2025-01-02 12:03:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:03:05 - End Time 2025-01-02 12:03:05 [2025-01-02 12:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158093', 'tblTempUsageDetail_20' ) start [2025-01-02 12:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158093', 'tblTempUsageDetail_20' ) end [2025-01-02 12:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158093', 'tblTempVendorCDR_20' ) start [2025-01-02 12:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158093', 'tblTempVendorCDR_20' ) end [2025-01-02 12:03:29] Production.INFO: ProcessCDR(1,14158093,1,1,2) [2025-01-02 12:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158093', 'tblTempUsageDetail_20' ) start [2025-01-02 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158093', 'tblTempUsageDetail_20' ) end [2025-01-02 12:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:03:33] Production.INFO: ==1968== Releasing lock... [2025-01-02 12:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:03:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:04:05 [end_date_ymd] => 2025-01-02 12:04:05 [RateCDR] => 1 ) [2025-01-02 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:04:05' and `end` < '2025-01-02 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:04:27] Production.INFO: count ==4627 [2025-01-02 12:04:29] Production.ERROR: pbx CDR StartTime 2025-01-02 09:04:05 - End Time 2025-01-02 12:04:05 [2025-01-02 12:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158098', 'tblTempUsageDetail_20' ) start [2025-01-02 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158098', 'tblTempUsageDetail_20' ) end [2025-01-02 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158098', 'tblTempVendorCDR_20' ) start [2025-01-02 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158098', 'tblTempVendorCDR_20' ) end [2025-01-02 12:04:29] Production.INFO: ProcessCDR(1,14158098,1,1,2) [2025-01-02 12:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158098', 'tblTempUsageDetail_20' ) start [2025-01-02 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158098', 'tblTempUsageDetail_20' ) end [2025-01-02 12:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:04:34] Production.INFO: ==2058== Releasing lock... [2025-01-02 12:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:04:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:05:05 [end_date_ymd] => 2025-01-02 12:05:05 [RateCDR] => 1 ) [2025-01-02 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:05:05' and `end` < '2025-01-02 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:05:29] Production.INFO: count ==4625 [2025-01-02 12:05:31] Production.ERROR: pbx CDR StartTime 2025-01-02 09:05:05 - End Time 2025-01-02 12:05:05 [2025-01-02 12:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158103', 'tblTempUsageDetail_20' ) start [2025-01-02 12:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158103', 'tblTempUsageDetail_20' ) end [2025-01-02 12:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158103', 'tblTempVendorCDR_20' ) start [2025-01-02 12:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158103', 'tblTempVendorCDR_20' ) end [2025-01-02 12:05:31] Production.INFO: ProcessCDR(1,14158103,1,1,2) [2025-01-02 12:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158103', 'tblTempUsageDetail_20' ) start [2025-01-02 12:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158103', 'tblTempUsageDetail_20' ) end [2025-01-02 12:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:05:36] Production.INFO: ==2148== Releasing lock... [2025-01-02 12:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:05:36] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:06:05 [end_date_ymd] => 2025-01-02 12:06:05 [RateCDR] => 1 ) [2025-01-02 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:06:05' and `end` < '2025-01-02 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:06:26] Production.INFO: count ==4621 [2025-01-02 12:06:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:06:05 - End Time 2025-01-02 12:06:05 [2025-01-02 12:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158108', 'tblTempUsageDetail_20' ) start [2025-01-02 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158108', 'tblTempUsageDetail_20' ) end [2025-01-02 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158108', 'tblTempVendorCDR_20' ) start [2025-01-02 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158108', 'tblTempVendorCDR_20' ) end [2025-01-02 12:06:28] Production.INFO: ProcessCDR(1,14158108,1,1,2) [2025-01-02 12:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158108', 'tblTempUsageDetail_20' ) start [2025-01-02 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158108', 'tblTempUsageDetail_20' ) end [2025-01-02 12:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:06:33] Production.INFO: ==2227== Releasing lock... [2025-01-02 12:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:06:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:07:05 [end_date_ymd] => 2025-01-02 12:07:05 [RateCDR] => 1 ) [2025-01-02 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:07:05' and `end` < '2025-01-02 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:07:22] Production.INFO: count ==4636 [2025-01-02 12:07:24] Production.ERROR: pbx CDR StartTime 2025-01-02 09:07:05 - End Time 2025-01-02 12:07:05 [2025-01-02 12:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158113', 'tblTempUsageDetail_20' ) start [2025-01-02 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158113', 'tblTempUsageDetail_20' ) end [2025-01-02 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158113', 'tblTempVendorCDR_20' ) start [2025-01-02 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158113', 'tblTempVendorCDR_20' ) end [2025-01-02 12:07:24] Production.INFO: ProcessCDR(1,14158113,1,1,2) [2025-01-02 12:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158113', 'tblTempUsageDetail_20' ) start [2025-01-02 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158113', 'tblTempUsageDetail_20' ) end [2025-01-02 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:07:29] Production.INFO: ==2305== Releasing lock... [2025-01-02 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:07:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:08:05 [end_date_ymd] => 2025-01-02 12:08:05 [RateCDR] => 1 ) [2025-01-02 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:08:05' and `end` < '2025-01-02 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:08:18] Production.INFO: count ==4634 [2025-01-02 12:08:20] Production.ERROR: pbx CDR StartTime 2025-01-02 09:08:05 - End Time 2025-01-02 12:08:05 [2025-01-02 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158118', 'tblTempUsageDetail_20' ) start [2025-01-02 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158118', 'tblTempUsageDetail_20' ) end [2025-01-02 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158118', 'tblTempVendorCDR_20' ) start [2025-01-02 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158118', 'tblTempVendorCDR_20' ) end [2025-01-02 12:08:20] Production.INFO: ProcessCDR(1,14158118,1,1,2) [2025-01-02 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158118', 'tblTempUsageDetail_20' ) start [2025-01-02 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158118', 'tblTempUsageDetail_20' ) end [2025-01-02 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:08:25] Production.INFO: ==2388== Releasing lock... [2025-01-02 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:08:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:09:05 [end_date_ymd] => 2025-01-02 12:09:05 [RateCDR] => 1 ) [2025-01-02 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:09:05' and `end` < '2025-01-02 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:09:29] Production.INFO: count ==4614 [2025-01-02 12:09:31] Production.ERROR: pbx CDR StartTime 2025-01-02 09:09:05 - End Time 2025-01-02 12:09:05 [2025-01-02 12:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158123', 'tblTempUsageDetail_20' ) start [2025-01-02 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158123', 'tblTempUsageDetail_20' ) end [2025-01-02 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158123', 'tblTempVendorCDR_20' ) start [2025-01-02 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158123', 'tblTempVendorCDR_20' ) end [2025-01-02 12:09:31] Production.INFO: ProcessCDR(1,14158123,1,1,2) [2025-01-02 12:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158123', 'tblTempUsageDetail_20' ) start [2025-01-02 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158123', 'tblTempUsageDetail_20' ) end [2025-01-02 12:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:09:35] Production.INFO: ==2468== Releasing lock... [2025-01-02 12:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:09:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:10:06 [end_date_ymd] => 2025-01-02 12:10:06 [RateCDR] => 1 ) [2025-01-02 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:10:06' and `end` < '2025-01-02 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:10:28] Production.INFO: count ==4602 [2025-01-02 12:10:29] Production.ERROR: pbx CDR StartTime 2025-01-02 09:10:06 - End Time 2025-01-02 12:10:06 [2025-01-02 12:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158129', 'tblTempUsageDetail_20' ) start [2025-01-02 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158129', 'tblTempUsageDetail_20' ) end [2025-01-02 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158129', 'tblTempVendorCDR_20' ) start [2025-01-02 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158129', 'tblTempVendorCDR_20' ) end [2025-01-02 12:10:29] Production.INFO: ProcessCDR(1,14158129,1,1,2) [2025-01-02 12:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158129', 'tblTempUsageDetail_20' ) start [2025-01-02 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158129', 'tblTempUsageDetail_20' ) end [2025-01-02 12:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:10:34] Production.INFO: ==2553== Releasing lock... [2025-01-02 12:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:10:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:11:04 [end_date_ymd] => 2025-01-02 12:11:04 [RateCDR] => 1 ) [2025-01-02 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:11:04' and `end` < '2025-01-02 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:11:23] Production.INFO: count ==4595 [2025-01-02 12:11:25] Production.ERROR: pbx CDR StartTime 2025-01-02 09:11:04 - End Time 2025-01-02 12:11:04 [2025-01-02 12:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158134', 'tblTempUsageDetail_20' ) start [2025-01-02 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158134', 'tblTempUsageDetail_20' ) end [2025-01-02 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158134', 'tblTempVendorCDR_20' ) start [2025-01-02 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158134', 'tblTempVendorCDR_20' ) end [2025-01-02 12:11:25] Production.INFO: ProcessCDR(1,14158134,1,1,2) [2025-01-02 12:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158134', 'tblTempUsageDetail_20' ) start [2025-01-02 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158134', 'tblTempUsageDetail_20' ) end [2025-01-02 12:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:11:29] Production.INFO: ==2637== Releasing lock... [2025-01-02 12:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:11:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:12:05 [end_date_ymd] => 2025-01-02 12:12:05 [RateCDR] => 1 ) [2025-01-02 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:12:05' and `end` < '2025-01-02 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:12:22] Production.INFO: count ==4593 [2025-01-02 12:12:24] Production.ERROR: pbx CDR StartTime 2025-01-02 09:12:05 - End Time 2025-01-02 12:12:05 [2025-01-02 12:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158139', 'tblTempUsageDetail_20' ) start [2025-01-02 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158139', 'tblTempUsageDetail_20' ) end [2025-01-02 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158139', 'tblTempVendorCDR_20' ) start [2025-01-02 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158139', 'tblTempVendorCDR_20' ) end [2025-01-02 12:12:24] Production.INFO: ProcessCDR(1,14158139,1,1,2) [2025-01-02 12:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158139', 'tblTempUsageDetail_20' ) start [2025-01-02 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158139', 'tblTempUsageDetail_20' ) end [2025-01-02 12:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:12:29] Production.INFO: ==2753== Releasing lock... [2025-01-02 12:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:12:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:13:05 [end_date_ymd] => 2025-01-02 12:13:05 [RateCDR] => 1 ) [2025-01-02 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:13:05' and `end` < '2025-01-02 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:13:26] Production.INFO: count ==4605 [2025-01-02 12:13:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:13:05 - End Time 2025-01-02 12:13:05 [2025-01-02 12:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158144', 'tblTempUsageDetail_20' ) start [2025-01-02 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158144', 'tblTempUsageDetail_20' ) end [2025-01-02 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158144', 'tblTempVendorCDR_20' ) start [2025-01-02 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158144', 'tblTempVendorCDR_20' ) end [2025-01-02 12:13:28] Production.INFO: ProcessCDR(1,14158144,1,1,2) [2025-01-02 12:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158144', 'tblTempUsageDetail_20' ) start [2025-01-02 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158144', 'tblTempUsageDetail_20' ) end [2025-01-02 12:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:13:33] Production.INFO: ==2833== Releasing lock... [2025-01-02 12:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:13:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:14:05 [end_date_ymd] => 2025-01-02 12:14:05 [RateCDR] => 1 ) [2025-01-02 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:14:05' and `end` < '2025-01-02 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:14:20] Production.INFO: count ==4629 [2025-01-02 12:14:22] Production.ERROR: pbx CDR StartTime 2025-01-02 09:14:05 - End Time 2025-01-02 12:14:05 [2025-01-02 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158149', 'tblTempUsageDetail_20' ) start [2025-01-02 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158149', 'tblTempUsageDetail_20' ) end [2025-01-02 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158149', 'tblTempVendorCDR_20' ) start [2025-01-02 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158149', 'tblTempVendorCDR_20' ) end [2025-01-02 12:14:22] Production.INFO: ProcessCDR(1,14158149,1,1,2) [2025-01-02 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158149', 'tblTempUsageDetail_20' ) start [2025-01-02 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158149', 'tblTempUsageDetail_20' ) end [2025-01-02 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:14:26] Production.INFO: ==2939== Releasing lock... [2025-01-02 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:14:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:15:05 [end_date_ymd] => 2025-01-02 12:15:05 [RateCDR] => 1 ) [2025-01-02 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:15:05' and `end` < '2025-01-02 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:15:28] Production.INFO: count ==4622 [2025-01-02 12:15:30] Production.ERROR: pbx CDR StartTime 2025-01-02 09:15:05 - End Time 2025-01-02 12:15:05 [2025-01-02 12:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158154', 'tblTempUsageDetail_20' ) start [2025-01-02 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158154', 'tblTempUsageDetail_20' ) end [2025-01-02 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158154', 'tblTempVendorCDR_20' ) start [2025-01-02 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158154', 'tblTempVendorCDR_20' ) end [2025-01-02 12:15:30] Production.INFO: ProcessCDR(1,14158154,1,1,2) [2025-01-02 12:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158154', 'tblTempUsageDetail_20' ) start [2025-01-02 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158154', 'tblTempUsageDetail_20' ) end [2025-01-02 12:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:15:35] Production.INFO: ==3048== Releasing lock... [2025-01-02 12:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:15:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:16:05 [end_date_ymd] => 2025-01-02 12:16:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:16:05' and `end` < '2025-01-02 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-01-02 12:16:24] Production.INFO: count ==4592 [2025-01-02 12:16:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:16:05 - End Time 2025-01-02 12:16:05 [2025-01-02 12:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158159', 'tblTempUsageDetail_20' ) start [2025-01-02 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158159', 'tblTempUsageDetail_20' ) end [2025-01-02 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158159', 'tblTempVendorCDR_20' ) start [2025-01-02 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158159', 'tblTempVendorCDR_20' ) end [2025-01-02 12:16:26] Production.INFO: ProcessCDR(1,14158159,1,1,2) [2025-01-02 12:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158159', 'tblTempUsageDetail_20' ) start [2025-01-02 12:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158159', 'tblTempUsageDetail_20' ) end [2025-01-02 12:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:16:31] Production.INFO: ==3153== Releasing lock... [2025-01-02 12:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:16:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:17:05 [end_date_ymd] => 2025-01-02 12:17:05 [RateCDR] => 1 ) [2025-01-02 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:17:05' and `end` < '2025-01-02 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:17:24] Production.INFO: count ==4594 [2025-01-02 12:17:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:17:05 - End Time 2025-01-02 12:17:05 [2025-01-02 12:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158164', 'tblTempUsageDetail_20' ) start [2025-01-02 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158164', 'tblTempUsageDetail_20' ) end [2025-01-02 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158164', 'tblTempVendorCDR_20' ) start [2025-01-02 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158164', 'tblTempVendorCDR_20' ) end [2025-01-02 12:17:26] Production.INFO: ProcessCDR(1,14158164,1,1,2) [2025-01-02 12:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158164', 'tblTempUsageDetail_20' ) start [2025-01-02 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158164', 'tblTempUsageDetail_20' ) end [2025-01-02 12:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:17:31] Production.INFO: ==3268== Releasing lock... [2025-01-02 12:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:17:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:18:05 [end_date_ymd] => 2025-01-02 12:18:05 [RateCDR] => 1 ) [2025-01-02 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:18:05' and `end` < '2025-01-02 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:18:22] Production.INFO: count ==4590 [2025-01-02 12:18:24] Production.ERROR: pbx CDR StartTime 2025-01-02 09:18:05 - End Time 2025-01-02 12:18:05 [2025-01-02 12:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158169', 'tblTempUsageDetail_20' ) start [2025-01-02 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158169', 'tblTempUsageDetail_20' ) end [2025-01-02 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158169', 'tblTempVendorCDR_20' ) start [2025-01-02 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158169', 'tblTempVendorCDR_20' ) end [2025-01-02 12:18:24] Production.INFO: ProcessCDR(1,14158169,1,1,2) [2025-01-02 12:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158169', 'tblTempUsageDetail_20' ) start [2025-01-02 12:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158169', 'tblTempUsageDetail_20' ) end [2025-01-02 12:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:18:29] Production.INFO: ==3373== Releasing lock... [2025-01-02 12:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:18:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:19:05 [end_date_ymd] => 2025-01-02 12:19:05 [RateCDR] => 1 ) [2025-01-02 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:19:05' and `end` < '2025-01-02 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:19:19] Production.INFO: count ==4582 [2025-01-02 12:19:20] Production.ERROR: pbx CDR StartTime 2025-01-02 09:19:05 - End Time 2025-01-02 12:19:05 [2025-01-02 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158174', 'tblTempUsageDetail_20' ) start [2025-01-02 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158174', 'tblTempUsageDetail_20' ) end [2025-01-02 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158174', 'tblTempVendorCDR_20' ) start [2025-01-02 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158174', 'tblTempVendorCDR_20' ) end [2025-01-02 12:19:21] Production.INFO: ProcessCDR(1,14158174,1,1,2) [2025-01-02 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158174', 'tblTempUsageDetail_20' ) start [2025-01-02 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158174', 'tblTempUsageDetail_20' ) end [2025-01-02 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:19:25] Production.INFO: ==3479== Releasing lock... [2025-01-02 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:19:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:20:06 [end_date_ymd] => 2025-01-02 12:20:06 [RateCDR] => 1 ) [2025-01-02 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:20:06' and `end` < '2025-01-02 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:20:35] Production.INFO: count ==4571 [2025-01-02 12:20:37] Production.ERROR: pbx CDR StartTime 2025-01-02 09:20:06 - End Time 2025-01-02 12:20:06 [2025-01-02 12:20:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158180', 'tblTempUsageDetail_20' ) start [2025-01-02 12:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158180', 'tblTempUsageDetail_20' ) end [2025-01-02 12:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158180', 'tblTempVendorCDR_20' ) start [2025-01-02 12:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158180', 'tblTempVendorCDR_20' ) end [2025-01-02 12:20:37] Production.INFO: ProcessCDR(1,14158180,1,1,2) [2025-01-02 12:20:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158180', 'tblTempUsageDetail_20' ) start [2025-01-02 12:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158180', 'tblTempUsageDetail_20' ) end [2025-01-02 12:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:20:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:20:42] Production.INFO: ==3583== Releasing lock... [2025-01-02 12:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:20:42] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:21:04 [end_date_ymd] => 2025-01-02 12:21:04 [RateCDR] => 1 ) [2025-01-02 12:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:21:04' and `end` < '2025-01-02 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:21:33] Production.INFO: count ==4610 [2025-01-02 12:21:35] Production.ERROR: pbx CDR StartTime 2025-01-02 09:21:04 - End Time 2025-01-02 12:21:04 [2025-01-02 12:21:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158185', 'tblTempUsageDetail_20' ) start [2025-01-02 12:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158185', 'tblTempUsageDetail_20' ) end [2025-01-02 12:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158185', 'tblTempVendorCDR_20' ) start [2025-01-02 12:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158185', 'tblTempVendorCDR_20' ) end [2025-01-02 12:21:35] Production.INFO: ProcessCDR(1,14158185,1,1,2) [2025-01-02 12:21:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:21:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:21:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:21:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158185', 'tblTempUsageDetail_20' ) start [2025-01-02 12:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158185', 'tblTempUsageDetail_20' ) end [2025-01-02 12:21:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:21:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:21:40] Production.INFO: ==3690== Releasing lock... [2025-01-02 12:21:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:21:40] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:22:05 [end_date_ymd] => 2025-01-02 12:22:05 [RateCDR] => 1 ) [2025-01-02 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:22:05' and `end` < '2025-01-02 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:22:24] Production.INFO: count ==4612 [2025-01-02 12:22:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:22:05 - End Time 2025-01-02 12:22:05 [2025-01-02 12:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158190', 'tblTempUsageDetail_20' ) start [2025-01-02 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158190', 'tblTempUsageDetail_20' ) end [2025-01-02 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158190', 'tblTempVendorCDR_20' ) start [2025-01-02 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158190', 'tblTempVendorCDR_20' ) end [2025-01-02 12:22:27] Production.INFO: ProcessCDR(1,14158190,1,1,2) [2025-01-02 12:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158190', 'tblTempUsageDetail_20' ) start [2025-01-02 12:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158190', 'tblTempUsageDetail_20' ) end [2025-01-02 12:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:22:31] Production.INFO: ==3795== Releasing lock... [2025-01-02 12:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:22:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:23:05 [end_date_ymd] => 2025-01-02 12:23:05 [RateCDR] => 1 ) [2025-01-02 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:23:05' and `end` < '2025-01-02 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:23:26] Production.INFO: count ==4574 [2025-01-02 12:23:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:23:05 - End Time 2025-01-02 12:23:05 [2025-01-02 12:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158195', 'tblTempUsageDetail_20' ) start [2025-01-02 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158195', 'tblTempUsageDetail_20' ) end [2025-01-02 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158195', 'tblTempVendorCDR_20' ) start [2025-01-02 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158195', 'tblTempVendorCDR_20' ) end [2025-01-02 12:23:28] Production.INFO: ProcessCDR(1,14158195,1,1,2) [2025-01-02 12:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158195', 'tblTempUsageDetail_20' ) start [2025-01-02 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158195', 'tblTempUsageDetail_20' ) end [2025-01-02 12:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:23:32] Production.INFO: ==3904== Releasing lock... [2025-01-02 12:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:23:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:24:05 [end_date_ymd] => 2025-01-02 12:24:05 [RateCDR] => 1 ) [2025-01-02 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:24:05' and `end` < '2025-01-02 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:24:21] Production.INFO: count ==4531 [2025-01-02 12:24:23] Production.ERROR: pbx CDR StartTime 2025-01-02 09:24:05 - End Time 2025-01-02 12:24:05 [2025-01-02 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158200', 'tblTempUsageDetail_20' ) start [2025-01-02 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158200', 'tblTempUsageDetail_20' ) end [2025-01-02 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158200', 'tblTempVendorCDR_20' ) start [2025-01-02 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158200', 'tblTempVendorCDR_20' ) end [2025-01-02 12:24:23] Production.INFO: ProcessCDR(1,14158200,1,1,2) [2025-01-02 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158200', 'tblTempUsageDetail_20' ) start [2025-01-02 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158200', 'tblTempUsageDetail_20' ) end [2025-01-02 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:24:27] Production.INFO: ==4007== Releasing lock... [2025-01-02 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:24:27] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:25:05 [end_date_ymd] => 2025-01-02 12:25:05 [RateCDR] => 1 ) [2025-01-02 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:25:05' and `end` < '2025-01-02 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:25:29] Production.INFO: count ==4538 [2025-01-02 12:25:31] Production.ERROR: pbx CDR StartTime 2025-01-02 09:25:05 - End Time 2025-01-02 12:25:05 [2025-01-02 12:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158205', 'tblTempUsageDetail_20' ) start [2025-01-02 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158205', 'tblTempUsageDetail_20' ) end [2025-01-02 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158205', 'tblTempVendorCDR_20' ) start [2025-01-02 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158205', 'tblTempVendorCDR_20' ) end [2025-01-02 12:25:31] Production.INFO: ProcessCDR(1,14158205,1,1,2) [2025-01-02 12:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158205', 'tblTempUsageDetail_20' ) start [2025-01-02 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158205', 'tblTempUsageDetail_20' ) end [2025-01-02 12:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:25:36] Production.INFO: ==4116== Releasing lock... [2025-01-02 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:25:36] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:26:05 [end_date_ymd] => 2025-01-02 12:26:05 [RateCDR] => 1 ) [2025-01-02 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:26:05' and `end` < '2025-01-02 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:26:20] Production.INFO: count ==4539 [2025-01-02 12:26:22] Production.ERROR: pbx CDR StartTime 2025-01-02 09:26:05 - End Time 2025-01-02 12:26:05 [2025-01-02 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158210', 'tblTempUsageDetail_20' ) start [2025-01-02 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158210', 'tblTempUsageDetail_20' ) end [2025-01-02 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158210', 'tblTempVendorCDR_20' ) start [2025-01-02 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158210', 'tblTempVendorCDR_20' ) end [2025-01-02 12:26:22] Production.INFO: ProcessCDR(1,14158210,1,1,2) [2025-01-02 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158210', 'tblTempUsageDetail_20' ) start [2025-01-02 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158210', 'tblTempUsageDetail_20' ) end [2025-01-02 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:26:27] Production.INFO: ==4217== Releasing lock... [2025-01-02 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:26:27] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:27:05 [end_date_ymd] => 2025-01-02 12:27:05 [RateCDR] => 1 ) [2025-01-02 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:27:05' and `end` < '2025-01-02 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:27:22] Production.INFO: count ==4550 [2025-01-02 12:27:24] Production.ERROR: pbx CDR StartTime 2025-01-02 09:27:05 - End Time 2025-01-02 12:27:05 [2025-01-02 12:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158215', 'tblTempUsageDetail_20' ) start [2025-01-02 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158215', 'tblTempUsageDetail_20' ) end [2025-01-02 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158215', 'tblTempVendorCDR_20' ) start [2025-01-02 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158215', 'tblTempVendorCDR_20' ) end [2025-01-02 12:27:24] Production.INFO: ProcessCDR(1,14158215,1,1,2) [2025-01-02 12:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158215', 'tblTempUsageDetail_20' ) start [2025-01-02 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158215', 'tblTempUsageDetail_20' ) end [2025-01-02 12:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:27:29] Production.INFO: ==4320== Releasing lock... [2025-01-02 12:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:27:29] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:28:04 [end_date_ymd] => 2025-01-02 12:28:04 [RateCDR] => 1 ) [2025-01-02 12:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:28:04' and `end` < '2025-01-02 12:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:28:23] Production.INFO: count ==4554 [2025-01-02 12:28:25] Production.ERROR: pbx CDR StartTime 2025-01-02 09:28:04 - End Time 2025-01-02 12:28:04 [2025-01-02 12:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158220', 'tblTempUsageDetail_20' ) start [2025-01-02 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158220', 'tblTempUsageDetail_20' ) end [2025-01-02 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158220', 'tblTempVendorCDR_20' ) start [2025-01-02 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158220', 'tblTempVendorCDR_20' ) end [2025-01-02 12:28:25] Production.INFO: ProcessCDR(1,14158220,1,1,2) [2025-01-02 12:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158220', 'tblTempUsageDetail_20' ) start [2025-01-02 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158220', 'tblTempUsageDetail_20' ) end [2025-01-02 12:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:28:30] Production.INFO: ==4462== Releasing lock... [2025-01-02 12:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:28:30] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:29:05 [end_date_ymd] => 2025-01-02 12:29:05 [RateCDR] => 1 ) [2025-01-02 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:29:05' and `end` < '2025-01-02 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:29:20] Production.INFO: count ==4528 [2025-01-02 12:29:22] Production.ERROR: pbx CDR StartTime 2025-01-02 09:29:05 - End Time 2025-01-02 12:29:05 [2025-01-02 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158225', 'tblTempUsageDetail_20' ) start [2025-01-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158225', 'tblTempUsageDetail_20' ) end [2025-01-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158225', 'tblTempVendorCDR_20' ) start [2025-01-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158225', 'tblTempVendorCDR_20' ) end [2025-01-02 12:29:22] Production.INFO: ProcessCDR(1,14158225,1,1,2) [2025-01-02 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158225', 'tblTempUsageDetail_20' ) start [2025-01-02 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158225', 'tblTempUsageDetail_20' ) end [2025-01-02 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:29:25] Production.INFO: ==4561== Releasing lock... [2025-01-02 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:29:25] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:30:05 [end_date_ymd] => 2025-01-02 12:30:05 [RateCDR] => 1 ) [2025-01-02 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:30:05' and `end` < '2025-01-02 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:30:28] Production.INFO: count ==4501 [2025-01-02 12:30:30] Production.ERROR: pbx CDR StartTime 2025-01-02 09:30:05 - End Time 2025-01-02 12:30:05 [2025-01-02 12:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158231', 'tblTempUsageDetail_20' ) start [2025-01-02 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158231', 'tblTempUsageDetail_20' ) end [2025-01-02 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158231', 'tblTempVendorCDR_20' ) start [2025-01-02 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158231', 'tblTempVendorCDR_20' ) end [2025-01-02 12:30:30] Production.INFO: ProcessCDR(1,14158231,1,1,2) [2025-01-02 12:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158231', 'tblTempUsageDetail_20' ) start [2025-01-02 12:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158231', 'tblTempUsageDetail_20' ) end [2025-01-02 12:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:30:35] Production.INFO: ==4679== Releasing lock... [2025-01-02 12:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:30:35] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:31:05 [end_date_ymd] => 2025-01-02 12:31:05 [RateCDR] => 1 ) [2025-01-02 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:31:05' and `end` < '2025-01-02 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:31:30] Production.INFO: count ==4495 [2025-01-02 12:31:32] Production.ERROR: pbx CDR StartTime 2025-01-02 09:31:05 - End Time 2025-01-02 12:31:05 [2025-01-02 12:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158236', 'tblTempUsageDetail_20' ) start [2025-01-02 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158236', 'tblTempUsageDetail_20' ) end [2025-01-02 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158236', 'tblTempVendorCDR_20' ) start [2025-01-02 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158236', 'tblTempVendorCDR_20' ) end [2025-01-02 12:31:32] Production.INFO: ProcessCDR(1,14158236,1,1,2) [2025-01-02 12:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158236', 'tblTempUsageDetail_20' ) start [2025-01-02 12:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158236', 'tblTempUsageDetail_20' ) end [2025-01-02 12:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:31:37] Production.INFO: ==4765== Releasing lock... [2025-01-02 12:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:31:37] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:32:05 [end_date_ymd] => 2025-01-02 12:32:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:32:05' and `end` < '2025-01-02 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-01-02 12:32:24] Production.INFO: count ==4495 [2025-01-02 12:32:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:32:05 - End Time 2025-01-02 12:32:05 [2025-01-02 12:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158241', 'tblTempUsageDetail_20' ) start [2025-01-02 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158241', 'tblTempUsageDetail_20' ) end [2025-01-02 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158241', 'tblTempVendorCDR_20' ) start [2025-01-02 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158241', 'tblTempVendorCDR_20' ) end [2025-01-02 12:32:26] Production.INFO: ProcessCDR(1,14158241,1,1,2) [2025-01-02 12:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158241', 'tblTempUsageDetail_20' ) start [2025-01-02 12:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158241', 'tblTempUsageDetail_20' ) end [2025-01-02 12:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:32:31] Production.INFO: ==4837== Releasing lock... [2025-01-02 12:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:32:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:33:05 [end_date_ymd] => 2025-01-02 12:33:05 [RateCDR] => 1 ) [2025-01-02 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:33:05' and `end` < '2025-01-02 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:33:28] Production.INFO: count ==4488 [2025-01-02 12:33:30] Production.ERROR: pbx CDR StartTime 2025-01-02 09:33:05 - End Time 2025-01-02 12:33:05 [2025-01-02 12:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158246', 'tblTempUsageDetail_20' ) start [2025-01-02 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158246', 'tblTempUsageDetail_20' ) end [2025-01-02 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158246', 'tblTempVendorCDR_20' ) start [2025-01-02 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158246', 'tblTempVendorCDR_20' ) end [2025-01-02 12:33:30] Production.INFO: ProcessCDR(1,14158246,1,1,2) [2025-01-02 12:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158246', 'tblTempUsageDetail_20' ) start [2025-01-02 12:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158246', 'tblTempUsageDetail_20' ) end [2025-01-02 12:33:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:33:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:33:35] Production.INFO: ==4912== Releasing lock... [2025-01-02 12:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:33:35] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:34:04 [end_date_ymd] => 2025-01-02 12:34:04 [RateCDR] => 1 ) [2025-01-02 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:34:04' and `end` < '2025-01-02 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:34:27] Production.INFO: count ==4474 [2025-01-02 12:34:29] Production.ERROR: pbx CDR StartTime 2025-01-02 09:34:04 - End Time 2025-01-02 12:34:04 [2025-01-02 12:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158251', 'tblTempUsageDetail_20' ) start [2025-01-02 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158251', 'tblTempUsageDetail_20' ) end [2025-01-02 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158251', 'tblTempVendorCDR_20' ) start [2025-01-02 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158251', 'tblTempVendorCDR_20' ) end [2025-01-02 12:34:29] Production.INFO: ProcessCDR(1,14158251,1,1,2) [2025-01-02 12:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158251', 'tblTempUsageDetail_20' ) start [2025-01-02 12:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158251', 'tblTempUsageDetail_20' ) end [2025-01-02 12:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:34:34] Production.INFO: ==4986== Releasing lock... [2025-01-02 12:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:34:34] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:35:05 [end_date_ymd] => 2025-01-02 12:35:05 [RateCDR] => 1 ) [2025-01-02 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:35:05' and `end` < '2025-01-02 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:35:28] Production.INFO: count ==4471 [2025-01-02 12:35:30] Production.ERROR: pbx CDR StartTime 2025-01-02 09:35:05 - End Time 2025-01-02 12:35:05 [2025-01-02 12:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158256', 'tblTempUsageDetail_20' ) start [2025-01-02 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158256', 'tblTempUsageDetail_20' ) end [2025-01-02 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158256', 'tblTempVendorCDR_20' ) start [2025-01-02 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158256', 'tblTempVendorCDR_20' ) end [2025-01-02 12:35:30] Production.INFO: ProcessCDR(1,14158256,1,1,2) [2025-01-02 12:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158256', 'tblTempUsageDetail_20' ) start [2025-01-02 12:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158256', 'tblTempUsageDetail_20' ) end [2025-01-02 12:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:35:35] Production.INFO: ==5058== Releasing lock... [2025-01-02 12:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:35:35] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:36:05 [end_date_ymd] => 2025-01-02 12:36:05 [RateCDR] => 1 ) [2025-01-02 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:36:05' and `end` < '2025-01-02 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:36:27] Production.INFO: count ==4485 [2025-01-02 12:36:29] Production.ERROR: pbx CDR StartTime 2025-01-02 09:36:05 - End Time 2025-01-02 12:36:05 [2025-01-02 12:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158261', 'tblTempUsageDetail_20' ) start [2025-01-02 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158261', 'tblTempUsageDetail_20' ) end [2025-01-02 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158261', 'tblTempVendorCDR_20' ) start [2025-01-02 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158261', 'tblTempVendorCDR_20' ) end [2025-01-02 12:36:29] Production.INFO: ProcessCDR(1,14158261,1,1,2) [2025-01-02 12:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158261', 'tblTempUsageDetail_20' ) start [2025-01-02 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158261', 'tblTempUsageDetail_20' ) end [2025-01-02 12:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:36:34] Production.INFO: ==5137== Releasing lock... [2025-01-02 12:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:36:34] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:37:05 [end_date_ymd] => 2025-01-02 12:37:05 [RateCDR] => 1 ) [2025-01-02 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:37:05' and `end` < '2025-01-02 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:37:24] Production.INFO: count ==4480 [2025-01-02 12:37:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:37:05 - End Time 2025-01-02 12:37:05 [2025-01-02 12:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158266', 'tblTempUsageDetail_20' ) start [2025-01-02 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158266', 'tblTempUsageDetail_20' ) end [2025-01-02 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158266', 'tblTempVendorCDR_20' ) start [2025-01-02 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158266', 'tblTempVendorCDR_20' ) end [2025-01-02 12:37:26] Production.INFO: ProcessCDR(1,14158266,1,1,2) [2025-01-02 12:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158266', 'tblTempUsageDetail_20' ) start [2025-01-02 12:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158266', 'tblTempUsageDetail_20' ) end [2025-01-02 12:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:37:31] Production.INFO: ==5210== Releasing lock... [2025-01-02 12:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:37:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:38:06 [end_date_ymd] => 2025-01-02 12:38:06 [RateCDR] => 1 ) [2025-01-02 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:38:06' and `end` < '2025-01-02 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:38:26] Production.INFO: count ==4478 [2025-01-02 12:38:27] Production.ERROR: pbx CDR StartTime 2025-01-02 09:38:06 - End Time 2025-01-02 12:38:06 [2025-01-02 12:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158271', 'tblTempUsageDetail_20' ) start [2025-01-02 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158271', 'tblTempUsageDetail_20' ) end [2025-01-02 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158271', 'tblTempVendorCDR_20' ) start [2025-01-02 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158271', 'tblTempVendorCDR_20' ) end [2025-01-02 12:38:28] Production.INFO: ProcessCDR(1,14158271,1,1,2) [2025-01-02 12:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158271', 'tblTempUsageDetail_20' ) start [2025-01-02 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158271', 'tblTempUsageDetail_20' ) end [2025-01-02 12:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:38:32] Production.INFO: ==5286== Releasing lock... [2025-01-02 12:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:38:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:39:05 [end_date_ymd] => 2025-01-02 12:39:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:39:05' and `end` < '2025-01-02 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-01-02 12:39:36] Production.INFO: count ==4477 [2025-01-02 12:39:38] Production.ERROR: pbx CDR StartTime 2025-01-02 09:39:05 - End Time 2025-01-02 12:39:05 [2025-01-02 12:39:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158276', 'tblTempUsageDetail_20' ) start [2025-01-02 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158276', 'tblTempUsageDetail_20' ) end [2025-01-02 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158276', 'tblTempVendorCDR_20' ) start [2025-01-02 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158276', 'tblTempVendorCDR_20' ) end [2025-01-02 12:39:38] Production.INFO: ProcessCDR(1,14158276,1,1,2) [2025-01-02 12:39:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:39:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:39:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:39:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:39:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158276', 'tblTempUsageDetail_20' ) start [2025-01-02 12:39:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158276', 'tblTempUsageDetail_20' ) end [2025-01-02 12:39:42] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:39:42] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:39:42] Production.INFO: ==5356== Releasing lock... [2025-01-02 12:39:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:39:42] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:40:06 [end_date_ymd] => 2025-01-02 12:40:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:40:06' and `end` < '2025-01-02 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-01-02 12:40:34] Production.INFO: count ==4474 [2025-01-02 12:40:36] Production.ERROR: pbx CDR StartTime 2025-01-02 09:40:06 - End Time 2025-01-02 12:40:06 [2025-01-02 12:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158282', 'tblTempUsageDetail_20' ) start [2025-01-02 12:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158282', 'tblTempUsageDetail_20' ) end [2025-01-02 12:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158282', 'tblTempVendorCDR_20' ) start [2025-01-02 12:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158282', 'tblTempVendorCDR_20' ) end [2025-01-02 12:40:36] Production.INFO: ProcessCDR(1,14158282,1,1,2) [2025-01-02 12:40:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158282', 'tblTempUsageDetail_20' ) start [2025-01-02 12:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158282', 'tblTempUsageDetail_20' ) end [2025-01-02 12:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:40:41] Production.INFO: ==5431== Releasing lock... [2025-01-02 12:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:40:41] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:41:04 [end_date_ymd] => 2025-01-02 12:41:04 [RateCDR] => 1 ) [2025-01-02 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:41:04' and `end` < '2025-01-02 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:41:26] Production.INFO: count ==4497 [2025-01-02 12:41:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:41:04 - End Time 2025-01-02 12:41:04 [2025-01-02 12:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158287', 'tblTempUsageDetail_20' ) start [2025-01-02 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158287', 'tblTempUsageDetail_20' ) end [2025-01-02 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158287', 'tblTempVendorCDR_20' ) start [2025-01-02 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158287', 'tblTempVendorCDR_20' ) end [2025-01-02 12:41:29] Production.INFO: ProcessCDR(1,14158287,1,1,2) [2025-01-02 12:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158287', 'tblTempUsageDetail_20' ) start [2025-01-02 12:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158287', 'tblTempUsageDetail_20' ) end [2025-01-02 12:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:41:33] Production.INFO: ==5505== Releasing lock... [2025-01-02 12:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:41:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:42:05 [end_date_ymd] => 2025-01-02 12:42:05 [RateCDR] => 1 ) [2025-01-02 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:42:05' and `end` < '2025-01-02 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:42:26] Production.INFO: count ==4498 [2025-01-02 12:42:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:42:05 - End Time 2025-01-02 12:42:05 [2025-01-02 12:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158292', 'tblTempUsageDetail_20' ) start [2025-01-02 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158292', 'tblTempUsageDetail_20' ) end [2025-01-02 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158292', 'tblTempVendorCDR_20' ) start [2025-01-02 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158292', 'tblTempVendorCDR_20' ) end [2025-01-02 12:42:28] Production.INFO: ProcessCDR(1,14158292,1,1,2) [2025-01-02 12:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158292', 'tblTempUsageDetail_20' ) start [2025-01-02 12:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158292', 'tblTempUsageDetail_20' ) end [2025-01-02 12:42:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:42:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:42:33] Production.INFO: ==5576== Releasing lock... [2025-01-02 12:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:42:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:43:05 [end_date_ymd] => 2025-01-02 12:43:05 [RateCDR] => 1 ) [2025-01-02 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:43:05' and `end` < '2025-01-02 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:43:22] Production.INFO: count ==4500 [2025-01-02 12:43:24] Production.ERROR: pbx CDR StartTime 2025-01-02 09:43:05 - End Time 2025-01-02 12:43:05 [2025-01-02 12:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158297', 'tblTempUsageDetail_20' ) start [2025-01-02 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158297', 'tblTempUsageDetail_20' ) end [2025-01-02 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158297', 'tblTempVendorCDR_20' ) start [2025-01-02 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158297', 'tblTempVendorCDR_20' ) end [2025-01-02 12:43:24] Production.INFO: ProcessCDR(1,14158297,1,1,2) [2025-01-02 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158297', 'tblTempUsageDetail_20' ) start [2025-01-02 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158297', 'tblTempUsageDetail_20' ) end [2025-01-02 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:43:29] Production.INFO: ==5658== Releasing lock... [2025-01-02 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:43:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:44:05 [end_date_ymd] => 2025-01-02 12:44:05 [RateCDR] => 1 ) [2025-01-02 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:44:05' and `end` < '2025-01-02 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:44:22] Production.INFO: count ==4500 [2025-01-02 12:44:24] Production.ERROR: pbx CDR StartTime 2025-01-02 09:44:05 - End Time 2025-01-02 12:44:05 [2025-01-02 12:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158302', 'tblTempUsageDetail_20' ) start [2025-01-02 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158302', 'tblTempUsageDetail_20' ) end [2025-01-02 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158302', 'tblTempVendorCDR_20' ) start [2025-01-02 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158302', 'tblTempVendorCDR_20' ) end [2025-01-02 12:44:24] Production.INFO: ProcessCDR(1,14158302,1,1,2) [2025-01-02 12:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158302', 'tblTempUsageDetail_20' ) start [2025-01-02 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158302', 'tblTempUsageDetail_20' ) end [2025-01-02 12:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:44:29] Production.INFO: ==5773== Releasing lock... [2025-01-02 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:44:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:45:05 [end_date_ymd] => 2025-01-02 12:45:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:45:05' and `end` < '2025-01-02 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-01-02 12:45:18] Production.INFO: count ==4488 [2025-01-02 12:45:20] Production.ERROR: pbx CDR StartTime 2025-01-02 09:45:05 - End Time 2025-01-02 12:45:05 [2025-01-02 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158307', 'tblTempUsageDetail_20' ) start [2025-01-02 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158307', 'tblTempUsageDetail_20' ) end [2025-01-02 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158307', 'tblTempVendorCDR_20' ) start [2025-01-02 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158307', 'tblTempVendorCDR_20' ) end [2025-01-02 12:45:20] Production.INFO: ProcessCDR(1,14158307,1,1,2) [2025-01-02 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158307', 'tblTempUsageDetail_20' ) start [2025-01-02 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158307', 'tblTempUsageDetail_20' ) end [2025-01-02 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:45:25] Production.INFO: ==5846== Releasing lock... [2025-01-02 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:45:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:46:05 [end_date_ymd] => 2025-01-02 12:46:05 [RateCDR] => 1 ) [2025-01-02 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:46:05' and `end` < '2025-01-02 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:46:18] Production.INFO: count ==4483 [2025-01-02 12:46:20] Production.ERROR: pbx CDR StartTime 2025-01-02 09:46:05 - End Time 2025-01-02 12:46:05 [2025-01-02 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158312', 'tblTempUsageDetail_20' ) start [2025-01-02 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158312', 'tblTempUsageDetail_20' ) end [2025-01-02 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158312', 'tblTempVendorCDR_20' ) start [2025-01-02 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158312', 'tblTempVendorCDR_20' ) end [2025-01-02 12:46:20] Production.INFO: ProcessCDR(1,14158312,1,1,2) [2025-01-02 12:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158312', 'tblTempUsageDetail_20' ) start [2025-01-02 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158312', 'tblTempUsageDetail_20' ) end [2025-01-02 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:46:25] Production.INFO: ==5926== Releasing lock... [2025-01-02 12:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:46:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:47:05 [end_date_ymd] => 2025-01-02 12:47:05 [RateCDR] => 1 ) [2025-01-02 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:47:05' and `end` < '2025-01-02 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:47:18] Production.INFO: count ==4488 [2025-01-02 12:47:20] Production.ERROR: pbx CDR StartTime 2025-01-02 09:47:05 - End Time 2025-01-02 12:47:05 [2025-01-02 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158317', 'tblTempUsageDetail_20' ) start [2025-01-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158317', 'tblTempUsageDetail_20' ) end [2025-01-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158317', 'tblTempVendorCDR_20' ) start [2025-01-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158317', 'tblTempVendorCDR_20' ) end [2025-01-02 12:47:20] Production.INFO: ProcessCDR(1,14158317,1,1,2) [2025-01-02 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158317', 'tblTempUsageDetail_20' ) start [2025-01-02 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158317', 'tblTempUsageDetail_20' ) end [2025-01-02 12:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:47:25] Production.INFO: ==6007== Releasing lock... [2025-01-02 12:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:47:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:48:05 [end_date_ymd] => 2025-01-02 12:48:05 [RateCDR] => 1 ) [2025-01-02 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:48:05' and `end` < '2025-01-02 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:48:20] Production.INFO: count ==4494 [2025-01-02 12:48:22] Production.ERROR: pbx CDR StartTime 2025-01-02 09:48:05 - End Time 2025-01-02 12:48:05 [2025-01-02 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158322', 'tblTempUsageDetail_20' ) start [2025-01-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158322', 'tblTempUsageDetail_20' ) end [2025-01-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158322', 'tblTempVendorCDR_20' ) start [2025-01-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158322', 'tblTempVendorCDR_20' ) end [2025-01-02 12:48:22] Production.INFO: ProcessCDR(1,14158322,1,1,2) [2025-01-02 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158322', 'tblTempUsageDetail_20' ) start [2025-01-02 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158322', 'tblTempUsageDetail_20' ) end [2025-01-02 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:48:27] Production.INFO: ==6087== Releasing lock... [2025-01-02 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:48:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:49:05 [end_date_ymd] => 2025-01-02 12:49:05 [RateCDR] => 1 ) [2025-01-02 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:49:05' and `end` < '2025-01-02 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:49:20] Production.INFO: count ==4471 [2025-01-02 12:49:22] Production.ERROR: pbx CDR StartTime 2025-01-02 09:49:05 - End Time 2025-01-02 12:49:05 [2025-01-02 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158327', 'tblTempUsageDetail_20' ) start [2025-01-02 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158327', 'tblTempUsageDetail_20' ) end [2025-01-02 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158327', 'tblTempVendorCDR_20' ) start [2025-01-02 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158327', 'tblTempVendorCDR_20' ) end [2025-01-02 12:49:22] Production.INFO: ProcessCDR(1,14158327,1,1,2) [2025-01-02 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158327', 'tblTempUsageDetail_20' ) start [2025-01-02 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158327', 'tblTempUsageDetail_20' ) end [2025-01-02 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:49:27] Production.INFO: ==6168== Releasing lock... [2025-01-02 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:49:27] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:50:06 [end_date_ymd] => 2025-01-02 12:50:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:50:06' and `end` < '2025-01-02 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-01-02 12:50:20] Production.INFO: count ==4462 [2025-01-02 12:50:21] Production.ERROR: pbx CDR StartTime 2025-01-02 09:50:06 - End Time 2025-01-02 12:50:06 [2025-01-02 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158333', 'tblTempUsageDetail_20' ) start [2025-01-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158333', 'tblTempUsageDetail_20' ) end [2025-01-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158333', 'tblTempVendorCDR_20' ) start [2025-01-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158333', 'tblTempVendorCDR_20' ) end [2025-01-02 12:50:22] Production.INFO: ProcessCDR(1,14158333,1,1,2) [2025-01-02 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158333', 'tblTempUsageDetail_20' ) start [2025-01-02 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158333', 'tblTempUsageDetail_20' ) end [2025-01-02 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:50:26] Production.INFO: ==6249== Releasing lock... [2025-01-02 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:50:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:51:05 [end_date_ymd] => 2025-01-02 12:51:05 [RateCDR] => 1 ) [2025-01-02 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:51:05' and `end` < '2025-01-02 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:51:19] Production.INFO: count ==4490 [2025-01-02 12:51:20] Production.ERROR: pbx CDR StartTime 2025-01-02 09:51:05 - End Time 2025-01-02 12:51:05 [2025-01-02 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158338', 'tblTempUsageDetail_20' ) start [2025-01-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158338', 'tblTempUsageDetail_20' ) end [2025-01-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158338', 'tblTempVendorCDR_20' ) start [2025-01-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158338', 'tblTempVendorCDR_20' ) end [2025-01-02 12:51:21] Production.INFO: ProcessCDR(1,14158338,1,1,2) [2025-01-02 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158338', 'tblTempUsageDetail_20' ) start [2025-01-02 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158338', 'tblTempUsageDetail_20' ) end [2025-01-02 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:51:25] Production.INFO: ==6337== Releasing lock... [2025-01-02 12:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:51:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:52:05 [end_date_ymd] => 2025-01-02 12:52:05 [RateCDR] => 1 ) [2025-01-02 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:52:05' and `end` < '2025-01-02 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:52:21] Production.INFO: count ==4515 [2025-01-02 12:52:23] Production.ERROR: pbx CDR StartTime 2025-01-02 09:52:05 - End Time 2025-01-02 12:52:05 [2025-01-02 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158343', 'tblTempUsageDetail_20' ) start [2025-01-02 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158343', 'tblTempUsageDetail_20' ) end [2025-01-02 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158343', 'tblTempVendorCDR_20' ) start [2025-01-02 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158343', 'tblTempVendorCDR_20' ) end [2025-01-02 12:52:23] Production.INFO: ProcessCDR(1,14158343,1,1,2) [2025-01-02 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158343', 'tblTempUsageDetail_20' ) start [2025-01-02 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158343', 'tblTempUsageDetail_20' ) end [2025-01-02 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:52:28] Production.INFO: ==6419== Releasing lock... [2025-01-02 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:52:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:53:05 [end_date_ymd] => 2025-01-02 12:53:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 09:53:05' and `end` < '2025-01-02 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-01-02 12:53:21] Production.INFO: count ==4518 [2025-01-02 12:53:23] Production.ERROR: pbx CDR StartTime 2025-01-02 09:53:05 - End Time 2025-01-02 12:53:05 [2025-01-02 12:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158348', 'tblTempUsageDetail_20' ) start [2025-01-02 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158348', 'tblTempUsageDetail_20' ) end [2025-01-02 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158348', 'tblTempVendorCDR_20' ) start [2025-01-02 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158348', 'tblTempVendorCDR_20' ) end [2025-01-02 12:53:23] Production.INFO: ProcessCDR(1,14158348,1,1,2) [2025-01-02 12:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158348', 'tblTempUsageDetail_20' ) start [2025-01-02 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158348', 'tblTempUsageDetail_20' ) end [2025-01-02 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:53:27] Production.INFO: ==6501== Releasing lock... [2025-01-02 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:53:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:54:05 [end_date_ymd] => 2025-01-02 12:54:05 [RateCDR] => 1 ) [2025-01-02 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:54:05' and `end` < '2025-01-02 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:54:24] Production.INFO: count ==4531 [2025-01-02 12:54:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:54:05 - End Time 2025-01-02 12:54:05 [2025-01-02 12:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158353', 'tblTempUsageDetail_20' ) start [2025-01-02 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158353', 'tblTempUsageDetail_20' ) end [2025-01-02 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158353', 'tblTempVendorCDR_20' ) start [2025-01-02 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158353', 'tblTempVendorCDR_20' ) end [2025-01-02 12:54:26] Production.INFO: ProcessCDR(1,14158353,1,1,2) [2025-01-02 12:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158353', 'tblTempUsageDetail_20' ) start [2025-01-02 12:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158353', 'tblTempUsageDetail_20' ) end [2025-01-02 12:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:54:30] Production.INFO: ==6581== Releasing lock... [2025-01-02 12:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:54:30] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:55:05 [end_date_ymd] => 2025-01-02 12:55:05 [RateCDR] => 1 ) [2025-01-02 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:55:05' and `end` < '2025-01-02 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:55:24] Production.INFO: count ==4541 [2025-01-02 12:55:26] Production.ERROR: pbx CDR StartTime 2025-01-02 09:55:05 - End Time 2025-01-02 12:55:05 [2025-01-02 12:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158358', 'tblTempUsageDetail_20' ) start [2025-01-02 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158358', 'tblTempUsageDetail_20' ) end [2025-01-02 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158358', 'tblTempVendorCDR_20' ) start [2025-01-02 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158358', 'tblTempVendorCDR_20' ) end [2025-01-02 12:55:26] Production.INFO: ProcessCDR(1,14158358,1,1,2) [2025-01-02 12:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158358', 'tblTempUsageDetail_20' ) start [2025-01-02 12:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158358', 'tblTempUsageDetail_20' ) end [2025-01-02 12:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:55:30] Production.INFO: ==6664== Releasing lock... [2025-01-02 12:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:55:30] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:56:05 [end_date_ymd] => 2025-01-02 12:56:05 [RateCDR] => 1 ) [2025-01-02 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:56:05' and `end` < '2025-01-02 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:56:26] Production.INFO: count ==4551 [2025-01-02 12:56:28] Production.ERROR: pbx CDR StartTime 2025-01-02 09:56:05 - End Time 2025-01-02 12:56:05 [2025-01-02 12:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158363', 'tblTempUsageDetail_20' ) start [2025-01-02 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158363', 'tblTempUsageDetail_20' ) end [2025-01-02 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158363', 'tblTempVendorCDR_20' ) start [2025-01-02 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158363', 'tblTempVendorCDR_20' ) end [2025-01-02 12:56:28] Production.INFO: ProcessCDR(1,14158363,1,1,2) [2025-01-02 12:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158363', 'tblTempUsageDetail_20' ) start [2025-01-02 12:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158363', 'tblTempUsageDetail_20' ) end [2025-01-02 12:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:56:33] Production.INFO: ==6747== Releasing lock... [2025-01-02 12:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:56:33] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:57:05 [end_date_ymd] => 2025-01-02 12:57:05 [RateCDR] => 1 ) [2025-01-02 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:57:05' and `end` < '2025-01-02 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:57:25] Production.INFO: count ==4536 [2025-01-02 12:57:27] Production.ERROR: pbx CDR StartTime 2025-01-02 09:57:05 - End Time 2025-01-02 12:57:05 [2025-01-02 12:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158368', 'tblTempUsageDetail_20' ) start [2025-01-02 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158368', 'tblTempUsageDetail_20' ) end [2025-01-02 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158368', 'tblTempVendorCDR_20' ) start [2025-01-02 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158368', 'tblTempVendorCDR_20' ) end [2025-01-02 12:57:27] Production.INFO: ProcessCDR(1,14158368,1,1,2) [2025-01-02 12:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158368', 'tblTempUsageDetail_20' ) start [2025-01-02 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158368', 'tblTempUsageDetail_20' ) end [2025-01-02 12:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:57:32] Production.INFO: ==6831== Releasing lock... [2025-01-02 12:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:57:32] Production.INFO: 62 MB #Memory Used# [2025-01-02 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:58:05 [end_date_ymd] => 2025-01-02 12:58:05 [RateCDR] => 1 ) [2025-01-02 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:58:05' and `end` < '2025-01-02 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:58:23] Production.INFO: count ==4524 [2025-01-02 12:58:25] Production.ERROR: pbx CDR StartTime 2025-01-02 09:58:05 - End Time 2025-01-02 12:58:05 [2025-01-02 12:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158373', 'tblTempUsageDetail_20' ) start [2025-01-02 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158373', 'tblTempUsageDetail_20' ) end [2025-01-02 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158373', 'tblTempVendorCDR_20' ) start [2025-01-02 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158373', 'tblTempVendorCDR_20' ) end [2025-01-02 12:58:25] Production.INFO: ProcessCDR(1,14158373,1,1,2) [2025-01-02 12:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158373', 'tblTempUsageDetail_20' ) start [2025-01-02 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158373', 'tblTempUsageDetail_20' ) end [2025-01-02 12:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:58:30] Production.INFO: ==6910== Releasing lock... [2025-01-02 12:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:58:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 09:59:05 [end_date_ymd] => 2025-01-02 12:59:05 [RateCDR] => 1 ) [2025-01-02 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 09:59:05' and `end` < '2025-01-02 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 12:59:23] Production.INFO: count ==4517 [2025-01-02 12:59:25] Production.ERROR: pbx CDR StartTime 2025-01-02 09:59:05 - End Time 2025-01-02 12:59:05 [2025-01-02 12:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158378', 'tblTempUsageDetail_20' ) start [2025-01-02 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158378', 'tblTempUsageDetail_20' ) end [2025-01-02 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158378', 'tblTempVendorCDR_20' ) start [2025-01-02 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158378', 'tblTempVendorCDR_20' ) end [2025-01-02 12:59:25] Production.INFO: ProcessCDR(1,14158378,1,1,2) [2025-01-02 12:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 12:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 12:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158378', 'tblTempUsageDetail_20' ) start [2025-01-02 12:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158378', 'tblTempUsageDetail_20' ) end [2025-01-02 12:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 12:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 12:59:30] Production.INFO: ==7024== Releasing lock... [2025-01-02 12:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 12:59:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:00:06 [end_date_ymd] => 2025-01-02 13:00:06 [RateCDR] => 1 ) [2025-01-02 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:00:06' and `end` < '2025-01-02 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:00:20] Production.INFO: count ==4500 [2025-01-02 13:00:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:00:06 - End Time 2025-01-02 13:00:06 [2025-01-02 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158384', 'tblTempUsageDetail_20' ) start [2025-01-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158384', 'tblTempUsageDetail_20' ) end [2025-01-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158384', 'tblTempVendorCDR_20' ) start [2025-01-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158384', 'tblTempVendorCDR_20' ) end [2025-01-02 13:00:22] Production.INFO: ProcessCDR(1,14158384,1,1,2) [2025-01-02 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158384', 'tblTempUsageDetail_20' ) start [2025-01-02 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158384', 'tblTempUsageDetail_20' ) end [2025-01-02 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:00:27] Production.INFO: ==7103== Releasing lock... [2025-01-02 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:00:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-02 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:01:05 [end_date_ymd] => 2025-01-02 13:01:05 [RateCDR] => 1 ) [2025-01-02 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:01:05' and `end` < '2025-01-02 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:01:21] Production.INFO: count ==4534 [2025-01-02 13:01:23] Production.ERROR: pbx CDR StartTime 2025-01-02 10:01:05 - End Time 2025-01-02 13:01:05 [2025-01-02 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158389', 'tblTempUsageDetail_20' ) start [2025-01-02 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158389', 'tblTempUsageDetail_20' ) end [2025-01-02 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158389', 'tblTempVendorCDR_20' ) start [2025-01-02 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158389', 'tblTempVendorCDR_20' ) end [2025-01-02 13:01:23] Production.INFO: ProcessCDR(1,14158389,1,1,2) [2025-01-02 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158389', 'tblTempUsageDetail_20' ) start [2025-01-02 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158389', 'tblTempUsageDetail_20' ) end [2025-01-02 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:01:28] Production.INFO: ==7197== Releasing lock... [2025-01-02 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:01:28] Production.INFO: 62 MB #Memory Used# [2025-01-02 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:02:05 [end_date_ymd] => 2025-01-02 13:02:05 [RateCDR] => 1 ) [2025-01-02 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:02:05' and `end` < '2025-01-02 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:02:22] Production.INFO: count ==4541 [2025-01-02 13:02:24] Production.ERROR: pbx CDR StartTime 2025-01-02 10:02:05 - End Time 2025-01-02 13:02:05 [2025-01-02 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158394', 'tblTempUsageDetail_20' ) start [2025-01-02 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158394', 'tblTempUsageDetail_20' ) end [2025-01-02 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158394', 'tblTempVendorCDR_20' ) start [2025-01-02 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158394', 'tblTempVendorCDR_20' ) end [2025-01-02 13:02:24] Production.INFO: ProcessCDR(1,14158394,1,1,2) [2025-01-02 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158394', 'tblTempUsageDetail_20' ) start [2025-01-02 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158394', 'tblTempUsageDetail_20' ) end [2025-01-02 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:02:29] Production.INFO: ==7270== Releasing lock... [2025-01-02 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:02:29] Production.INFO: 62 MB #Memory Used# [2025-01-02 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:03:05 [end_date_ymd] => 2025-01-02 13:03:05 [RateCDR] => 1 ) [2025-01-02 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:03:05' and `end` < '2025-01-02 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:03:20] Production.INFO: count ==4552 [2025-01-02 13:03:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:03:05 - End Time 2025-01-02 13:03:05 [2025-01-02 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158399', 'tblTempUsageDetail_20' ) start [2025-01-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158399', 'tblTempUsageDetail_20' ) end [2025-01-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158399', 'tblTempVendorCDR_20' ) start [2025-01-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158399', 'tblTempVendorCDR_20' ) end [2025-01-02 13:03:22] Production.INFO: ProcessCDR(1,14158399,1,1,2) [2025-01-02 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158399', 'tblTempUsageDetail_20' ) start [2025-01-02 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158399', 'tblTempUsageDetail_20' ) end [2025-01-02 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:03:27] Production.INFO: ==7346== Releasing lock... [2025-01-02 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:03:27] Production.INFO: 62 MB #Memory Used# [2025-01-02 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:04:04 [end_date_ymd] => 2025-01-02 13:04:04 [RateCDR] => 1 ) [2025-01-02 13:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:04:04' and `end` < '2025-01-02 13:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:04:20] Production.INFO: count ==4575 [2025-01-02 13:04:21] Production.ERROR: pbx CDR StartTime 2025-01-02 10:04:04 - End Time 2025-01-02 13:04:04 [2025-01-02 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158404', 'tblTempUsageDetail_20' ) start [2025-01-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158404', 'tblTempUsageDetail_20' ) end [2025-01-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158404', 'tblTempVendorCDR_20' ) start [2025-01-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158404', 'tblTempVendorCDR_20' ) end [2025-01-02 13:04:22] Production.INFO: ProcessCDR(1,14158404,1,1,2) [2025-01-02 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158404', 'tblTempUsageDetail_20' ) start [2025-01-02 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158404', 'tblTempUsageDetail_20' ) end [2025-01-02 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:04:26] Production.INFO: ==7417== Releasing lock... [2025-01-02 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:04:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:05:04 [end_date_ymd] => 2025-01-02 13:05:04 [RateCDR] => 1 ) [2025-01-02 13:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:05:04' and `end` < '2025-01-02 13:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:05:18] Production.INFO: count ==4583 [2025-01-02 13:05:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:05:04 - End Time 2025-01-02 13:05:04 [2025-01-02 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158409', 'tblTempUsageDetail_20' ) start [2025-01-02 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158409', 'tblTempUsageDetail_20' ) end [2025-01-02 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158409', 'tblTempVendorCDR_20' ) start [2025-01-02 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158409', 'tblTempVendorCDR_20' ) end [2025-01-02 13:05:20] Production.INFO: ProcessCDR(1,14158409,1,1,2) [2025-01-02 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158409', 'tblTempUsageDetail_20' ) start [2025-01-02 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158409', 'tblTempUsageDetail_20' ) end [2025-01-02 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:05:24] Production.INFO: ==7486== Releasing lock... [2025-01-02 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:05:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:06:05 [end_date_ymd] => 2025-01-02 13:06:05 [RateCDR] => 1 ) [2025-01-02 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:06:05' and `end` < '2025-01-02 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:06:23] Production.INFO: count ==4611 [2025-01-02 13:06:25] Production.ERROR: pbx CDR StartTime 2025-01-02 10:06:05 - End Time 2025-01-02 13:06:05 [2025-01-02 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158414', 'tblTempUsageDetail_20' ) start [2025-01-02 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158414', 'tblTempUsageDetail_20' ) end [2025-01-02 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158414', 'tblTempVendorCDR_20' ) start [2025-01-02 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158414', 'tblTempVendorCDR_20' ) end [2025-01-02 13:06:25] Production.INFO: ProcessCDR(1,14158414,1,1,2) [2025-01-02 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158414', 'tblTempUsageDetail_20' ) start [2025-01-02 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158414', 'tblTempUsageDetail_20' ) end [2025-01-02 13:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:06:30] Production.INFO: ==7558== Releasing lock... [2025-01-02 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:06:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:07:04 [end_date_ymd] => 2025-01-02 13:07:04 [RateCDR] => 1 ) [2025-01-02 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:07:04' and `end` < '2025-01-02 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:07:20] Production.INFO: count ==4614 [2025-01-02 13:07:21] Production.ERROR: pbx CDR StartTime 2025-01-02 10:07:04 - End Time 2025-01-02 13:07:04 [2025-01-02 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158419', 'tblTempUsageDetail_20' ) start [2025-01-02 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158419', 'tblTempUsageDetail_20' ) end [2025-01-02 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158419', 'tblTempVendorCDR_20' ) start [2025-01-02 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158419', 'tblTempVendorCDR_20' ) end [2025-01-02 13:07:22] Production.INFO: ProcessCDR(1,14158419,1,1,2) [2025-01-02 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158419', 'tblTempUsageDetail_20' ) start [2025-01-02 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158419', 'tblTempUsageDetail_20' ) end [2025-01-02 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:07:26] Production.INFO: ==7627== Releasing lock... [2025-01-02 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:07:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:08:05 [end_date_ymd] => 2025-01-02 13:08:05 [RateCDR] => 1 ) [2025-01-02 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:08:05' and `end` < '2025-01-02 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:08:23] Production.INFO: count ==4616 [2025-01-02 13:08:25] Production.ERROR: pbx CDR StartTime 2025-01-02 10:08:05 - End Time 2025-01-02 13:08:05 [2025-01-02 13:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158424', 'tblTempUsageDetail_20' ) start [2025-01-02 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158424', 'tblTempUsageDetail_20' ) end [2025-01-02 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158424', 'tblTempVendorCDR_20' ) start [2025-01-02 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158424', 'tblTempVendorCDR_20' ) end [2025-01-02 13:08:25] Production.INFO: ProcessCDR(1,14158424,1,1,2) [2025-01-02 13:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158424', 'tblTempUsageDetail_20' ) start [2025-01-02 13:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158424', 'tblTempUsageDetail_20' ) end [2025-01-02 13:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:08:30] Production.INFO: ==7702== Releasing lock... [2025-01-02 13:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:08:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:09:05 [end_date_ymd] => 2025-01-02 13:09:05 [RateCDR] => 1 ) [2025-01-02 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:09:05' and `end` < '2025-01-02 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:09:27] Production.INFO: count ==4602 [2025-01-02 13:09:29] Production.ERROR: pbx CDR StartTime 2025-01-02 10:09:05 - End Time 2025-01-02 13:09:05 [2025-01-02 13:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158429', 'tblTempUsageDetail_20' ) start [2025-01-02 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158429', 'tblTempUsageDetail_20' ) end [2025-01-02 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158429', 'tblTempVendorCDR_20' ) start [2025-01-02 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158429', 'tblTempVendorCDR_20' ) end [2025-01-02 13:09:29] Production.INFO: ProcessCDR(1,14158429,1,1,2) [2025-01-02 13:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158429', 'tblTempUsageDetail_20' ) start [2025-01-02 13:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158429', 'tblTempUsageDetail_20' ) end [2025-01-02 13:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:09:34] Production.INFO: ==7775== Releasing lock... [2025-01-02 13:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:09:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:10:05 [end_date_ymd] => 2025-01-02 13:10:05 [RateCDR] => 1 ) [2025-01-02 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:10:05' and `end` < '2025-01-02 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:10:27] Production.INFO: count ==4598 [2025-01-02 13:10:28] Production.ERROR: pbx CDR StartTime 2025-01-02 10:10:05 - End Time 2025-01-02 13:10:05 [2025-01-02 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158435', 'tblTempUsageDetail_20' ) start [2025-01-02 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158435', 'tblTempUsageDetail_20' ) end [2025-01-02 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158435', 'tblTempVendorCDR_20' ) start [2025-01-02 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158435', 'tblTempVendorCDR_20' ) end [2025-01-02 13:10:29] Production.INFO: ProcessCDR(1,14158435,1,1,2) [2025-01-02 13:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158435', 'tblTempUsageDetail_20' ) start [2025-01-02 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158435', 'tblTempUsageDetail_20' ) end [2025-01-02 13:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:10:34] Production.INFO: ==7847== Releasing lock... [2025-01-02 13:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:10:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:11:06 [end_date_ymd] => 2025-01-02 13:11:06 [RateCDR] => 1 ) [2025-01-02 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:11:06' and `end` < '2025-01-02 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:11:21] Production.INFO: count ==4625 [2025-01-02 13:11:23] Production.ERROR: pbx CDR StartTime 2025-01-02 10:11:06 - End Time 2025-01-02 13:11:06 [2025-01-02 13:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158440', 'tblTempUsageDetail_20' ) start [2025-01-02 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158440', 'tblTempUsageDetail_20' ) end [2025-01-02 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158440', 'tblTempVendorCDR_20' ) start [2025-01-02 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158440', 'tblTempVendorCDR_20' ) end [2025-01-02 13:11:23] Production.INFO: ProcessCDR(1,14158440,1,1,2) [2025-01-02 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158440', 'tblTempUsageDetail_20' ) start [2025-01-02 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158440', 'tblTempUsageDetail_20' ) end [2025-01-02 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:11:28] Production.INFO: ==7920== Releasing lock... [2025-01-02 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:11:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:12:05 [end_date_ymd] => 2025-01-02 13:12:05 [RateCDR] => 1 ) [2025-01-02 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:12:05' and `end` < '2025-01-02 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:12:18] Production.INFO: count ==4618 [2025-01-02 13:12:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:12:05 - End Time 2025-01-02 13:12:05 [2025-01-02 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158445', 'tblTempUsageDetail_20' ) start [2025-01-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158445', 'tblTempUsageDetail_20' ) end [2025-01-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158445', 'tblTempVendorCDR_20' ) start [2025-01-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158445', 'tblTempVendorCDR_20' ) end [2025-01-02 13:12:20] Production.INFO: ProcessCDR(1,14158445,1,1,2) [2025-01-02 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158445', 'tblTempUsageDetail_20' ) start [2025-01-02 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158445', 'tblTempUsageDetail_20' ) end [2025-01-02 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:12:25] Production.INFO: ==7997== Releasing lock... [2025-01-02 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:12:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:13:04 [end_date_ymd] => 2025-01-02 13:13:04 [RateCDR] => 1 ) [2025-01-02 13:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:13:04' and `end` < '2025-01-02 13:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:13:18] Production.INFO: count ==4603 [2025-01-02 13:13:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:13:04 - End Time 2025-01-02 13:13:04 [2025-01-02 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158450', 'tblTempUsageDetail_20' ) start [2025-01-02 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158450', 'tblTempUsageDetail_20' ) end [2025-01-02 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158450', 'tblTempVendorCDR_20' ) start [2025-01-02 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158450', 'tblTempVendorCDR_20' ) end [2025-01-02 13:13:20] Production.INFO: ProcessCDR(1,14158450,1,1,2) [2025-01-02 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158450', 'tblTempUsageDetail_20' ) start [2025-01-02 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158450', 'tblTempUsageDetail_20' ) end [2025-01-02 13:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:13:24] Production.INFO: ==8068== Releasing lock... [2025-01-02 13:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:13:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:14:04 [end_date_ymd] => 2025-01-02 13:14:04 [RateCDR] => 1 ) [2025-01-02 13:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:14:04' and `end` < '2025-01-02 13:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:14:18] Production.INFO: count ==4596 [2025-01-02 13:14:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:14:04 - End Time 2025-01-02 13:14:04 [2025-01-02 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158455', 'tblTempUsageDetail_20' ) start [2025-01-02 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158455', 'tblTempUsageDetail_20' ) end [2025-01-02 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158455', 'tblTempVendorCDR_20' ) start [2025-01-02 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158455', 'tblTempVendorCDR_20' ) end [2025-01-02 13:14:20] Production.INFO: ProcessCDR(1,14158455,1,1,2) [2025-01-02 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158455', 'tblTempUsageDetail_20' ) start [2025-01-02 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158455', 'tblTempUsageDetail_20' ) end [2025-01-02 13:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:14:24] Production.INFO: ==8141== Releasing lock... [2025-01-02 13:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:14:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:15:05 [end_date_ymd] => 2025-01-02 13:15:05 [RateCDR] => 1 ) [2025-01-02 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:15:05' and `end` < '2025-01-02 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:15:19] Production.INFO: count ==4593 [2025-01-02 13:15:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:15:05 - End Time 2025-01-02 13:15:05 [2025-01-02 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158460', 'tblTempUsageDetail_20' ) start [2025-01-02 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158460', 'tblTempUsageDetail_20' ) end [2025-01-02 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158460', 'tblTempVendorCDR_20' ) start [2025-01-02 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158460', 'tblTempVendorCDR_20' ) end [2025-01-02 13:15:21] Production.INFO: ProcessCDR(1,14158460,1,1,2) [2025-01-02 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158460', 'tblTempUsageDetail_20' ) start [2025-01-02 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158460', 'tblTempUsageDetail_20' ) end [2025-01-02 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:15:25] Production.INFO: ==8251== Releasing lock... [2025-01-02 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:15:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:16:05 [end_date_ymd] => 2025-01-02 13:16:05 [RateCDR] => 1 ) [2025-01-02 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:16:05' and `end` < '2025-01-02 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:16:20] Production.INFO: count ==4602 [2025-01-02 13:16:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:16:05 - End Time 2025-01-02 13:16:05 [2025-01-02 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158465', 'tblTempUsageDetail_20' ) start [2025-01-02 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158465', 'tblTempUsageDetail_20' ) end [2025-01-02 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158465', 'tblTempVendorCDR_20' ) start [2025-01-02 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158465', 'tblTempVendorCDR_20' ) end [2025-01-02 13:16:22] Production.INFO: ProcessCDR(1,14158465,1,1,2) [2025-01-02 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158465', 'tblTempUsageDetail_20' ) start [2025-01-02 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158465', 'tblTempUsageDetail_20' ) end [2025-01-02 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:16:27] Production.INFO: ==8321== Releasing lock... [2025-01-02 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:16:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:17:05 [end_date_ymd] => 2025-01-02 13:17:05 [RateCDR] => 1 ) [2025-01-02 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:17:05' and `end` < '2025-01-02 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:17:20] Production.INFO: count ==4599 [2025-01-02 13:17:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:17:05 - End Time 2025-01-02 13:17:05 [2025-01-02 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158470', 'tblTempUsageDetail_20' ) start [2025-01-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158470', 'tblTempUsageDetail_20' ) end [2025-01-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158470', 'tblTempVendorCDR_20' ) start [2025-01-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158470', 'tblTempVendorCDR_20' ) end [2025-01-02 13:17:22] Production.INFO: ProcessCDR(1,14158470,1,1,2) [2025-01-02 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158470', 'tblTempUsageDetail_20' ) start [2025-01-02 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158470', 'tblTempUsageDetail_20' ) end [2025-01-02 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:17:27] Production.INFO: ==8393== Releasing lock... [2025-01-02 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:17:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:18:05 [end_date_ymd] => 2025-01-02 13:18:05 [RateCDR] => 1 ) [2025-01-02 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:18:05' and `end` < '2025-01-02 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:18:20] Production.INFO: count ==4594 [2025-01-02 13:18:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:18:05 - End Time 2025-01-02 13:18:05 [2025-01-02 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158475', 'tblTempUsageDetail_20' ) start [2025-01-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158475', 'tblTempUsageDetail_20' ) end [2025-01-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158475', 'tblTempVendorCDR_20' ) start [2025-01-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158475', 'tblTempVendorCDR_20' ) end [2025-01-02 13:18:22] Production.INFO: ProcessCDR(1,14158475,1,1,2) [2025-01-02 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158475', 'tblTempUsageDetail_20' ) start [2025-01-02 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158475', 'tblTempUsageDetail_20' ) end [2025-01-02 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:18:27] Production.INFO: ==8465== Releasing lock... [2025-01-02 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:18:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:19:05 [end_date_ymd] => 2025-01-02 13:19:05 [RateCDR] => 1 ) [2025-01-02 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:19:05' and `end` < '2025-01-02 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:19:19] Production.INFO: count ==4592 [2025-01-02 13:19:21] Production.ERROR: pbx CDR StartTime 2025-01-02 10:19:05 - End Time 2025-01-02 13:19:05 [2025-01-02 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158480', 'tblTempUsageDetail_20' ) start [2025-01-02 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158480', 'tblTempUsageDetail_20' ) end [2025-01-02 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158480', 'tblTempVendorCDR_20' ) start [2025-01-02 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158480', 'tblTempVendorCDR_20' ) end [2025-01-02 13:19:21] Production.INFO: ProcessCDR(1,14158480,1,1,2) [2025-01-02 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158480', 'tblTempUsageDetail_20' ) start [2025-01-02 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158480', 'tblTempUsageDetail_20' ) end [2025-01-02 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:19:26] Production.INFO: ==8535== Releasing lock... [2025-01-02 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:19:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:20:05 [end_date_ymd] => 2025-01-02 13:20:05 [RateCDR] => 1 ) [2025-01-02 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:20:05' and `end` < '2025-01-02 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:20:20] Production.INFO: count ==4592 [2025-01-02 13:20:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:20:05 - End Time 2025-01-02 13:20:05 [2025-01-02 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158486', 'tblTempUsageDetail_20' ) start [2025-01-02 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158486', 'tblTempUsageDetail_20' ) end [2025-01-02 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158486', 'tblTempVendorCDR_20' ) start [2025-01-02 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158486', 'tblTempVendorCDR_20' ) end [2025-01-02 13:20:22] Production.INFO: ProcessCDR(1,14158486,1,1,2) [2025-01-02 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158486', 'tblTempUsageDetail_20' ) start [2025-01-02 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158486', 'tblTempUsageDetail_20' ) end [2025-01-02 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:20:27] Production.INFO: ==8610== Releasing lock... [2025-01-02 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:20:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:21:05 [end_date_ymd] => 2025-01-02 13:21:05 [RateCDR] => 1 ) [2025-01-02 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:21:05' and `end` < '2025-01-02 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:21:20] Production.INFO: count ==4591 [2025-01-02 13:21:21] Production.ERROR: pbx CDR StartTime 2025-01-02 10:21:05 - End Time 2025-01-02 13:21:05 [2025-01-02 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158491', 'tblTempUsageDetail_20' ) start [2025-01-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158491', 'tblTempUsageDetail_20' ) end [2025-01-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158491', 'tblTempVendorCDR_20' ) start [2025-01-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158491', 'tblTempVendorCDR_20' ) end [2025-01-02 13:21:22] Production.INFO: ProcessCDR(1,14158491,1,1,2) [2025-01-02 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158491', 'tblTempUsageDetail_20' ) start [2025-01-02 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158491', 'tblTempUsageDetail_20' ) end [2025-01-02 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:21:26] Production.INFO: ==8683== Releasing lock... [2025-01-02 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:21:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:22:04 [end_date_ymd] => 2025-01-02 13:22:04 [RateCDR] => 1 ) [2025-01-02 13:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:22:04' and `end` < '2025-01-02 13:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:22:18] Production.INFO: count ==4589 [2025-01-02 13:22:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:22:04 - End Time 2025-01-02 13:22:04 [2025-01-02 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158496', 'tblTempUsageDetail_20' ) start [2025-01-02 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158496', 'tblTempUsageDetail_20' ) end [2025-01-02 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158496', 'tblTempVendorCDR_20' ) start [2025-01-02 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158496', 'tblTempVendorCDR_20' ) end [2025-01-02 13:22:20] Production.INFO: ProcessCDR(1,14158496,1,1,2) [2025-01-02 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158496', 'tblTempUsageDetail_20' ) start [2025-01-02 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158496', 'tblTempUsageDetail_20' ) end [2025-01-02 13:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:22:25] Production.INFO: ==8753== Releasing lock... [2025-01-02 13:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:22:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:23:05 [end_date_ymd] => 2025-01-02 13:23:05 [RateCDR] => 1 ) [2025-01-02 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:23:05' and `end` < '2025-01-02 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:23:19] Production.INFO: count ==4568 [2025-01-02 13:23:21] Production.ERROR: pbx CDR StartTime 2025-01-02 10:23:05 - End Time 2025-01-02 13:23:05 [2025-01-02 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158501', 'tblTempUsageDetail_20' ) start [2025-01-02 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158501', 'tblTempUsageDetail_20' ) end [2025-01-02 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158501', 'tblTempVendorCDR_20' ) start [2025-01-02 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158501', 'tblTempVendorCDR_20' ) end [2025-01-02 13:23:21] Production.INFO: ProcessCDR(1,14158501,1,1,2) [2025-01-02 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158501', 'tblTempUsageDetail_20' ) start [2025-01-02 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158501', 'tblTempUsageDetail_20' ) end [2025-01-02 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:23:25] Production.INFO: ==8824== Releasing lock... [2025-01-02 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:23:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:24:06 [end_date_ymd] => 2025-01-02 13:24:06 [RateCDR] => 1 ) [2025-01-02 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:24:06' and `end` < '2025-01-02 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:24:20] Production.INFO: count ==4562 [2025-01-02 13:24:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:24:06 - End Time 2025-01-02 13:24:06 [2025-01-02 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158506', 'tblTempUsageDetail_20' ) start [2025-01-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158506', 'tblTempUsageDetail_20' ) end [2025-01-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158506', 'tblTempVendorCDR_20' ) start [2025-01-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158506', 'tblTempVendorCDR_20' ) end [2025-01-02 13:24:22] Production.INFO: ProcessCDR(1,14158506,1,1,2) [2025-01-02 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158506', 'tblTempUsageDetail_20' ) start [2025-01-02 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158506', 'tblTempUsageDetail_20' ) end [2025-01-02 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:24:27] Production.INFO: ==8896== Releasing lock... [2025-01-02 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:24:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:25:05 [end_date_ymd] => 2025-01-02 13:25:05 [RateCDR] => 1 ) [2025-01-02 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:25:05' and `end` < '2025-01-02 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:25:18] Production.INFO: count ==4564 [2025-01-02 13:25:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:25:05 - End Time 2025-01-02 13:25:05 [2025-01-02 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158511', 'tblTempUsageDetail_20' ) start [2025-01-02 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158511', 'tblTempUsageDetail_20' ) end [2025-01-02 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158511', 'tblTempVendorCDR_20' ) start [2025-01-02 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158511', 'tblTempVendorCDR_20' ) end [2025-01-02 13:25:20] Production.INFO: ProcessCDR(1,14158511,1,1,2) [2025-01-02 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158511', 'tblTempUsageDetail_20' ) start [2025-01-02 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158511', 'tblTempUsageDetail_20' ) end [2025-01-02 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:25:25] Production.INFO: ==8967== Releasing lock... [2025-01-02 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:25:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:26:06 [end_date_ymd] => 2025-01-02 13:26:06 [RateCDR] => 1 ) [2025-01-02 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:26:06' and `end` < '2025-01-02 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:26:22] Production.INFO: count ==4599 [2025-01-02 13:26:24] Production.ERROR: pbx CDR StartTime 2025-01-02 10:26:06 - End Time 2025-01-02 13:26:06 [2025-01-02 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158516', 'tblTempUsageDetail_20' ) start [2025-01-02 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158516', 'tblTempUsageDetail_20' ) end [2025-01-02 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158516', 'tblTempVendorCDR_20' ) start [2025-01-02 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158516', 'tblTempVendorCDR_20' ) end [2025-01-02 13:26:24] Production.INFO: ProcessCDR(1,14158516,1,1,2) [2025-01-02 13:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158516', 'tblTempUsageDetail_20' ) start [2025-01-02 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158516', 'tblTempUsageDetail_20' ) end [2025-01-02 13:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:26:29] Production.INFO: ==9046== Releasing lock... [2025-01-02 13:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:26:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:27:05 [end_date_ymd] => 2025-01-02 13:27:05 [RateCDR] => 1 ) [2025-01-02 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:27:05' and `end` < '2025-01-02 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:27:24] Production.INFO: count ==4604 [2025-01-02 13:27:26] Production.ERROR: pbx CDR StartTime 2025-01-02 10:27:05 - End Time 2025-01-02 13:27:05 [2025-01-02 13:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158521', 'tblTempUsageDetail_20' ) start [2025-01-02 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158521', 'tblTempUsageDetail_20' ) end [2025-01-02 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158521', 'tblTempVendorCDR_20' ) start [2025-01-02 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158521', 'tblTempVendorCDR_20' ) end [2025-01-02 13:27:26] Production.INFO: ProcessCDR(1,14158521,1,1,2) [2025-01-02 13:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158521', 'tblTempUsageDetail_20' ) start [2025-01-02 13:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158521', 'tblTempUsageDetail_20' ) end [2025-01-02 13:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:27:31] Production.INFO: ==9118== Releasing lock... [2025-01-02 13:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:27:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:28:05 [end_date_ymd] => 2025-01-02 13:28:05 [RateCDR] => 1 ) [2025-01-02 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:28:05' and `end` < '2025-01-02 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:28:24] Production.INFO: count ==4597 [2025-01-02 13:28:26] Production.ERROR: pbx CDR StartTime 2025-01-02 10:28:05 - End Time 2025-01-02 13:28:05 [2025-01-02 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158526', 'tblTempUsageDetail_20' ) start [2025-01-02 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158526', 'tblTempUsageDetail_20' ) end [2025-01-02 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158526', 'tblTempVendorCDR_20' ) start [2025-01-02 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158526', 'tblTempVendorCDR_20' ) end [2025-01-02 13:28:26] Production.INFO: ProcessCDR(1,14158526,1,1,2) [2025-01-02 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158526', 'tblTempUsageDetail_20' ) start [2025-01-02 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158526', 'tblTempUsageDetail_20' ) end [2025-01-02 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:28:31] Production.INFO: ==9187== Releasing lock... [2025-01-02 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:28:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:29:05 [end_date_ymd] => 2025-01-02 13:29:05 [RateCDR] => 1 ) [2025-01-02 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:29:05' and `end` < '2025-01-02 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:29:22] Production.INFO: count ==4608 [2025-01-02 13:29:24] Production.ERROR: pbx CDR StartTime 2025-01-02 10:29:05 - End Time 2025-01-02 13:29:05 [2025-01-02 13:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158531', 'tblTempUsageDetail_20' ) start [2025-01-02 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158531', 'tblTempUsageDetail_20' ) end [2025-01-02 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158531', 'tblTempVendorCDR_20' ) start [2025-01-02 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158531', 'tblTempVendorCDR_20' ) end [2025-01-02 13:29:24] Production.INFO: ProcessCDR(1,14158531,1,1,2) [2025-01-02 13:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158531', 'tblTempUsageDetail_20' ) start [2025-01-02 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158531', 'tblTempUsageDetail_20' ) end [2025-01-02 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:29:28] Production.INFO: ==9258== Releasing lock... [2025-01-02 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:29:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:30:06 [end_date_ymd] => 2025-01-02 13:30:06 [RateCDR] => 1 ) [2025-01-02 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:30:06' and `end` < '2025-01-02 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:30:21] Production.INFO: count ==4622 [2025-01-02 13:30:23] Production.ERROR: pbx CDR StartTime 2025-01-02 10:30:06 - End Time 2025-01-02 13:30:06 [2025-01-02 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158537', 'tblTempUsageDetail_20' ) start [2025-01-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158537', 'tblTempUsageDetail_20' ) end [2025-01-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158537', 'tblTempVendorCDR_20' ) start [2025-01-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158537', 'tblTempVendorCDR_20' ) end [2025-01-02 13:30:23] Production.INFO: ProcessCDR(1,14158537,1,1,2) [2025-01-02 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158537', 'tblTempUsageDetail_20' ) start [2025-01-02 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158537', 'tblTempUsageDetail_20' ) end [2025-01-02 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:30:27] Production.INFO: ==9331== Releasing lock... [2025-01-02 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:30:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:31:05 [end_date_ymd] => 2025-01-02 13:31:05 [RateCDR] => 1 ) [2025-01-02 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:31:05' and `end` < '2025-01-02 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:31:22] Production.INFO: count ==4644 [2025-01-02 13:31:24] Production.ERROR: pbx CDR StartTime 2025-01-02 10:31:05 - End Time 2025-01-02 13:31:05 [2025-01-02 13:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158542', 'tblTempUsageDetail_20' ) start [2025-01-02 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158542', 'tblTempUsageDetail_20' ) end [2025-01-02 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158542', 'tblTempVendorCDR_20' ) start [2025-01-02 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158542', 'tblTempVendorCDR_20' ) end [2025-01-02 13:31:24] Production.INFO: ProcessCDR(1,14158542,1,1,2) [2025-01-02 13:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158542', 'tblTempUsageDetail_20' ) start [2025-01-02 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158542', 'tblTempUsageDetail_20' ) end [2025-01-02 13:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:31:29] Production.INFO: ==9443== Releasing lock... [2025-01-02 13:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:31:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:32:05 [end_date_ymd] => 2025-01-02 13:32:05 [RateCDR] => 1 ) [2025-01-02 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:32:05' and `end` < '2025-01-02 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:32:22] Production.INFO: count ==4669 [2025-01-02 13:32:24] Production.ERROR: pbx CDR StartTime 2025-01-02 10:32:05 - End Time 2025-01-02 13:32:05 [2025-01-02 13:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158547', 'tblTempUsageDetail_20' ) start [2025-01-02 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158547', 'tblTempUsageDetail_20' ) end [2025-01-02 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158547', 'tblTempVendorCDR_20' ) start [2025-01-02 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158547', 'tblTempVendorCDR_20' ) end [2025-01-02 13:32:24] Production.INFO: ProcessCDR(1,14158547,1,1,2) [2025-01-02 13:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158547', 'tblTempUsageDetail_20' ) start [2025-01-02 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158547', 'tblTempUsageDetail_20' ) end [2025-01-02 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:32:28] Production.INFO: ==9514== Releasing lock... [2025-01-02 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:32:28] Production.INFO: 63 MB #Memory Used# [2025-01-02 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:33:05 [end_date_ymd] => 2025-01-02 13:33:05 [RateCDR] => 1 ) [2025-01-02 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:33:05' and `end` < '2025-01-02 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:33:24] Production.INFO: count ==4692 [2025-01-02 13:33:26] Production.ERROR: pbx CDR StartTime 2025-01-02 10:33:05 - End Time 2025-01-02 13:33:05 [2025-01-02 13:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158552', 'tblTempUsageDetail_20' ) start [2025-01-02 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158552', 'tblTempUsageDetail_20' ) end [2025-01-02 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158552', 'tblTempVendorCDR_20' ) start [2025-01-02 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158552', 'tblTempVendorCDR_20' ) end [2025-01-02 13:33:26] Production.INFO: ProcessCDR(1,14158552,1,1,2) [2025-01-02 13:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158552', 'tblTempUsageDetail_20' ) start [2025-01-02 13:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158552', 'tblTempUsageDetail_20' ) end [2025-01-02 13:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:33:31] Production.INFO: ==9588== Releasing lock... [2025-01-02 13:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:33:31] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:34:05 [end_date_ymd] => 2025-01-02 13:34:05 [RateCDR] => 1 ) [2025-01-02 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:34:05' and `end` < '2025-01-02 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:34:28] Production.INFO: count ==4652 [2025-01-02 13:34:30] Production.ERROR: pbx CDR StartTime 2025-01-02 10:34:05 - End Time 2025-01-02 13:34:05 [2025-01-02 13:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158557', 'tblTempUsageDetail_20' ) start [2025-01-02 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158557', 'tblTempUsageDetail_20' ) end [2025-01-02 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158557', 'tblTempVendorCDR_20' ) start [2025-01-02 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158557', 'tblTempVendorCDR_20' ) end [2025-01-02 13:34:30] Production.INFO: ProcessCDR(1,14158557,1,1,2) [2025-01-02 13:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158557', 'tblTempUsageDetail_20' ) start [2025-01-02 13:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158557', 'tblTempUsageDetail_20' ) end [2025-01-02 13:34:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:34:35] Production.INFO: ==9659== Releasing lock... [2025-01-02 13:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:34:35] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:35:05 [end_date_ymd] => 2025-01-02 13:35:05 [RateCDR] => 1 ) [2025-01-02 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:35:05' and `end` < '2025-01-02 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:35:30] Production.INFO: count ==4639 [2025-01-02 13:35:32] Production.ERROR: pbx CDR StartTime 2025-01-02 10:35:05 - End Time 2025-01-02 13:35:05 [2025-01-02 13:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158562', 'tblTempUsageDetail_20' ) start [2025-01-02 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158562', 'tblTempUsageDetail_20' ) end [2025-01-02 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158562', 'tblTempVendorCDR_20' ) start [2025-01-02 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158562', 'tblTempVendorCDR_20' ) end [2025-01-02 13:35:32] Production.INFO: ProcessCDR(1,14158562,1,1,2) [2025-01-02 13:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158562', 'tblTempUsageDetail_20' ) start [2025-01-02 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158562', 'tblTempUsageDetail_20' ) end [2025-01-02 13:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:35:37] Production.INFO: ==9731== Releasing lock... [2025-01-02 13:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:35:37] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:36:06 [end_date_ymd] => 2025-01-02 13:36:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:36:06' and `end` < '2025-01-02 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-01-02 13:36:24] Production.INFO: count ==4647 [2025-01-02 13:36:26] Production.ERROR: pbx CDR StartTime 2025-01-02 10:36:06 - End Time 2025-01-02 13:36:06 [2025-01-02 13:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158567', 'tblTempUsageDetail_20' ) start [2025-01-02 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158567', 'tblTempUsageDetail_20' ) end [2025-01-02 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158567', 'tblTempVendorCDR_20' ) start [2025-01-02 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158567', 'tblTempVendorCDR_20' ) end [2025-01-02 13:36:26] Production.INFO: ProcessCDR(1,14158567,1,1,2) [2025-01-02 13:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158567', 'tblTempUsageDetail_20' ) start [2025-01-02 13:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158567', 'tblTempUsageDetail_20' ) end [2025-01-02 13:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:36:31] Production.INFO: ==9804== Releasing lock... [2025-01-02 13:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:36:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:37:04 [end_date_ymd] => 2025-01-02 13:37:04 [RateCDR] => 1 ) [2025-01-02 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:37:04' and `end` < '2025-01-02 13:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:37:25] Production.INFO: count ==4637 [2025-01-02 13:37:27] Production.ERROR: pbx CDR StartTime 2025-01-02 10:37:04 - End Time 2025-01-02 13:37:04 [2025-01-02 13:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158572', 'tblTempUsageDetail_20' ) start [2025-01-02 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158572', 'tblTempUsageDetail_20' ) end [2025-01-02 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158572', 'tblTempVendorCDR_20' ) start [2025-01-02 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158572', 'tblTempVendorCDR_20' ) end [2025-01-02 13:37:27] Production.INFO: ProcessCDR(1,14158572,1,1,2) [2025-01-02 13:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158572', 'tblTempUsageDetail_20' ) start [2025-01-02 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158572', 'tblTempUsageDetail_20' ) end [2025-01-02 13:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:37:32] Production.INFO: ==9873== Releasing lock... [2025-01-02 13:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:37:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:38:05 [end_date_ymd] => 2025-01-02 13:38:05 [RateCDR] => 1 ) [2025-01-02 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:38:05' and `end` < '2025-01-02 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:38:26] Production.INFO: count ==4645 [2025-01-02 13:38:28] Production.ERROR: pbx CDR StartTime 2025-01-02 10:38:05 - End Time 2025-01-02 13:38:05 [2025-01-02 13:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158577', 'tblTempUsageDetail_20' ) start [2025-01-02 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158577', 'tblTempUsageDetail_20' ) end [2025-01-02 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158577', 'tblTempVendorCDR_20' ) start [2025-01-02 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158577', 'tblTempVendorCDR_20' ) end [2025-01-02 13:38:28] Production.INFO: ProcessCDR(1,14158577,1,1,2) [2025-01-02 13:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158577', 'tblTempUsageDetail_20' ) start [2025-01-02 13:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158577', 'tblTempUsageDetail_20' ) end [2025-01-02 13:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:38:33] Production.INFO: ==9944== Releasing lock... [2025-01-02 13:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:38:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:39:05 [end_date_ymd] => 2025-01-02 13:39:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:39:05' and `end` < '2025-01-02 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-01-02 13:39:25] Production.INFO: count ==4650 [2025-01-02 13:39:27] Production.ERROR: pbx CDR StartTime 2025-01-02 10:39:05 - End Time 2025-01-02 13:39:05 [2025-01-02 13:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158582', 'tblTempUsageDetail_20' ) start [2025-01-02 13:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158582', 'tblTempUsageDetail_20' ) end [2025-01-02 13:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158582', 'tblTempVendorCDR_20' ) start [2025-01-02 13:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158582', 'tblTempVendorCDR_20' ) end [2025-01-02 13:39:27] Production.INFO: ProcessCDR(1,14158582,1,1,2) [2025-01-02 13:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158582', 'tblTempUsageDetail_20' ) start [2025-01-02 13:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158582', 'tblTempUsageDetail_20' ) end [2025-01-02 13:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:39:31] Production.INFO: ==10021== Releasing lock... [2025-01-02 13:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:39:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:40:06 [end_date_ymd] => 2025-01-02 13:40:06 [RateCDR] => 1 ) [2025-01-02 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:40:06' and `end` < '2025-01-02 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:40:27] Production.INFO: count ==4649 [2025-01-02 13:40:29] Production.ERROR: pbx CDR StartTime 2025-01-02 10:40:06 - End Time 2025-01-02 13:40:06 [2025-01-02 13:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158588', 'tblTempUsageDetail_20' ) start [2025-01-02 13:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158588', 'tblTempUsageDetail_20' ) end [2025-01-02 13:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158588', 'tblTempVendorCDR_20' ) start [2025-01-02 13:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158588', 'tblTempVendorCDR_20' ) end [2025-01-02 13:40:29] Production.INFO: ProcessCDR(1,14158588,1,1,2) [2025-01-02 13:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158588', 'tblTempUsageDetail_20' ) start [2025-01-02 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158588', 'tblTempUsageDetail_20' ) end [2025-01-02 13:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:40:32] Production.INFO: ==10095== Releasing lock... [2025-01-02 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:40:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:41:04 [end_date_ymd] => 2025-01-02 13:41:04 [RateCDR] => 1 ) [2025-01-02 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:41:04' and `end` < '2025-01-02 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:41:35] Production.INFO: count ==4676 [2025-01-02 13:41:36] Production.ERROR: pbx CDR StartTime 2025-01-02 10:41:04 - End Time 2025-01-02 13:41:04 [2025-01-02 13:41:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158593', 'tblTempUsageDetail_20' ) start [2025-01-02 13:41:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158593', 'tblTempUsageDetail_20' ) end [2025-01-02 13:41:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158593', 'tblTempVendorCDR_20' ) start [2025-01-02 13:41:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158593', 'tblTempVendorCDR_20' ) end [2025-01-02 13:41:37] Production.INFO: ProcessCDR(1,14158593,1,1,2) [2025-01-02 13:41:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:41:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:41:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:41:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158593', 'tblTempUsageDetail_20' ) start [2025-01-02 13:41:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158593', 'tblTempUsageDetail_20' ) end [2025-01-02 13:41:42] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:41:42] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:41:42] Production.INFO: ==10167== Releasing lock... [2025-01-02 13:41:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:41:42] Production.INFO: 63 MB #Memory Used# [2025-01-02 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:42:05 [end_date_ymd] => 2025-01-02 13:42:05 [RateCDR] => 1 ) [2025-01-02 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:42:05' and `end` < '2025-01-02 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:42:23] Production.INFO: count ==4680 [2025-01-02 13:42:24] Production.ERROR: pbx CDR StartTime 2025-01-02 10:42:05 - End Time 2025-01-02 13:42:05 [2025-01-02 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158598', 'tblTempUsageDetail_20' ) start [2025-01-02 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158598', 'tblTempUsageDetail_20' ) end [2025-01-02 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158598', 'tblTempVendorCDR_20' ) start [2025-01-02 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158598', 'tblTempVendorCDR_20' ) end [2025-01-02 13:42:25] Production.INFO: ProcessCDR(1,14158598,1,1,2) [2025-01-02 13:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158598', 'tblTempUsageDetail_20' ) start [2025-01-02 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158598', 'tblTempUsageDetail_20' ) end [2025-01-02 13:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:42:29] Production.INFO: ==10237== Releasing lock... [2025-01-02 13:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:42:29] Production.INFO: 63 MB #Memory Used# [2025-01-02 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:43:04 [end_date_ymd] => 2025-01-02 13:43:04 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:43:04' and `end` < '2025-01-02 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:43:25] Production.INFO: count ==4685 [2025-01-02 13:43:27] Production.ERROR: pbx CDR StartTime 2025-01-02 10:43:04 - End Time 2025-01-02 13:43:04 [2025-01-02 13:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158603', 'tblTempUsageDetail_20' ) start [2025-01-02 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158603', 'tblTempUsageDetail_20' ) end [2025-01-02 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158603', 'tblTempVendorCDR_20' ) start [2025-01-02 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158603', 'tblTempVendorCDR_20' ) end [2025-01-02 13:43:27] Production.INFO: ProcessCDR(1,14158603,1,1,2) [2025-01-02 13:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158603', 'tblTempUsageDetail_20' ) start [2025-01-02 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158603', 'tblTempUsageDetail_20' ) end [2025-01-02 13:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:43:32] Production.INFO: ==10307== Releasing lock... [2025-01-02 13:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:43:32] Production.INFO: 63 MB #Memory Used# [2025-01-02 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:44:04 [end_date_ymd] => 2025-01-02 13:44:04 [RateCDR] => 1 ) [2025-01-02 13:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:44:04' and `end` < '2025-01-02 13:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:44:23] Production.INFO: count ==4680 [2025-01-02 13:44:25] Production.ERROR: pbx CDR StartTime 2025-01-02 10:44:04 - End Time 2025-01-02 13:44:04 [2025-01-02 13:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158608', 'tblTempUsageDetail_20' ) start [2025-01-02 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158608', 'tblTempUsageDetail_20' ) end [2025-01-02 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158608', 'tblTempVendorCDR_20' ) start [2025-01-02 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158608', 'tblTempVendorCDR_20' ) end [2025-01-02 13:44:25] Production.INFO: ProcessCDR(1,14158608,1,1,2) [2025-01-02 13:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158608', 'tblTempUsageDetail_20' ) start [2025-01-02 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158608', 'tblTempUsageDetail_20' ) end [2025-01-02 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:44:30] Production.INFO: ==10377== Releasing lock... [2025-01-02 13:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:44:30] Production.INFO: 63 MB #Memory Used# [2025-01-02 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:45:05 [end_date_ymd] => 2025-01-02 13:45:05 [RateCDR] => 1 ) [2025-01-02 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:45:05' and `end` < '2025-01-02 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:45:18] Production.INFO: count ==4657 [2025-01-02 13:45:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:45:05 - End Time 2025-01-02 13:45:05 [2025-01-02 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158613', 'tblTempUsageDetail_20' ) start [2025-01-02 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158613', 'tblTempUsageDetail_20' ) end [2025-01-02 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158613', 'tblTempVendorCDR_20' ) start [2025-01-02 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158613', 'tblTempVendorCDR_20' ) end [2025-01-02 13:45:20] Production.INFO: ProcessCDR(1,14158613,1,1,2) [2025-01-02 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158613', 'tblTempUsageDetail_20' ) start [2025-01-02 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158613', 'tblTempUsageDetail_20' ) end [2025-01-02 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:45:25] Production.INFO: ==10449== Releasing lock... [2025-01-02 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:45:25] Production.INFO: 63 MB #Memory Used# [2025-01-02 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:46:06 [end_date_ymd] => 2025-01-02 13:46:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:46:06' and `end` < '2025-01-02 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-01-02 13:46:20] Production.INFO: count ==4641 [2025-01-02 13:46:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:46:06 - End Time 2025-01-02 13:46:06 [2025-01-02 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158618', 'tblTempUsageDetail_20' ) start [2025-01-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158618', 'tblTempUsageDetail_20' ) end [2025-01-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158618', 'tblTempVendorCDR_20' ) start [2025-01-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158618', 'tblTempVendorCDR_20' ) end [2025-01-02 13:46:22] Production.INFO: ProcessCDR(1,14158618,1,1,2) [2025-01-02 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158618', 'tblTempUsageDetail_20' ) start [2025-01-02 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158618', 'tblTempUsageDetail_20' ) end [2025-01-02 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:46:27] Production.INFO: ==10560== Releasing lock... [2025-01-02 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:46:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:47:05 [end_date_ymd] => 2025-01-02 13:47:05 [RateCDR] => 1 ) [2025-01-02 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:47:05' and `end` < '2025-01-02 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:47:25] Production.INFO: count ==4631 [2025-01-02 13:47:27] Production.ERROR: pbx CDR StartTime 2025-01-02 10:47:05 - End Time 2025-01-02 13:47:05 [2025-01-02 13:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158623', 'tblTempUsageDetail_20' ) start [2025-01-02 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158623', 'tblTempUsageDetail_20' ) end [2025-01-02 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158623', 'tblTempVendorCDR_20' ) start [2025-01-02 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158623', 'tblTempVendorCDR_20' ) end [2025-01-02 13:47:27] Production.INFO: ProcessCDR(1,14158623,1,1,2) [2025-01-02 13:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158623', 'tblTempUsageDetail_20' ) start [2025-01-02 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158623', 'tblTempUsageDetail_20' ) end [2025-01-02 13:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:47:32] Production.INFO: ==10630== Releasing lock... [2025-01-02 13:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:47:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:48:05 [end_date_ymd] => 2025-01-02 13:48:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:48:05' and `end` < '2025-01-02 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-01-02 13:48:20] Production.INFO: count ==4620 [2025-01-02 13:48:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:48:05 - End Time 2025-01-02 13:48:05 [2025-01-02 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158628', 'tblTempUsageDetail_20' ) start [2025-01-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158628', 'tblTempUsageDetail_20' ) end [2025-01-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158628', 'tblTempVendorCDR_20' ) start [2025-01-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158628', 'tblTempVendorCDR_20' ) end [2025-01-02 13:48:22] Production.INFO: ProcessCDR(1,14158628,1,1,2) [2025-01-02 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158628', 'tblTempUsageDetail_20' ) start [2025-01-02 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158628', 'tblTempUsageDetail_20' ) end [2025-01-02 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:48:27] Production.INFO: ==10701== Releasing lock... [2025-01-02 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:48:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:49:04 [end_date_ymd] => 2025-01-02 13:49:04 [RateCDR] => 1 ) [2025-01-02 13:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:49:04' and `end` < '2025-01-02 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:49:19] Production.INFO: count ==4627 [2025-01-02 13:49:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:49:04 - End Time 2025-01-02 13:49:04 [2025-01-02 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158633', 'tblTempUsageDetail_20' ) start [2025-01-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158633', 'tblTempUsageDetail_20' ) end [2025-01-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158633', 'tblTempVendorCDR_20' ) start [2025-01-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158633', 'tblTempVendorCDR_20' ) end [2025-01-02 13:49:21] Production.INFO: ProcessCDR(1,14158633,1,1,2) [2025-01-02 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158633', 'tblTempUsageDetail_20' ) start [2025-01-02 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158633', 'tblTempUsageDetail_20' ) end [2025-01-02 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:49:24] Production.INFO: ==10772== Releasing lock... [2025-01-02 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:49:24] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:50:06 [end_date_ymd] => 2025-01-02 13:50:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:50:06' and `end` < '2025-01-02 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-01-02 13:50:19] Production.INFO: count ==4593 [2025-01-02 13:50:21] Production.ERROR: pbx CDR StartTime 2025-01-02 10:50:06 - End Time 2025-01-02 13:50:06 [2025-01-02 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158639', 'tblTempUsageDetail_20' ) start [2025-01-02 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158639', 'tblTempUsageDetail_20' ) end [2025-01-02 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158639', 'tblTempVendorCDR_20' ) start [2025-01-02 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158639', 'tblTempVendorCDR_20' ) end [2025-01-02 13:50:21] Production.INFO: ProcessCDR(1,14158639,1,1,2) [2025-01-02 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158639', 'tblTempUsageDetail_20' ) start [2025-01-02 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158639', 'tblTempUsageDetail_20' ) end [2025-01-02 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:50:26] Production.INFO: ==10867== Releasing lock... [2025-01-02 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:50:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:51:04 [end_date_ymd] => 2025-01-02 13:51:04 [RateCDR] => 1 ) [2025-01-02 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:51:04' and `end` < '2025-01-02 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:51:26] Production.INFO: count ==4614 [2025-01-02 13:51:28] Production.ERROR: pbx CDR StartTime 2025-01-02 10:51:04 - End Time 2025-01-02 13:51:04 [2025-01-02 13:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158644', 'tblTempUsageDetail_20' ) start [2025-01-02 13:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158644', 'tblTempUsageDetail_20' ) end [2025-01-02 13:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158644', 'tblTempVendorCDR_20' ) start [2025-01-02 13:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158644', 'tblTempVendorCDR_20' ) end [2025-01-02 13:51:28] Production.INFO: ProcessCDR(1,14158644,1,1,2) [2025-01-02 13:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158644', 'tblTempUsageDetail_20' ) start [2025-01-02 13:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158644', 'tblTempUsageDetail_20' ) end [2025-01-02 13:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:51:33] Production.INFO: ==10975== Releasing lock... [2025-01-02 13:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:51:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:52:05 [end_date_ymd] => 2025-01-02 13:52:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 10:52:05' and `end` < '2025-01-02 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-01-02 13:52:23] Production.INFO: count ==4601 [2025-01-02 13:52:25] Production.ERROR: pbx CDR StartTime 2025-01-02 10:52:05 - End Time 2025-01-02 13:52:05 [2025-01-02 13:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158649', 'tblTempUsageDetail_20' ) start [2025-01-02 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158649', 'tblTempUsageDetail_20' ) end [2025-01-02 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158649', 'tblTempVendorCDR_20' ) start [2025-01-02 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158649', 'tblTempVendorCDR_20' ) end [2025-01-02 13:52:25] Production.INFO: ProcessCDR(1,14158649,1,1,2) [2025-01-02 13:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158649', 'tblTempUsageDetail_20' ) start [2025-01-02 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158649', 'tblTempUsageDetail_20' ) end [2025-01-02 13:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:52:29] Production.INFO: ==11083== Releasing lock... [2025-01-02 13:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:52:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:53:04 [end_date_ymd] => 2025-01-02 13:53:04 [RateCDR] => 1 ) [2025-01-02 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:53:04' and `end` < '2025-01-02 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:53:21] Production.INFO: count ==4605 [2025-01-02 13:53:23] Production.ERROR: pbx CDR StartTime 2025-01-02 10:53:04 - End Time 2025-01-02 13:53:04 [2025-01-02 13:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158654', 'tblTempUsageDetail_20' ) start [2025-01-02 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158654', 'tblTempUsageDetail_20' ) end [2025-01-02 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158654', 'tblTempVendorCDR_20' ) start [2025-01-02 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158654', 'tblTempVendorCDR_20' ) end [2025-01-02 13:53:23] Production.INFO: ProcessCDR(1,14158654,1,1,2) [2025-01-02 13:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158654', 'tblTempUsageDetail_20' ) start [2025-01-02 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158654', 'tblTempUsageDetail_20' ) end [2025-01-02 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:53:28] Production.INFO: ==11196== Releasing lock... [2025-01-02 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:53:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:54:05 [end_date_ymd] => 2025-01-02 13:54:05 [RateCDR] => 1 ) [2025-01-02 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:54:05' and `end` < '2025-01-02 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:54:26] Production.INFO: count ==4598 [2025-01-02 13:54:28] Production.ERROR: pbx CDR StartTime 2025-01-02 10:54:05 - End Time 2025-01-02 13:54:05 [2025-01-02 13:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158659', 'tblTempUsageDetail_20' ) start [2025-01-02 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158659', 'tblTempUsageDetail_20' ) end [2025-01-02 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158659', 'tblTempVendorCDR_20' ) start [2025-01-02 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158659', 'tblTempVendorCDR_20' ) end [2025-01-02 13:54:28] Production.INFO: ProcessCDR(1,14158659,1,1,2) [2025-01-02 13:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158659', 'tblTempUsageDetail_20' ) start [2025-01-02 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158659', 'tblTempUsageDetail_20' ) end [2025-01-02 13:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:54:32] Production.INFO: ==11304== Releasing lock... [2025-01-02 13:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:54:32] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:55:05 [end_date_ymd] => 2025-01-02 13:55:05 [RateCDR] => 1 ) [2025-01-02 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:55:05' and `end` < '2025-01-02 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:55:20] Production.INFO: count ==4575 [2025-01-02 13:55:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:55:05 - End Time 2025-01-02 13:55:05 [2025-01-02 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158664', 'tblTempUsageDetail_20' ) start [2025-01-02 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158664', 'tblTempUsageDetail_20' ) end [2025-01-02 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158664', 'tblTempVendorCDR_20' ) start [2025-01-02 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158664', 'tblTempVendorCDR_20' ) end [2025-01-02 13:55:22] Production.INFO: ProcessCDR(1,14158664,1,1,2) [2025-01-02 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158664', 'tblTempUsageDetail_20' ) start [2025-01-02 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158664', 'tblTempUsageDetail_20' ) end [2025-01-02 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:55:27] Production.INFO: ==11386== Releasing lock... [2025-01-02 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:55:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:56:05 [end_date_ymd] => 2025-01-02 13:56:05 [RateCDR] => 1 ) [2025-01-02 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:56:05' and `end` < '2025-01-02 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:56:20] Production.INFO: count ==4557 [2025-01-02 13:56:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:56:05 - End Time 2025-01-02 13:56:05 [2025-01-02 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158669', 'tblTempUsageDetail_20' ) start [2025-01-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158669', 'tblTempUsageDetail_20' ) end [2025-01-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158669', 'tblTempVendorCDR_20' ) start [2025-01-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158669', 'tblTempVendorCDR_20' ) end [2025-01-02 13:56:22] Production.INFO: ProcessCDR(1,14158669,1,1,2) [2025-01-02 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158669', 'tblTempUsageDetail_20' ) start [2025-01-02 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158669', 'tblTempUsageDetail_20' ) end [2025-01-02 13:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:56:25] Production.INFO: ==11457== Releasing lock... [2025-01-02 13:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:56:25] Production.INFO: 62 MB #Memory Used# [2025-01-02 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:57:05 [end_date_ymd] => 2025-01-02 13:57:05 [RateCDR] => 1 ) [2025-01-02 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:57:05' and `end` < '2025-01-02 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:57:20] Production.INFO: count ==4581 [2025-01-02 13:57:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:57:05 - End Time 2025-01-02 13:57:05 [2025-01-02 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158674', 'tblTempUsageDetail_20' ) start [2025-01-02 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158674', 'tblTempUsageDetail_20' ) end [2025-01-02 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158674', 'tblTempVendorCDR_20' ) start [2025-01-02 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158674', 'tblTempVendorCDR_20' ) end [2025-01-02 13:57:22] Production.INFO: ProcessCDR(1,14158674,1,1,2) [2025-01-02 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158674', 'tblTempUsageDetail_20' ) start [2025-01-02 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158674', 'tblTempUsageDetail_20' ) end [2025-01-02 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:57:27] Production.INFO: ==11533== Releasing lock... [2025-01-02 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:57:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:58:05 [end_date_ymd] => 2025-01-02 13:58:05 [RateCDR] => 1 ) [2025-01-02 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:58:05' and `end` < '2025-01-02 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:58:21] Production.INFO: count ==4568 [2025-01-02 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-02 10:58:05 - End Time 2025-01-02 13:58:05 [2025-01-02 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158679', 'tblTempUsageDetail_20' ) start [2025-01-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158679', 'tblTempUsageDetail_20' ) end [2025-01-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158679', 'tblTempVendorCDR_20' ) start [2025-01-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158679', 'tblTempVendorCDR_20' ) end [2025-01-02 13:58:22] Production.INFO: ProcessCDR(1,14158679,1,1,2) [2025-01-02 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158679', 'tblTempUsageDetail_20' ) start [2025-01-02 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158679', 'tblTempUsageDetail_20' ) end [2025-01-02 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:58:27] Production.INFO: ==11605== Releasing lock... [2025-01-02 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:58:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 10:59:05 [end_date_ymd] => 2025-01-02 13:59:05 [RateCDR] => 1 ) [2025-01-02 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 10:59:05' and `end` < '2025-01-02 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 13:59:19] Production.INFO: count ==4567 [2025-01-02 13:59:20] Production.ERROR: pbx CDR StartTime 2025-01-02 10:59:05 - End Time 2025-01-02 13:59:05 [2025-01-02 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158684', 'tblTempUsageDetail_20' ) start [2025-01-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158684', 'tblTempUsageDetail_20' ) end [2025-01-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158684', 'tblTempVendorCDR_20' ) start [2025-01-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158684', 'tblTempVendorCDR_20' ) end [2025-01-02 13:59:21] Production.INFO: ProcessCDR(1,14158684,1,1,2) [2025-01-02 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158684', 'tblTempUsageDetail_20' ) start [2025-01-02 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158684', 'tblTempUsageDetail_20' ) end [2025-01-02 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 13:59:25] Production.INFO: ==11675== Releasing lock... [2025-01-02 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 13:59:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:00:05 [end_date_ymd] => 2025-01-02 14:00:05 [RateCDR] => 1 ) [2025-01-02 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:00:05' and `end` < '2025-01-02 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:00:24] Production.INFO: count ==4577 [2025-01-02 14:00:26] Production.ERROR: pbx CDR StartTime 2025-01-02 11:00:05 - End Time 2025-01-02 14:00:05 [2025-01-02 14:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158690', 'tblTempUsageDetail_20' ) start [2025-01-02 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158690', 'tblTempUsageDetail_20' ) end [2025-01-02 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158690', 'tblTempVendorCDR_20' ) start [2025-01-02 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158690', 'tblTempVendorCDR_20' ) end [2025-01-02 14:00:26] Production.INFO: ProcessCDR(1,14158690,1,1,2) [2025-01-02 14:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158690', 'tblTempUsageDetail_20' ) start [2025-01-02 14:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158690', 'tblTempUsageDetail_20' ) end [2025-01-02 14:00:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:00:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:00:31] Production.INFO: ==11748== Releasing lock... [2025-01-02 14:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:00:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:01:05 [end_date_ymd] => 2025-01-02 14:01:05 [RateCDR] => 1 ) [2025-01-02 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:01:05' and `end` < '2025-01-02 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:01:23] Production.INFO: count ==4599 [2025-01-02 14:01:25] Production.ERROR: pbx CDR StartTime 2025-01-02 11:01:05 - End Time 2025-01-02 14:01:05 [2025-01-02 14:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158695', 'tblTempUsageDetail_20' ) start [2025-01-02 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158695', 'tblTempUsageDetail_20' ) end [2025-01-02 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158695', 'tblTempVendorCDR_20' ) start [2025-01-02 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158695', 'tblTempVendorCDR_20' ) end [2025-01-02 14:01:25] Production.INFO: ProcessCDR(1,14158695,1,1,2) [2025-01-02 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158695', 'tblTempUsageDetail_20' ) start [2025-01-02 14:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158695', 'tblTempUsageDetail_20' ) end [2025-01-02 14:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:01:30] Production.INFO: ==11832== Releasing lock... [2025-01-02 14:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:01:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:02:05 [end_date_ymd] => 2025-01-02 14:02:05 [RateCDR] => 1 ) [2025-01-02 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:02:05' and `end` < '2025-01-02 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:02:20] Production.INFO: count ==4610 [2025-01-02 14:02:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:02:05 - End Time 2025-01-02 14:02:05 [2025-01-02 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158700', 'tblTempUsageDetail_20' ) start [2025-01-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158700', 'tblTempUsageDetail_20' ) end [2025-01-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158700', 'tblTempVendorCDR_20' ) start [2025-01-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158700', 'tblTempVendorCDR_20' ) end [2025-01-02 14:02:22] Production.INFO: ProcessCDR(1,14158700,1,1,2) [2025-01-02 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158700', 'tblTempUsageDetail_20' ) start [2025-01-02 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158700', 'tblTempUsageDetail_20' ) end [2025-01-02 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:02:26] Production.INFO: ==11942== Releasing lock... [2025-01-02 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:02:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:03:05 [end_date_ymd] => 2025-01-02 14:03:05 [RateCDR] => 1 ) [2025-01-02 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:03:05' and `end` < '2025-01-02 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:03:21] Production.INFO: count ==4592 [2025-01-02 14:03:23] Production.ERROR: pbx CDR StartTime 2025-01-02 11:03:05 - End Time 2025-01-02 14:03:05 [2025-01-02 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158705', 'tblTempUsageDetail_20' ) start [2025-01-02 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158705', 'tblTempUsageDetail_20' ) end [2025-01-02 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158705', 'tblTempVendorCDR_20' ) start [2025-01-02 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158705', 'tblTempVendorCDR_20' ) end [2025-01-02 14:03:23] Production.INFO: ProcessCDR(1,14158705,1,1,2) [2025-01-02 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158705', 'tblTempUsageDetail_20' ) start [2025-01-02 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158705', 'tblTempUsageDetail_20' ) end [2025-01-02 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:03:28] Production.INFO: ==12013== Releasing lock... [2025-01-02 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:03:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:04:05 [end_date_ymd] => 2025-01-02 14:04:05 [RateCDR] => 1 ) [2025-01-02 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:04:05' and `end` < '2025-01-02 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:04:24] Production.INFO: count ==4567 [2025-01-02 14:04:26] Production.ERROR: pbx CDR StartTime 2025-01-02 11:04:05 - End Time 2025-01-02 14:04:05 [2025-01-02 14:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158710', 'tblTempUsageDetail_20' ) start [2025-01-02 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158710', 'tblTempUsageDetail_20' ) end [2025-01-02 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158710', 'tblTempVendorCDR_20' ) start [2025-01-02 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158710', 'tblTempVendorCDR_20' ) end [2025-01-02 14:04:26] Production.INFO: ProcessCDR(1,14158710,1,1,2) [2025-01-02 14:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158710', 'tblTempUsageDetail_20' ) start [2025-01-02 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158710', 'tblTempUsageDetail_20' ) end [2025-01-02 14:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:04:31] Production.INFO: ==12083== Releasing lock... [2025-01-02 14:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:04:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:05:05 [end_date_ymd] => 2025-01-02 14:05:05 [RateCDR] => 1 ) [2025-01-02 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:05:05' and `end` < '2025-01-02 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:05:27] Production.INFO: count ==4568 [2025-01-02 14:05:29] Production.ERROR: pbx CDR StartTime 2025-01-02 11:05:05 - End Time 2025-01-02 14:05:05 [2025-01-02 14:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158715', 'tblTempUsageDetail_20' ) start [2025-01-02 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158715', 'tblTempUsageDetail_20' ) end [2025-01-02 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158715', 'tblTempVendorCDR_20' ) start [2025-01-02 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158715', 'tblTempVendorCDR_20' ) end [2025-01-02 14:05:29] Production.INFO: ProcessCDR(1,14158715,1,1,2) [2025-01-02 14:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158715', 'tblTempUsageDetail_20' ) start [2025-01-02 14:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158715', 'tblTempUsageDetail_20' ) end [2025-01-02 14:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:05:33] Production.INFO: ==12153== Releasing lock... [2025-01-02 14:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:05:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:06:05 [end_date_ymd] => 2025-01-02 14:06:05 [RateCDR] => 1 ) [2025-01-02 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:06:05' and `end` < '2025-01-02 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:06:19] Production.INFO: count ==4559 [2025-01-02 14:06:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:06:05 - End Time 2025-01-02 14:06:05 [2025-01-02 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158720', 'tblTempUsageDetail_20' ) start [2025-01-02 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158720', 'tblTempUsageDetail_20' ) end [2025-01-02 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158720', 'tblTempVendorCDR_20' ) start [2025-01-02 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158720', 'tblTempVendorCDR_20' ) end [2025-01-02 14:06:21] Production.INFO: ProcessCDR(1,14158720,1,1,2) [2025-01-02 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158720', 'tblTempUsageDetail_20' ) start [2025-01-02 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158720', 'tblTempUsageDetail_20' ) end [2025-01-02 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:06:26] Production.INFO: ==12229== Releasing lock... [2025-01-02 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:06:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:07:05 [end_date_ymd] => 2025-01-02 14:07:05 [RateCDR] => 1 ) [2025-01-02 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:07:05' and `end` < '2025-01-02 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:07:18] Production.INFO: count ==4562 [2025-01-02 14:07:20] Production.ERROR: pbx CDR StartTime 2025-01-02 11:07:05 - End Time 2025-01-02 14:07:05 [2025-01-02 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158725', 'tblTempUsageDetail_20' ) start [2025-01-02 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158725', 'tblTempUsageDetail_20' ) end [2025-01-02 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158725', 'tblTempVendorCDR_20' ) start [2025-01-02 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158725', 'tblTempVendorCDR_20' ) end [2025-01-02 14:07:20] Production.INFO: ProcessCDR(1,14158725,1,1,2) [2025-01-02 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158725', 'tblTempUsageDetail_20' ) start [2025-01-02 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158725', 'tblTempUsageDetail_20' ) end [2025-01-02 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:07:25] Production.INFO: ==12314== Releasing lock... [2025-01-02 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:07:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:08:05 [end_date_ymd] => 2025-01-02 14:08:05 [RateCDR] => 1 ) [2025-01-02 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:08:05' and `end` < '2025-01-02 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:08:21] Production.INFO: count ==4556 [2025-01-02 14:08:23] Production.ERROR: pbx CDR StartTime 2025-01-02 11:08:05 - End Time 2025-01-02 14:08:05 [2025-01-02 14:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158730', 'tblTempUsageDetail_20' ) start [2025-01-02 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158730', 'tblTempUsageDetail_20' ) end [2025-01-02 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158730', 'tblTempVendorCDR_20' ) start [2025-01-02 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158730', 'tblTempVendorCDR_20' ) end [2025-01-02 14:08:23] Production.INFO: ProcessCDR(1,14158730,1,1,2) [2025-01-02 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158730', 'tblTempUsageDetail_20' ) start [2025-01-02 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158730', 'tblTempUsageDetail_20' ) end [2025-01-02 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:08:28] Production.INFO: ==12394== Releasing lock... [2025-01-02 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:08:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:09:05 [end_date_ymd] => 2025-01-02 14:09:05 [RateCDR] => 1 ) [2025-01-02 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:09:05' and `end` < '2025-01-02 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:09:22] Production.INFO: count ==4569 [2025-01-02 14:09:24] Production.ERROR: pbx CDR StartTime 2025-01-02 11:09:05 - End Time 2025-01-02 14:09:05 [2025-01-02 14:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158735', 'tblTempUsageDetail_20' ) start [2025-01-02 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158735', 'tblTempUsageDetail_20' ) end [2025-01-02 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158735', 'tblTempVendorCDR_20' ) start [2025-01-02 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158735', 'tblTempVendorCDR_20' ) end [2025-01-02 14:09:24] Production.INFO: ProcessCDR(1,14158735,1,1,2) [2025-01-02 14:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158735', 'tblTempUsageDetail_20' ) start [2025-01-02 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158735', 'tblTempUsageDetail_20' ) end [2025-01-02 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:09:29] Production.INFO: ==12472== Releasing lock... [2025-01-02 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:09:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:10:06 [end_date_ymd] => 2025-01-02 14:10:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:10:06' and `end` < '2025-01-02 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-01-02 14:10:22] Production.INFO: count ==4575 [2025-01-02 14:10:23] Production.ERROR: pbx CDR StartTime 2025-01-02 11:10:06 - End Time 2025-01-02 14:10:06 [2025-01-02 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158741', 'tblTempUsageDetail_20' ) start [2025-01-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158741', 'tblTempUsageDetail_20' ) end [2025-01-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158741', 'tblTempVendorCDR_20' ) start [2025-01-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158741', 'tblTempVendorCDR_20' ) end [2025-01-02 14:10:23] Production.INFO: ProcessCDR(1,14158741,1,1,2) [2025-01-02 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158741', 'tblTempUsageDetail_20' ) start [2025-01-02 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158741', 'tblTempUsageDetail_20' ) end [2025-01-02 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:10:28] Production.INFO: ==12554== Releasing lock... [2025-01-02 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:10:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:11:04 [end_date_ymd] => 2025-01-02 14:11:04 [RateCDR] => 1 ) [2025-01-02 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:11:04' and `end` < '2025-01-02 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:11:23] Production.INFO: count ==4572 [2025-01-02 14:11:25] Production.ERROR: pbx CDR StartTime 2025-01-02 11:11:04 - End Time 2025-01-02 14:11:04 [2025-01-02 14:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158746', 'tblTempUsageDetail_20' ) start [2025-01-02 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158746', 'tblTempUsageDetail_20' ) end [2025-01-02 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158746', 'tblTempVendorCDR_20' ) start [2025-01-02 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158746', 'tblTempVendorCDR_20' ) end [2025-01-02 14:11:25] Production.INFO: ProcessCDR(1,14158746,1,1,2) [2025-01-02 14:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158746', 'tblTempUsageDetail_20' ) start [2025-01-02 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158746', 'tblTempUsageDetail_20' ) end [2025-01-02 14:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:11:30] Production.INFO: ==12633== Releasing lock... [2025-01-02 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:11:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:12:05 [end_date_ymd] => 2025-01-02 14:12:05 [RateCDR] => 1 ) [2025-01-02 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:12:05' and `end` < '2025-01-02 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:12:23] Production.INFO: count ==4570 [2025-01-02 14:12:25] Production.ERROR: pbx CDR StartTime 2025-01-02 11:12:05 - End Time 2025-01-02 14:12:05 [2025-01-02 14:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158751', 'tblTempUsageDetail_20' ) start [2025-01-02 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158751', 'tblTempUsageDetail_20' ) end [2025-01-02 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158751', 'tblTempVendorCDR_20' ) start [2025-01-02 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158751', 'tblTempVendorCDR_20' ) end [2025-01-02 14:12:25] Production.INFO: ProcessCDR(1,14158751,1,1,2) [2025-01-02 14:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158751', 'tblTempUsageDetail_20' ) start [2025-01-02 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158751', 'tblTempUsageDetail_20' ) end [2025-01-02 14:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:12:30] Production.INFO: ==12715== Releasing lock... [2025-01-02 14:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:12:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:13:05 [end_date_ymd] => 2025-01-02 14:13:05 [RateCDR] => 1 ) [2025-01-02 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:13:05' and `end` < '2025-01-02 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:13:23] Production.INFO: count ==4563 [2025-01-02 14:13:24] Production.ERROR: pbx CDR StartTime 2025-01-02 11:13:05 - End Time 2025-01-02 14:13:05 [2025-01-02 14:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158756', 'tblTempUsageDetail_20' ) start [2025-01-02 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158756', 'tblTempUsageDetail_20' ) end [2025-01-02 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158756', 'tblTempVendorCDR_20' ) start [2025-01-02 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158756', 'tblTempVendorCDR_20' ) end [2025-01-02 14:13:24] Production.INFO: ProcessCDR(1,14158756,1,1,2) [2025-01-02 14:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158756', 'tblTempUsageDetail_20' ) start [2025-01-02 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158756', 'tblTempUsageDetail_20' ) end [2025-01-02 14:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:13:29] Production.INFO: ==12799== Releasing lock... [2025-01-02 14:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:13:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:14:05 [end_date_ymd] => 2025-01-02 14:14:05 [RateCDR] => 1 ) [2025-01-02 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:14:05' and `end` < '2025-01-02 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:14:19] Production.INFO: count ==4568 [2025-01-02 14:14:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:14:05 - End Time 2025-01-02 14:14:05 [2025-01-02 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158761', 'tblTempUsageDetail_20' ) start [2025-01-02 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158761', 'tblTempUsageDetail_20' ) end [2025-01-02 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158761', 'tblTempVendorCDR_20' ) start [2025-01-02 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158761', 'tblTempVendorCDR_20' ) end [2025-01-02 14:14:21] Production.INFO: ProcessCDR(1,14158761,1,1,2) [2025-01-02 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158761', 'tblTempUsageDetail_20' ) start [2025-01-02 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158761', 'tblTempUsageDetail_20' ) end [2025-01-02 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:14:24] Production.INFO: ==12876== Releasing lock... [2025-01-02 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:14:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:15:04 [end_date_ymd] => 2025-01-02 14:15:04 [RateCDR] => 1 ) [2025-01-02 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:15:04' and `end` < '2025-01-02 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:15:25] Production.INFO: count ==4605 [2025-01-02 14:15:27] Production.ERROR: pbx CDR StartTime 2025-01-02 11:15:04 - End Time 2025-01-02 14:15:04 [2025-01-02 14:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158766', 'tblTempUsageDetail_20' ) start [2025-01-02 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158766', 'tblTempUsageDetail_20' ) end [2025-01-02 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158766', 'tblTempVendorCDR_20' ) start [2025-01-02 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158766', 'tblTempVendorCDR_20' ) end [2025-01-02 14:15:28] Production.INFO: ProcessCDR(1,14158766,1,1,2) [2025-01-02 14:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158766', 'tblTempUsageDetail_20' ) start [2025-01-02 14:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158766', 'tblTempUsageDetail_20' ) end [2025-01-02 14:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:15:33] Production.INFO: ==12953== Releasing lock... [2025-01-02 14:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:15:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:16:05 [end_date_ymd] => 2025-01-02 14:16:05 [RateCDR] => 1 ) [2025-01-02 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:16:05' and `end` < '2025-01-02 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:16:18] Production.INFO: count ==4596 [2025-01-02 14:16:20] Production.ERROR: pbx CDR StartTime 2025-01-02 11:16:05 - End Time 2025-01-02 14:16:05 [2025-01-02 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158771', 'tblTempUsageDetail_20' ) start [2025-01-02 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158771', 'tblTempUsageDetail_20' ) end [2025-01-02 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158771', 'tblTempVendorCDR_20' ) start [2025-01-02 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158771', 'tblTempVendorCDR_20' ) end [2025-01-02 14:16:20] Production.INFO: ProcessCDR(1,14158771,1,1,2) [2025-01-02 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158771', 'tblTempUsageDetail_20' ) start [2025-01-02 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158771', 'tblTempUsageDetail_20' ) end [2025-01-02 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:16:25] Production.INFO: ==13036== Releasing lock... [2025-01-02 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:16:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:17:04 [end_date_ymd] => 2025-01-02 14:17:04 [RateCDR] => 1 ) [2025-01-02 14:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:17:04' and `end` < '2025-01-02 14:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:17:35] Production.INFO: count ==4613 [2025-01-02 14:17:37] Production.ERROR: pbx CDR StartTime 2025-01-02 11:17:04 - End Time 2025-01-02 14:17:04 [2025-01-02 14:17:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158776', 'tblTempUsageDetail_20' ) start [2025-01-02 14:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158776', 'tblTempUsageDetail_20' ) end [2025-01-02 14:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158776', 'tblTempVendorCDR_20' ) start [2025-01-02 14:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158776', 'tblTempVendorCDR_20' ) end [2025-01-02 14:17:37] Production.INFO: ProcessCDR(1,14158776,1,1,2) [2025-01-02 14:17:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:17:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:17:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:17:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:17:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158776', 'tblTempUsageDetail_20' ) start [2025-01-02 14:17:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158776', 'tblTempUsageDetail_20' ) end [2025-01-02 14:17:42] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:17:42] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:17:42] Production.INFO: ==13159== Releasing lock... [2025-01-02 14:17:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:17:42] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:18:05 [end_date_ymd] => 2025-01-02 14:18:05 [RateCDR] => 1 ) [2025-01-02 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:18:05' and `end` < '2025-01-02 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:18:27] Production.INFO: count ==4586 [2025-01-02 14:18:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:18:05 - End Time 2025-01-02 14:18:05 [2025-01-02 14:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158781', 'tblTempUsageDetail_20' ) start [2025-01-02 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158781', 'tblTempUsageDetail_20' ) end [2025-01-02 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158781', 'tblTempVendorCDR_20' ) start [2025-01-02 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158781', 'tblTempVendorCDR_20' ) end [2025-01-02 14:18:29] Production.INFO: ProcessCDR(1,14158781,1,1,2) [2025-01-02 14:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158781', 'tblTempUsageDetail_20' ) start [2025-01-02 14:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158781', 'tblTempUsageDetail_20' ) end [2025-01-02 14:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:18:33] Production.INFO: ==13248== Releasing lock... [2025-01-02 14:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:18:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:19:06 [end_date_ymd] => 2025-01-02 14:19:06 [RateCDR] => 1 ) [2025-01-02 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:19:06' and `end` < '2025-01-02 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:19:23] Production.INFO: count ==4567 [2025-01-02 14:19:25] Production.ERROR: pbx CDR StartTime 2025-01-02 11:19:06 - End Time 2025-01-02 14:19:06 [2025-01-02 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158786', 'tblTempUsageDetail_20' ) start [2025-01-02 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158786', 'tblTempUsageDetail_20' ) end [2025-01-02 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158786', 'tblTempVendorCDR_20' ) start [2025-01-02 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158786', 'tblTempVendorCDR_20' ) end [2025-01-02 14:19:25] Production.INFO: ProcessCDR(1,14158786,1,1,2) [2025-01-02 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158786', 'tblTempUsageDetail_20' ) start [2025-01-02 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158786', 'tblTempUsageDetail_20' ) end [2025-01-02 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:19:30] Production.INFO: ==13332== Releasing lock... [2025-01-02 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:19:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:20:06 [end_date_ymd] => 2025-01-02 14:20:06 [RateCDR] => 1 ) [2025-01-02 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:20:06' and `end` < '2025-01-02 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:20:19] Production.INFO: count ==4611 [2025-01-02 14:20:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:20:06 - End Time 2025-01-02 14:20:06 [2025-01-02 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158792', 'tblTempUsageDetail_20' ) start [2025-01-02 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158792', 'tblTempUsageDetail_20' ) end [2025-01-02 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158792', 'tblTempVendorCDR_20' ) start [2025-01-02 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158792', 'tblTempVendorCDR_20' ) end [2025-01-02 14:20:21] Production.INFO: ProcessCDR(1,14158792,1,1,2) [2025-01-02 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158792', 'tblTempUsageDetail_20' ) start [2025-01-02 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158792', 'tblTempUsageDetail_20' ) end [2025-01-02 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:20:26] Production.INFO: ==13432== Releasing lock... [2025-01-02 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:20:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:21:05 [end_date_ymd] => 2025-01-02 14:21:05 [RateCDR] => 1 ) [2025-01-02 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:21:05' and `end` < '2025-01-02 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:21:20] Production.INFO: count ==4647 [2025-01-02 14:21:22] Production.ERROR: pbx CDR StartTime 2025-01-02 11:21:05 - End Time 2025-01-02 14:21:05 [2025-01-02 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158797', 'tblTempUsageDetail_20' ) start [2025-01-02 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158797', 'tblTempUsageDetail_20' ) end [2025-01-02 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158797', 'tblTempVendorCDR_20' ) start [2025-01-02 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158797', 'tblTempVendorCDR_20' ) end [2025-01-02 14:21:22] Production.INFO: ProcessCDR(1,14158797,1,1,2) [2025-01-02 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158797', 'tblTempUsageDetail_20' ) start [2025-01-02 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158797', 'tblTempUsageDetail_20' ) end [2025-01-02 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:21:26] Production.INFO: ==13528== Releasing lock... [2025-01-02 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:21:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:22:05 [end_date_ymd] => 2025-01-02 14:22:05 [RateCDR] => 1 ) [2025-01-02 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:22:05' and `end` < '2025-01-02 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:22:21] Production.INFO: count ==4650 [2025-01-02 14:22:23] Production.ERROR: pbx CDR StartTime 2025-01-02 11:22:05 - End Time 2025-01-02 14:22:05 [2025-01-02 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158802', 'tblTempUsageDetail_20' ) start [2025-01-02 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158802', 'tblTempUsageDetail_20' ) end [2025-01-02 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158802', 'tblTempVendorCDR_20' ) start [2025-01-02 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158802', 'tblTempVendorCDR_20' ) end [2025-01-02 14:22:23] Production.INFO: ProcessCDR(1,14158802,1,1,2) [2025-01-02 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158802', 'tblTempUsageDetail_20' ) start [2025-01-02 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158802', 'tblTempUsageDetail_20' ) end [2025-01-02 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:22:28] Production.INFO: ==13633== Releasing lock... [2025-01-02 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:22:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:23:05 [end_date_ymd] => 2025-01-02 14:23:05 [RateCDR] => 1 ) [2025-01-02 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:23:05' and `end` < '2025-01-02 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:23:22] Production.INFO: count ==4624 [2025-01-02 14:23:24] Production.ERROR: pbx CDR StartTime 2025-01-02 11:23:05 - End Time 2025-01-02 14:23:05 [2025-01-02 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158807', 'tblTempUsageDetail_20' ) start [2025-01-02 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158807', 'tblTempUsageDetail_20' ) end [2025-01-02 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158807', 'tblTempVendorCDR_20' ) start [2025-01-02 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158807', 'tblTempVendorCDR_20' ) end [2025-01-02 14:23:24] Production.INFO: ProcessCDR(1,14158807,1,1,2) [2025-01-02 14:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158807', 'tblTempUsageDetail_20' ) start [2025-01-02 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158807', 'tblTempUsageDetail_20' ) end [2025-01-02 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:23:29] Production.INFO: ==13730== Releasing lock... [2025-01-02 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:23:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:24:05 [end_date_ymd] => 2025-01-02 14:24:05 [RateCDR] => 1 ) [2025-01-02 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:24:05' and `end` < '2025-01-02 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:24:22] Production.INFO: count ==4606 [2025-01-02 14:24:24] Production.ERROR: pbx CDR StartTime 2025-01-02 11:24:05 - End Time 2025-01-02 14:24:05 [2025-01-02 14:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158812', 'tblTempUsageDetail_20' ) start [2025-01-02 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158812', 'tblTempUsageDetail_20' ) end [2025-01-02 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158812', 'tblTempVendorCDR_20' ) start [2025-01-02 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158812', 'tblTempVendorCDR_20' ) end [2025-01-02 14:24:24] Production.INFO: ProcessCDR(1,14158812,1,1,2) [2025-01-02 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158812', 'tblTempUsageDetail_20' ) start [2025-01-02 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158812', 'tblTempUsageDetail_20' ) end [2025-01-02 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:24:29] Production.INFO: ==13820== Releasing lock... [2025-01-02 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:24:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:25:05 [end_date_ymd] => 2025-01-02 14:25:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:25:05' and `end` < '2025-01-02 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-01-02 14:25:20] Production.INFO: count ==4592 [2025-01-02 14:25:22] Production.ERROR: pbx CDR StartTime 2025-01-02 11:25:05 - End Time 2025-01-02 14:25:05 [2025-01-02 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158817', 'tblTempUsageDetail_20' ) start [2025-01-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158817', 'tblTempUsageDetail_20' ) end [2025-01-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158817', 'tblTempVendorCDR_20' ) start [2025-01-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158817', 'tblTempVendorCDR_20' ) end [2025-01-02 14:25:22] Production.INFO: ProcessCDR(1,14158817,1,1,2) [2025-01-02 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158817', 'tblTempUsageDetail_20' ) start [2025-01-02 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158817', 'tblTempUsageDetail_20' ) end [2025-01-02 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:25:27] Production.INFO: ==13911== Releasing lock... [2025-01-02 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:25:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:26:04 [end_date_ymd] => 2025-01-02 14:26:04 [RateCDR] => 1 ) [2025-01-02 14:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:26:04' and `end` < '2025-01-02 14:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:26:21] Production.INFO: count ==4586 [2025-01-02 14:26:23] Production.ERROR: pbx CDR StartTime 2025-01-02 11:26:04 - End Time 2025-01-02 14:26:04 [2025-01-02 14:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158822', 'tblTempUsageDetail_20' ) start [2025-01-02 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158822', 'tblTempUsageDetail_20' ) end [2025-01-02 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158822', 'tblTempVendorCDR_20' ) start [2025-01-02 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158822', 'tblTempVendorCDR_20' ) end [2025-01-02 14:26:23] Production.INFO: ProcessCDR(1,14158822,1,1,2) [2025-01-02 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158822', 'tblTempUsageDetail_20' ) start [2025-01-02 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158822', 'tblTempUsageDetail_20' ) end [2025-01-02 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:26:28] Production.INFO: ==14003== Releasing lock... [2025-01-02 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:26:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:27:05 [end_date_ymd] => 2025-01-02 14:27:05 [RateCDR] => 1 ) [2025-01-02 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:27:05' and `end` < '2025-01-02 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:27:20] Production.INFO: count ==4574 [2025-01-02 14:27:22] Production.ERROR: pbx CDR StartTime 2025-01-02 11:27:05 - End Time 2025-01-02 14:27:05 [2025-01-02 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158827', 'tblTempUsageDetail_20' ) start [2025-01-02 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158827', 'tblTempUsageDetail_20' ) end [2025-01-02 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158827', 'tblTempVendorCDR_20' ) start [2025-01-02 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158827', 'tblTempVendorCDR_20' ) end [2025-01-02 14:27:22] Production.INFO: ProcessCDR(1,14158827,1,1,2) [2025-01-02 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158827', 'tblTempUsageDetail_20' ) start [2025-01-02 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158827', 'tblTempUsageDetail_20' ) end [2025-01-02 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:27:27] Production.INFO: ==14100== Releasing lock... [2025-01-02 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:27:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:28:05 [end_date_ymd] => 2025-01-02 14:28:05 [RateCDR] => 1 ) [2025-01-02 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:28:05' and `end` < '2025-01-02 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:28:20] Production.INFO: count ==4585 [2025-01-02 14:28:22] Production.ERROR: pbx CDR StartTime 2025-01-02 11:28:05 - End Time 2025-01-02 14:28:05 [2025-01-02 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158832', 'tblTempUsageDetail_20' ) start [2025-01-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158832', 'tblTempUsageDetail_20' ) end [2025-01-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158832', 'tblTempVendorCDR_20' ) start [2025-01-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158832', 'tblTempVendorCDR_20' ) end [2025-01-02 14:28:22] Production.INFO: ProcessCDR(1,14158832,1,1,2) [2025-01-02 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158832', 'tblTempUsageDetail_20' ) start [2025-01-02 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158832', 'tblTempUsageDetail_20' ) end [2025-01-02 14:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:28:25] Production.INFO: ==14198== Releasing lock... [2025-01-02 14:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:28:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:29:05 [end_date_ymd] => 2025-01-02 14:29:05 [RateCDR] => 1 ) [2025-01-02 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:29:05' and `end` < '2025-01-02 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:29:27] Production.INFO: count ==4573 [2025-01-02 14:29:29] Production.ERROR: pbx CDR StartTime 2025-01-02 11:29:05 - End Time 2025-01-02 14:29:05 [2025-01-02 14:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158837', 'tblTempUsageDetail_20' ) start [2025-01-02 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158837', 'tblTempUsageDetail_20' ) end [2025-01-02 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158837', 'tblTempVendorCDR_20' ) start [2025-01-02 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158837', 'tblTempVendorCDR_20' ) end [2025-01-02 14:29:29] Production.INFO: ProcessCDR(1,14158837,1,1,2) [2025-01-02 14:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158837', 'tblTempUsageDetail_20' ) start [2025-01-02 14:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158837', 'tblTempUsageDetail_20' ) end [2025-01-02 14:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:29:34] Production.INFO: ==14291== Releasing lock... [2025-01-02 14:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:29:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:30:06 [end_date_ymd] => 2025-01-02 14:30:06 [RateCDR] => 1 ) [2025-01-02 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:30:06' and `end` < '2025-01-02 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:30:30] Production.INFO: count ==4567 [2025-01-02 14:30:32] Production.ERROR: pbx CDR StartTime 2025-01-02 11:30:06 - End Time 2025-01-02 14:30:06 [2025-01-02 14:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158842', 'tblTempUsageDetail_20' ) start [2025-01-02 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158842', 'tblTempUsageDetail_20' ) end [2025-01-02 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158842', 'tblTempVendorCDR_20' ) start [2025-01-02 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158842', 'tblTempVendorCDR_20' ) end [2025-01-02 14:30:33] Production.INFO: ProcessCDR(1,14158842,1,1,2) [2025-01-02 14:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158842', 'tblTempUsageDetail_20' ) start [2025-01-02 14:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158842', 'tblTempUsageDetail_20' ) end [2025-01-02 14:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:30:36] Production.INFO: ==14398== Releasing lock... [2025-01-02 14:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:30:36] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:31:04 [end_date_ymd] => 2025-01-02 14:31:04 [RateCDR] => 1 ) [2025-01-02 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:31:04' and `end` < '2025-01-02 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:31:32] Production.INFO: count ==4554 [2025-01-02 14:31:34] Production.ERROR: pbx CDR StartTime 2025-01-02 11:31:04 - End Time 2025-01-02 14:31:04 [2025-01-02 14:31:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158848', 'tblTempUsageDetail_20' ) start [2025-01-02 14:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158848', 'tblTempUsageDetail_20' ) end [2025-01-02 14:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158848', 'tblTempVendorCDR_20' ) start [2025-01-02 14:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158848', 'tblTempVendorCDR_20' ) end [2025-01-02 14:31:34] Production.INFO: ProcessCDR(1,14158848,1,1,2) [2025-01-02 14:31:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158848', 'tblTempUsageDetail_20' ) start [2025-01-02 14:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158848', 'tblTempUsageDetail_20' ) end [2025-01-02 14:31:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:31:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:31:38] Production.INFO: ==14502== Releasing lock... [2025-01-02 14:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:31:38] Production.INFO: 62 MB #Memory Used# [2025-01-02 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:32:05 [end_date_ymd] => 2025-01-02 14:32:05 [RateCDR] => 1 ) [2025-01-02 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:32:05' and `end` < '2025-01-02 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:32:26] Production.INFO: count ==4553 [2025-01-02 14:32:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:32:05 - End Time 2025-01-02 14:32:05 [2025-01-02 14:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158853', 'tblTempUsageDetail_20' ) start [2025-01-02 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158853', 'tblTempUsageDetail_20' ) end [2025-01-02 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158853', 'tblTempVendorCDR_20' ) start [2025-01-02 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158853', 'tblTempVendorCDR_20' ) end [2025-01-02 14:32:28] Production.INFO: ProcessCDR(1,14158853,1,1,2) [2025-01-02 14:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158853', 'tblTempUsageDetail_20' ) start [2025-01-02 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158853', 'tblTempUsageDetail_20' ) end [2025-01-02 14:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:32:33] Production.INFO: ==14605== Releasing lock... [2025-01-02 14:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:32:33] Production.INFO: 62 MB #Memory Used# [2025-01-02 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:33:05 [end_date_ymd] => 2025-01-02 14:33:05 [RateCDR] => 1 ) [2025-01-02 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:33:05' and `end` < '2025-01-02 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:33:23] Production.INFO: count ==4556 [2025-01-02 14:33:25] Production.ERROR: pbx CDR StartTime 2025-01-02 11:33:05 - End Time 2025-01-02 14:33:05 [2025-01-02 14:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158858', 'tblTempUsageDetail_20' ) start [2025-01-02 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158858', 'tblTempUsageDetail_20' ) end [2025-01-02 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158858', 'tblTempVendorCDR_20' ) start [2025-01-02 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158858', 'tblTempVendorCDR_20' ) end [2025-01-02 14:33:25] Production.INFO: ProcessCDR(1,14158858,1,1,2) [2025-01-02 14:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158858', 'tblTempUsageDetail_20' ) start [2025-01-02 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158858', 'tblTempUsageDetail_20' ) end [2025-01-02 14:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:33:29] Production.INFO: ==14750== Releasing lock... [2025-01-02 14:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:33:29] Production.INFO: 62 MB #Memory Used# [2025-01-02 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:34:05 [end_date_ymd] => 2025-01-02 14:34:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:34:05' and `end` < '2025-01-02 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-01-02 14:34:26] Production.INFO: count ==4551 [2025-01-02 14:34:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:34:05 - End Time 2025-01-02 14:34:05 [2025-01-02 14:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158863', 'tblTempUsageDetail_20' ) start [2025-01-02 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158863', 'tblTempUsageDetail_20' ) end [2025-01-02 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158863', 'tblTempVendorCDR_20' ) start [2025-01-02 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158863', 'tblTempVendorCDR_20' ) end [2025-01-02 14:34:28] Production.INFO: ProcessCDR(1,14158863,1,1,2) [2025-01-02 14:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158863', 'tblTempUsageDetail_20' ) start [2025-01-02 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158863', 'tblTempUsageDetail_20' ) end [2025-01-02 14:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:34:33] Production.INFO: ==14848== Releasing lock... [2025-01-02 14:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:34:33] Production.INFO: 62 MB #Memory Used# [2025-01-02 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:35:04 [end_date_ymd] => 2025-01-02 14:35:04 [RateCDR] => 1 ) [2025-01-02 14:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:35:04' and `end` < '2025-01-02 14:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:35:22] Production.INFO: count ==4563 [2025-01-02 14:35:24] Production.ERROR: pbx CDR StartTime 2025-01-02 11:35:04 - End Time 2025-01-02 14:35:04 [2025-01-02 14:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158868', 'tblTempUsageDetail_20' ) start [2025-01-02 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158868', 'tblTempUsageDetail_20' ) end [2025-01-02 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158868', 'tblTempVendorCDR_20' ) start [2025-01-02 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158868', 'tblTempVendorCDR_20' ) end [2025-01-02 14:35:24] Production.INFO: ProcessCDR(1,14158868,1,1,2) [2025-01-02 14:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158868', 'tblTempUsageDetail_20' ) start [2025-01-02 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158868', 'tblTempUsageDetail_20' ) end [2025-01-02 14:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:35:29] Production.INFO: ==14952== Releasing lock... [2025-01-02 14:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:35:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:36:05 [end_date_ymd] => 2025-01-02 14:36:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:36:05' and `end` < '2025-01-02 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-01-02 14:36:28] Production.INFO: count ==4601 [2025-01-02 14:36:30] Production.ERROR: pbx CDR StartTime 2025-01-02 11:36:05 - End Time 2025-01-02 14:36:05 [2025-01-02 14:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158872', 'tblTempUsageDetail_20' ) start [2025-01-02 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158872', 'tblTempUsageDetail_20' ) end [2025-01-02 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158872', 'tblTempVendorCDR_20' ) start [2025-01-02 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158872', 'tblTempVendorCDR_20' ) end [2025-01-02 14:36:30] Production.INFO: ProcessCDR(1,14158872,1,1,2) [2025-01-02 14:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158872', 'tblTempUsageDetail_20' ) start [2025-01-02 14:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158872', 'tblTempUsageDetail_20' ) end [2025-01-02 14:36:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:36:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:36:35] Production.INFO: ==15048== Releasing lock... [2025-01-02 14:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:36:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:37:05 [end_date_ymd] => 2025-01-02 14:37:05 [RateCDR] => 1 ) [2025-01-02 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:37:05' and `end` < '2025-01-02 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:37:28] Production.INFO: count ==4633 [2025-01-02 14:37:30] Production.ERROR: pbx CDR StartTime 2025-01-02 11:37:05 - End Time 2025-01-02 14:37:05 [2025-01-02 14:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158878', 'tblTempUsageDetail_20' ) start [2025-01-02 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158878', 'tblTempUsageDetail_20' ) end [2025-01-02 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158878', 'tblTempVendorCDR_20' ) start [2025-01-02 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158878', 'tblTempVendorCDR_20' ) end [2025-01-02 14:37:30] Production.INFO: ProcessCDR(1,14158878,1,1,2) [2025-01-02 14:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158878', 'tblTempUsageDetail_20' ) start [2025-01-02 14:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158878', 'tblTempUsageDetail_20' ) end [2025-01-02 14:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:37:35] Production.INFO: ==15142== Releasing lock... [2025-01-02 14:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:37:35] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:38:04 [end_date_ymd] => 2025-01-02 14:38:04 [RateCDR] => 1 ) [2025-01-02 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:38:04' and `end` < '2025-01-02 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:38:23] Production.INFO: count ==4615 [2025-01-02 14:38:25] Production.ERROR: pbx CDR StartTime 2025-01-02 11:38:04 - End Time 2025-01-02 14:38:04 [2025-01-02 14:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158883', 'tblTempUsageDetail_20' ) start [2025-01-02 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158883', 'tblTempUsageDetail_20' ) end [2025-01-02 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158883', 'tblTempVendorCDR_20' ) start [2025-01-02 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158883', 'tblTempVendorCDR_20' ) end [2025-01-02 14:38:25] Production.INFO: ProcessCDR(1,14158883,1,1,2) [2025-01-02 14:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158883', 'tblTempUsageDetail_20' ) start [2025-01-02 14:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158883', 'tblTempUsageDetail_20' ) end [2025-01-02 14:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:38:30] Production.INFO: ==15239== Releasing lock... [2025-01-02 14:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:38:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:39:05 [end_date_ymd] => 2025-01-02 14:39:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:39:05' and `end` < '2025-01-02 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-01-02 14:39:19] Production.INFO: count ==4608 [2025-01-02 14:39:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:39:05 - End Time 2025-01-02 14:39:05 [2025-01-02 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158888', 'tblTempUsageDetail_20' ) start [2025-01-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158888', 'tblTempUsageDetail_20' ) end [2025-01-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158888', 'tblTempVendorCDR_20' ) start [2025-01-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158888', 'tblTempVendorCDR_20' ) end [2025-01-02 14:39:21] Production.INFO: ProcessCDR(1,14158888,1,1,2) [2025-01-02 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158888', 'tblTempUsageDetail_20' ) start [2025-01-02 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158888', 'tblTempUsageDetail_20' ) end [2025-01-02 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:39:27] Production.INFO: ==15331== Releasing lock... [2025-01-02 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:40:06 [end_date_ymd] => 2025-01-02 14:40:06 [RateCDR] => 1 ) [2025-01-02 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:40:06' and `end` < '2025-01-02 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:40:19] Production.INFO: count ==4589 [2025-01-02 14:40:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:40:06 - End Time 2025-01-02 14:40:06 [2025-01-02 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158894', 'tblTempUsageDetail_20' ) start [2025-01-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158894', 'tblTempUsageDetail_20' ) end [2025-01-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158894', 'tblTempVendorCDR_20' ) start [2025-01-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158894', 'tblTempVendorCDR_20' ) end [2025-01-02 14:40:21] Production.INFO: ProcessCDR(1,14158894,1,1,2) [2025-01-02 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158894', 'tblTempUsageDetail_20' ) start [2025-01-02 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158894', 'tblTempUsageDetail_20' ) end [2025-01-02 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:40:26] Production.INFO: ==15431== Releasing lock... [2025-01-02 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:40:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:41:05 [end_date_ymd] => 2025-01-02 14:41:05 [RateCDR] => 1 ) [2025-01-02 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:41:05' and `end` < '2025-01-02 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:41:24] Production.INFO: count ==4566 [2025-01-02 14:41:26] Production.ERROR: pbx CDR StartTime 2025-01-02 11:41:05 - End Time 2025-01-02 14:41:05 [2025-01-02 14:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158899', 'tblTempUsageDetail_20' ) start [2025-01-02 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158899', 'tblTempUsageDetail_20' ) end [2025-01-02 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158899', 'tblTempVendorCDR_20' ) start [2025-01-02 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158899', 'tblTempVendorCDR_20' ) end [2025-01-02 14:41:26] Production.INFO: ProcessCDR(1,14158899,1,1,2) [2025-01-02 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158899', 'tblTempUsageDetail_20' ) start [2025-01-02 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158899', 'tblTempUsageDetail_20' ) end [2025-01-02 14:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:41:31] Production.INFO: ==15521== Releasing lock... [2025-01-02 14:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:41:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:42:05 [end_date_ymd] => 2025-01-02 14:42:05 [RateCDR] => 1 ) [2025-01-02 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:42:05' and `end` < '2025-01-02 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:42:37] Production.INFO: count ==4587 [2025-01-02 14:42:39] Production.ERROR: pbx CDR StartTime 2025-01-02 11:42:05 - End Time 2025-01-02 14:42:05 [2025-01-02 14:42:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158904', 'tblTempUsageDetail_20' ) start [2025-01-02 14:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158904', 'tblTempUsageDetail_20' ) end [2025-01-02 14:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158904', 'tblTempVendorCDR_20' ) start [2025-01-02 14:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158904', 'tblTempVendorCDR_20' ) end [2025-01-02 14:42:39] Production.INFO: ProcessCDR(1,14158904,1,1,2) [2025-01-02 14:42:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:42:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:42:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:42:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:42:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158904', 'tblTempUsageDetail_20' ) start [2025-01-02 14:42:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158904', 'tblTempUsageDetail_20' ) end [2025-01-02 14:42:44] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:42:44] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:42:44] Production.INFO: ==15602== Releasing lock... [2025-01-02 14:42:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:42:44] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:43:06 [end_date_ymd] => 2025-01-02 14:43:06 [RateCDR] => 1 ) [2025-01-02 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:43:06' and `end` < '2025-01-02 14:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:43:26] Production.INFO: count ==4582 [2025-01-02 14:43:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:43:06 - End Time 2025-01-02 14:43:06 [2025-01-02 14:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158909', 'tblTempUsageDetail_20' ) start [2025-01-02 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158909', 'tblTempUsageDetail_20' ) end [2025-01-02 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158909', 'tblTempVendorCDR_20' ) start [2025-01-02 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158909', 'tblTempVendorCDR_20' ) end [2025-01-02 14:43:28] Production.INFO: ProcessCDR(1,14158909,1,1,2) [2025-01-02 14:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158909', 'tblTempUsageDetail_20' ) start [2025-01-02 14:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158909', 'tblTempUsageDetail_20' ) end [2025-01-02 14:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:43:33] Production.INFO: ==15682== Releasing lock... [2025-01-02 14:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:43:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:44:05 [end_date_ymd] => 2025-01-02 14:44:05 [RateCDR] => 1 ) [2025-01-02 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:44:05' and `end` < '2025-01-02 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:44:28] Production.INFO: count ==4603 [2025-01-02 14:44:30] Production.ERROR: pbx CDR StartTime 2025-01-02 11:44:05 - End Time 2025-01-02 14:44:05 [2025-01-02 14:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158914', 'tblTempUsageDetail_20' ) start [2025-01-02 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158914', 'tblTempUsageDetail_20' ) end [2025-01-02 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158914', 'tblTempVendorCDR_20' ) start [2025-01-02 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158914', 'tblTempVendorCDR_20' ) end [2025-01-02 14:44:30] Production.INFO: ProcessCDR(1,14158914,1,1,2) [2025-01-02 14:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158914', 'tblTempUsageDetail_20' ) start [2025-01-02 14:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158914', 'tblTempUsageDetail_20' ) end [2025-01-02 14:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:44:35] Production.INFO: ==15762== Releasing lock... [2025-01-02 14:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:44:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:45:05 [end_date_ymd] => 2025-01-02 14:45:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:45:05' and `end` < '2025-01-02 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-01-02 14:45:31] Production.INFO: count ==4627 [2025-01-02 14:45:33] Production.ERROR: pbx CDR StartTime 2025-01-02 11:45:05 - End Time 2025-01-02 14:45:05 [2025-01-02 14:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158919', 'tblTempUsageDetail_20' ) start [2025-01-02 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158919', 'tblTempUsageDetail_20' ) end [2025-01-02 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158919', 'tblTempVendorCDR_20' ) start [2025-01-02 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158919', 'tblTempVendorCDR_20' ) end [2025-01-02 14:45:33] Production.INFO: ProcessCDR(1,14158919,1,1,2) [2025-01-02 14:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158919', 'tblTempUsageDetail_20' ) start [2025-01-02 14:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158919', 'tblTempUsageDetail_20' ) end [2025-01-02 14:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:45:37] Production.INFO: ==15836== Releasing lock... [2025-01-02 14:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:45:37] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:46:04 [end_date_ymd] => 2025-01-02 14:46:04 [RateCDR] => 1 ) [2025-01-02 14:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:46:04' and `end` < '2025-01-02 14:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:46:26] Production.INFO: count ==4626 [2025-01-02 14:46:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:46:04 - End Time 2025-01-02 14:46:04 [2025-01-02 14:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158924', 'tblTempUsageDetail_20' ) start [2025-01-02 14:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158924', 'tblTempUsageDetail_20' ) end [2025-01-02 14:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158924', 'tblTempVendorCDR_20' ) start [2025-01-02 14:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158924', 'tblTempVendorCDR_20' ) end [2025-01-02 14:46:28] Production.INFO: ProcessCDR(1,14158924,1,1,2) [2025-01-02 14:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158924', 'tblTempUsageDetail_20' ) start [2025-01-02 14:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158924', 'tblTempUsageDetail_20' ) end [2025-01-02 14:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:46:33] Production.INFO: ==15914== Releasing lock... [2025-01-02 14:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:46:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:47:05 [end_date_ymd] => 2025-01-02 14:47:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 11:47:05' and `end` < '2025-01-02 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-01-02 14:47:28] Production.INFO: count ==4646 [2025-01-02 14:47:30] Production.ERROR: pbx CDR StartTime 2025-01-02 11:47:05 - End Time 2025-01-02 14:47:05 [2025-01-02 14:47:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158929', 'tblTempUsageDetail_20' ) start [2025-01-02 14:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158929', 'tblTempUsageDetail_20' ) end [2025-01-02 14:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158929', 'tblTempVendorCDR_20' ) start [2025-01-02 14:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158929', 'tblTempVendorCDR_20' ) end [2025-01-02 14:47:30] Production.INFO: ProcessCDR(1,14158929,1,1,2) [2025-01-02 14:47:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158929', 'tblTempUsageDetail_20' ) start [2025-01-02 14:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158929', 'tblTempUsageDetail_20' ) end [2025-01-02 14:47:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:47:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:47:35] Production.INFO: ==15993== Releasing lock... [2025-01-02 14:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:47:35] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:48:05 [end_date_ymd] => 2025-01-02 14:48:05 [RateCDR] => 1 ) [2025-01-02 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:48:05' and `end` < '2025-01-02 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:48:26] Production.INFO: count ==4665 [2025-01-02 14:48:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:48:05 - End Time 2025-01-02 14:48:05 [2025-01-02 14:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158934', 'tblTempUsageDetail_20' ) start [2025-01-02 14:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158934', 'tblTempUsageDetail_20' ) end [2025-01-02 14:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158934', 'tblTempVendorCDR_20' ) start [2025-01-02 14:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158934', 'tblTempVendorCDR_20' ) end [2025-01-02 14:48:28] Production.INFO: ProcessCDR(1,14158934,1,1,2) [2025-01-02 14:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158934', 'tblTempUsageDetail_20' ) start [2025-01-02 14:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158934', 'tblTempUsageDetail_20' ) end [2025-01-02 14:48:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:48:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:48:33] Production.INFO: ==16070== Releasing lock... [2025-01-02 14:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:48:33] Production.INFO: 63 MB #Memory Used# [2025-01-02 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:49:05 [end_date_ymd] => 2025-01-02 14:49:05 [RateCDR] => 1 ) [2025-01-02 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:49:05' and `end` < '2025-01-02 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:49:25] Production.INFO: count ==4673 [2025-01-02 14:49:27] Production.ERROR: pbx CDR StartTime 2025-01-02 11:49:05 - End Time 2025-01-02 14:49:05 [2025-01-02 14:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158939', 'tblTempUsageDetail_20' ) start [2025-01-02 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158939', 'tblTempUsageDetail_20' ) end [2025-01-02 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158939', 'tblTempVendorCDR_20' ) start [2025-01-02 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158939', 'tblTempVendorCDR_20' ) end [2025-01-02 14:49:27] Production.INFO: ProcessCDR(1,14158939,1,1,2) [2025-01-02 14:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158939', 'tblTempUsageDetail_20' ) start [2025-01-02 14:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158939', 'tblTempUsageDetail_20' ) end [2025-01-02 14:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:49:31] Production.INFO: ==16184== Releasing lock... [2025-01-02 14:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:49:31] Production.INFO: 63 MB #Memory Used# [2025-01-02 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:50:06 [end_date_ymd] => 2025-01-02 14:50:06 [RateCDR] => 1 ) [2025-01-02 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:50:06' and `end` < '2025-01-02 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:50:33] Production.INFO: count ==4669 [2025-01-02 14:50:35] Production.ERROR: pbx CDR StartTime 2025-01-02 11:50:06 - End Time 2025-01-02 14:50:06 [2025-01-02 14:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158945', 'tblTempUsageDetail_20' ) start [2025-01-02 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158945', 'tblTempUsageDetail_20' ) end [2025-01-02 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158945', 'tblTempVendorCDR_20' ) start [2025-01-02 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158945', 'tblTempVendorCDR_20' ) end [2025-01-02 14:50:35] Production.INFO: ProcessCDR(1,14158945,1,1,2) [2025-01-02 14:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:50:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158945', 'tblTempUsageDetail_20' ) start [2025-01-02 14:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158945', 'tblTempUsageDetail_20' ) end [2025-01-02 14:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:50:40] Production.INFO: ==16261== Releasing lock... [2025-01-02 14:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:50:40] Production.INFO: 63 MB #Memory Used# [2025-01-02 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:51:04 [end_date_ymd] => 2025-01-02 14:51:04 [RateCDR] => 1 ) [2025-01-02 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:51:04' and `end` < '2025-01-02 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:51:25] Production.INFO: count ==4713 [2025-01-02 14:51:27] Production.ERROR: pbx CDR StartTime 2025-01-02 11:51:04 - End Time 2025-01-02 14:51:04 [2025-01-02 14:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158950', 'tblTempUsageDetail_20' ) start [2025-01-02 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158950', 'tblTempUsageDetail_20' ) end [2025-01-02 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158950', 'tblTempVendorCDR_20' ) start [2025-01-02 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158950', 'tblTempVendorCDR_20' ) end [2025-01-02 14:51:27] Production.INFO: ProcessCDR(1,14158950,1,1,2) [2025-01-02 14:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158950', 'tblTempUsageDetail_20' ) start [2025-01-02 14:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158950', 'tblTempUsageDetail_20' ) end [2025-01-02 14:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:51:32] Production.INFO: ==16337== Releasing lock... [2025-01-02 14:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:51:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:52:05 [end_date_ymd] => 2025-01-02 14:52:05 [RateCDR] => 1 ) [2025-01-02 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:52:05' and `end` < '2025-01-02 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:52:19] Production.INFO: count ==4712 [2025-01-02 14:52:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:52:05 - End Time 2025-01-02 14:52:05 [2025-01-02 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158955', 'tblTempUsageDetail_20' ) start [2025-01-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158955', 'tblTempUsageDetail_20' ) end [2025-01-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158955', 'tblTempVendorCDR_20' ) start [2025-01-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158955', 'tblTempVendorCDR_20' ) end [2025-01-02 14:52:21] Production.INFO: ProcessCDR(1,14158955,1,1,2) [2025-01-02 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158955', 'tblTempUsageDetail_20' ) start [2025-01-02 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158955', 'tblTempUsageDetail_20' ) end [2025-01-02 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:52:26] Production.INFO: ==16414== Releasing lock... [2025-01-02 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:52:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:53:04 [end_date_ymd] => 2025-01-02 14:53:04 [RateCDR] => 1 ) [2025-01-02 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:53:04' and `end` < '2025-01-02 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:53:28] Production.INFO: count ==4710 [2025-01-02 14:53:29] Production.ERROR: pbx CDR StartTime 2025-01-02 11:53:04 - End Time 2025-01-02 14:53:04 [2025-01-02 14:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158960', 'tblTempUsageDetail_20' ) start [2025-01-02 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158960', 'tblTempUsageDetail_20' ) end [2025-01-02 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158960', 'tblTempVendorCDR_20' ) start [2025-01-02 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158960', 'tblTempVendorCDR_20' ) end [2025-01-02 14:53:30] Production.INFO: ProcessCDR(1,14158960,1,1,2) [2025-01-02 14:53:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158960', 'tblTempUsageDetail_20' ) start [2025-01-02 14:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158960', 'tblTempUsageDetail_20' ) end [2025-01-02 14:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:53:34] Production.INFO: ==16489== Releasing lock... [2025-01-02 14:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:53:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:54:05 [end_date_ymd] => 2025-01-02 14:54:05 [RateCDR] => 1 ) [2025-01-02 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:54:05' and `end` < '2025-01-02 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:54:19] Production.INFO: count ==4710 [2025-01-02 14:54:21] Production.ERROR: pbx CDR StartTime 2025-01-02 11:54:05 - End Time 2025-01-02 14:54:05 [2025-01-02 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158965', 'tblTempUsageDetail_20' ) start [2025-01-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158965', 'tblTempUsageDetail_20' ) end [2025-01-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158965', 'tblTempVendorCDR_20' ) start [2025-01-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158965', 'tblTempVendorCDR_20' ) end [2025-01-02 14:54:21] Production.INFO: ProcessCDR(1,14158965,1,1,2) [2025-01-02 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158965', 'tblTempUsageDetail_20' ) start [2025-01-02 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158965', 'tblTempUsageDetail_20' ) end [2025-01-02 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:54:26] Production.INFO: ==16569== Releasing lock... [2025-01-02 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:54:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:55:06 [end_date_ymd] => 2025-01-02 14:55:06 [RateCDR] => 1 ) [2025-01-02 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:55:06' and `end` < '2025-01-02 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:55:22] Production.INFO: count ==4723 [2025-01-02 14:55:24] Production.ERROR: pbx CDR StartTime 2025-01-02 11:55:06 - End Time 2025-01-02 14:55:06 [2025-01-02 14:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158970', 'tblTempUsageDetail_20' ) start [2025-01-02 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158970', 'tblTempUsageDetail_20' ) end [2025-01-02 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158970', 'tblTempVendorCDR_20' ) start [2025-01-02 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158970', 'tblTempVendorCDR_20' ) end [2025-01-02 14:55:24] Production.INFO: ProcessCDR(1,14158970,1,1,2) [2025-01-02 14:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158970', 'tblTempUsageDetail_20' ) start [2025-01-02 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158970', 'tblTempUsageDetail_20' ) end [2025-01-02 14:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:55:29] Production.INFO: ==16646== Releasing lock... [2025-01-02 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:55:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:56:05 [end_date_ymd] => 2025-01-02 14:56:05 [RateCDR] => 1 ) [2025-01-02 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:56:05' and `end` < '2025-01-02 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:56:24] Production.INFO: count ==4730 [2025-01-02 14:56:26] Production.ERROR: pbx CDR StartTime 2025-01-02 11:56:05 - End Time 2025-01-02 14:56:05 [2025-01-02 14:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158975', 'tblTempUsageDetail_20' ) start [2025-01-02 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158975', 'tblTempUsageDetail_20' ) end [2025-01-02 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158975', 'tblTempVendorCDR_20' ) start [2025-01-02 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158975', 'tblTempVendorCDR_20' ) end [2025-01-02 14:56:27] Production.INFO: ProcessCDR(1,14158975,1,1,2) [2025-01-02 14:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158975', 'tblTempUsageDetail_20' ) start [2025-01-02 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158975', 'tblTempUsageDetail_20' ) end [2025-01-02 14:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:56:31] Production.INFO: ==16719== Releasing lock... [2025-01-02 14:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:56:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:57:04 [end_date_ymd] => 2025-01-02 14:57:04 [RateCDR] => 1 ) [2025-01-02 14:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:57:04' and `end` < '2025-01-02 14:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:57:27] Production.INFO: count ==4731 [2025-01-02 14:57:29] Production.ERROR: pbx CDR StartTime 2025-01-02 11:57:04 - End Time 2025-01-02 14:57:04 [2025-01-02 14:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158980', 'tblTempUsageDetail_20' ) start [2025-01-02 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158980', 'tblTempUsageDetail_20' ) end [2025-01-02 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158980', 'tblTempVendorCDR_20' ) start [2025-01-02 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158980', 'tblTempVendorCDR_20' ) end [2025-01-02 14:57:29] Production.INFO: ProcessCDR(1,14158980,1,1,2) [2025-01-02 14:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158980', 'tblTempUsageDetail_20' ) start [2025-01-02 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158980', 'tblTempUsageDetail_20' ) end [2025-01-02 14:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:57:34] Production.INFO: ==16795== Releasing lock... [2025-01-02 14:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:57:34] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:58:05 [end_date_ymd] => 2025-01-02 14:58:05 [RateCDR] => 1 ) [2025-01-02 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:58:05' and `end` < '2025-01-02 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:58:20] Production.INFO: count ==4716 [2025-01-02 14:58:22] Production.ERROR: pbx CDR StartTime 2025-01-02 11:58:05 - End Time 2025-01-02 14:58:05 [2025-01-02 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158985', 'tblTempUsageDetail_20' ) start [2025-01-02 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158985', 'tblTempUsageDetail_20' ) end [2025-01-02 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158985', 'tblTempVendorCDR_20' ) start [2025-01-02 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158985', 'tblTempVendorCDR_20' ) end [2025-01-02 14:58:22] Production.INFO: ProcessCDR(1,14158985,1,1,2) [2025-01-02 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158985', 'tblTempUsageDetail_20' ) start [2025-01-02 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158985', 'tblTempUsageDetail_20' ) end [2025-01-02 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:58:26] Production.INFO: ==16871== Releasing lock... [2025-01-02 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:58:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 11:59:04 [end_date_ymd] => 2025-01-02 14:59:04 [RateCDR] => 1 ) [2025-01-02 14:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 11:59:04' and `end` < '2025-01-02 14:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 14:59:26] Production.INFO: count ==4708 [2025-01-02 14:59:28] Production.ERROR: pbx CDR StartTime 2025-01-02 11:59:04 - End Time 2025-01-02 14:59:04 [2025-01-02 14:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158990', 'tblTempUsageDetail_20' ) start [2025-01-02 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158990', 'tblTempUsageDetail_20' ) end [2025-01-02 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158990', 'tblTempVendorCDR_20' ) start [2025-01-02 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158990', 'tblTempVendorCDR_20' ) end [2025-01-02 14:59:28] Production.INFO: ProcessCDR(1,14158990,1,1,2) [2025-01-02 14:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 14:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158990', 'tblTempUsageDetail_20' ) start [2025-01-02 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158990', 'tblTempUsageDetail_20' ) end [2025-01-02 14:59:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 14:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 14:59:32] Production.INFO: ==16947== Releasing lock... [2025-01-02 14:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 14:59:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:00:05 [end_date_ymd] => 2025-01-02 15:00:05 [RateCDR] => 1 ) [2025-01-02 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:00:05' and `end` < '2025-01-02 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:00:19] Production.INFO: count ==4691 [2025-01-02 15:00:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:00:05 - End Time 2025-01-02 15:00:05 [2025-01-02 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158996', 'tblTempUsageDetail_20' ) start [2025-01-02 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14158996', 'tblTempUsageDetail_20' ) end [2025-01-02 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158996', 'tblTempVendorCDR_20' ) start [2025-01-02 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14158996', 'tblTempVendorCDR_20' ) end [2025-01-02 15:00:21] Production.INFO: ProcessCDR(1,14158996,1,1,2) [2025-01-02 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14158996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14158996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14158996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14158996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158996', 'tblTempUsageDetail_20' ) start [2025-01-02 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14158996', 'tblTempUsageDetail_20' ) end [2025-01-02 15:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:00:26] Production.INFO: ==17045== Releasing lock... [2025-01-02 15:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:00:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:01:05 [end_date_ymd] => 2025-01-02 15:01:05 [RateCDR] => 1 ) [2025-01-02 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:01:05' and `end` < '2025-01-02 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:01:30] Production.INFO: count ==4686 [2025-01-02 15:01:32] Production.ERROR: pbx CDR StartTime 2025-01-02 12:01:05 - End Time 2025-01-02 15:01:05 [2025-01-02 15:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159001', 'tblTempUsageDetail_20' ) start [2025-01-02 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159001', 'tblTempUsageDetail_20' ) end [2025-01-02 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159001', 'tblTempVendorCDR_20' ) start [2025-01-02 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159001', 'tblTempVendorCDR_20' ) end [2025-01-02 15:01:32] Production.INFO: ProcessCDR(1,14159001,1,1,2) [2025-01-02 15:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159001', 'tblTempUsageDetail_20' ) start [2025-01-02 15:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159001', 'tblTempUsageDetail_20' ) end [2025-01-02 15:01:37] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:01:37] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:01:37] Production.INFO: ==17194== Releasing lock... [2025-01-02 15:01:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:01:37] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:02:05 [end_date_ymd] => 2025-01-02 15:02:05 [RateCDR] => 1 ) [2025-01-02 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:02:05' and `end` < '2025-01-02 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:02:27] Production.INFO: count ==4680 [2025-01-02 15:02:29] Production.ERROR: pbx CDR StartTime 2025-01-02 12:02:05 - End Time 2025-01-02 15:02:05 [2025-01-02 15:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159006', 'tblTempUsageDetail_20' ) start [2025-01-02 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159006', 'tblTempUsageDetail_20' ) end [2025-01-02 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159006', 'tblTempVendorCDR_20' ) start [2025-01-02 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159006', 'tblTempVendorCDR_20' ) end [2025-01-02 15:02:29] Production.INFO: ProcessCDR(1,14159006,1,1,2) [2025-01-02 15:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:02:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159006', 'tblTempUsageDetail_20' ) start [2025-01-02 15:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159006', 'tblTempUsageDetail_20' ) end [2025-01-02 15:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:02:34] Production.INFO: ==17319== Releasing lock... [2025-01-02 15:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:02:34] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:03:05 [end_date_ymd] => 2025-01-02 15:03:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:03:05' and `end` < '2025-01-02 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-01-02 15:03:25] Production.INFO: count ==4680 [2025-01-02 15:03:27] Production.ERROR: pbx CDR StartTime 2025-01-02 12:03:05 - End Time 2025-01-02 15:03:05 [2025-01-02 15:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159011', 'tblTempUsageDetail_20' ) start [2025-01-02 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159011', 'tblTempUsageDetail_20' ) end [2025-01-02 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159011', 'tblTempVendorCDR_20' ) start [2025-01-02 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159011', 'tblTempVendorCDR_20' ) end [2025-01-02 15:03:27] Production.INFO: ProcessCDR(1,14159011,1,1,2) [2025-01-02 15:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159011', 'tblTempUsageDetail_20' ) start [2025-01-02 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159011', 'tblTempUsageDetail_20' ) end [2025-01-02 15:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:03:32] Production.INFO: ==17407== Releasing lock... [2025-01-02 15:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:03:32] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:04:05 [end_date_ymd] => 2025-01-02 15:04:05 [RateCDR] => 1 ) [2025-01-02 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:04:05' and `end` < '2025-01-02 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:04:27] Production.INFO: count ==4673 [2025-01-02 15:04:29] Production.ERROR: pbx CDR StartTime 2025-01-02 12:04:05 - End Time 2025-01-02 15:04:05 [2025-01-02 15:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159016', 'tblTempUsageDetail_20' ) start [2025-01-02 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159016', 'tblTempUsageDetail_20' ) end [2025-01-02 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159016', 'tblTempVendorCDR_20' ) start [2025-01-02 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159016', 'tblTempVendorCDR_20' ) end [2025-01-02 15:04:29] Production.INFO: ProcessCDR(1,14159016,1,1,2) [2025-01-02 15:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159016', 'tblTempUsageDetail_20' ) start [2025-01-02 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159016', 'tblTempUsageDetail_20' ) end [2025-01-02 15:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:04:34] Production.INFO: ==17536== Releasing lock... [2025-01-02 15:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:04:34] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:05:05 [end_date_ymd] => 2025-01-02 15:05:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:05:05' and `end` < '2025-01-02 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-01-02 15:05:23] Production.INFO: count ==4660 [2025-01-02 15:05:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:05:05 - End Time 2025-01-02 15:05:05 [2025-01-02 15:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159021', 'tblTempUsageDetail_20' ) start [2025-01-02 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159021', 'tblTempUsageDetail_20' ) end [2025-01-02 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159021', 'tblTempVendorCDR_20' ) start [2025-01-02 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159021', 'tblTempVendorCDR_20' ) end [2025-01-02 15:05:25] Production.INFO: ProcessCDR(1,14159021,1,1,2) [2025-01-02 15:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159021', 'tblTempUsageDetail_20' ) start [2025-01-02 15:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159021', 'tblTempUsageDetail_20' ) end [2025-01-02 15:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:05:29] Production.INFO: ==17704== Releasing lock... [2025-01-02 15:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:05:29] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:06:05 [end_date_ymd] => 2025-01-02 15:06:05 [RateCDR] => 1 ) [2025-01-02 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:06:05' and `end` < '2025-01-02 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:06:18] Production.INFO: count ==4663 [2025-01-02 15:06:20] Production.ERROR: pbx CDR StartTime 2025-01-02 12:06:05 - End Time 2025-01-02 15:06:05 [2025-01-02 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159026', 'tblTempUsageDetail_20' ) start [2025-01-02 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159026', 'tblTempUsageDetail_20' ) end [2025-01-02 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159026', 'tblTempVendorCDR_20' ) start [2025-01-02 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159026', 'tblTempVendorCDR_20' ) end [2025-01-02 15:06:20] Production.INFO: ProcessCDR(1,14159026,1,1,2) [2025-01-02 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159026', 'tblTempUsageDetail_20' ) start [2025-01-02 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159026', 'tblTempUsageDetail_20' ) end [2025-01-02 15:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:06:25] Production.INFO: ==17788== Releasing lock... [2025-01-02 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:06:25] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:07:05 [end_date_ymd] => 2025-01-02 15:07:05 [RateCDR] => 1 ) [2025-01-02 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:07:05' and `end` < '2025-01-02 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:07:23] Production.INFO: count ==4646 [2025-01-02 15:07:25] Production.ERROR: pbx CDR StartTime 2025-01-02 12:07:05 - End Time 2025-01-02 15:07:05 [2025-01-02 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159031', 'tblTempUsageDetail_20' ) start [2025-01-02 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159031', 'tblTempUsageDetail_20' ) end [2025-01-02 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159031', 'tblTempVendorCDR_20' ) start [2025-01-02 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159031', 'tblTempVendorCDR_20' ) end [2025-01-02 15:07:25] Production.INFO: ProcessCDR(1,14159031,1,1,2) [2025-01-02 15:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159031', 'tblTempUsageDetail_20' ) start [2025-01-02 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159031', 'tblTempUsageDetail_20' ) end [2025-01-02 15:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:07:29] Production.INFO: ==17880== Releasing lock... [2025-01-02 15:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:07:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:08:04 [end_date_ymd] => 2025-01-02 15:08:04 [RateCDR] => 1 ) [2025-01-02 15:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:08:04' and `end` < '2025-01-02 15:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:08:23] Production.INFO: count ==4676 [2025-01-02 15:08:25] Production.ERROR: pbx CDR StartTime 2025-01-02 12:08:04 - End Time 2025-01-02 15:08:04 [2025-01-02 15:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159036', 'tblTempUsageDetail_20' ) start [2025-01-02 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159036', 'tblTempUsageDetail_20' ) end [2025-01-02 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159036', 'tblTempVendorCDR_20' ) start [2025-01-02 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159036', 'tblTempVendorCDR_20' ) end [2025-01-02 15:08:25] Production.INFO: ProcessCDR(1,14159036,1,1,2) [2025-01-02 15:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159036', 'tblTempUsageDetail_20' ) start [2025-01-02 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159036', 'tblTempUsageDetail_20' ) end [2025-01-02 15:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:08:30] Production.INFO: ==18044== Releasing lock... [2025-01-02 15:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:08:30] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:09:05 [end_date_ymd] => 2025-01-02 15:09:05 [RateCDR] => 1 ) [2025-01-02 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:09:05' and `end` < '2025-01-02 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:09:29] Production.INFO: count ==4687 [2025-01-02 15:09:31] Production.ERROR: pbx CDR StartTime 2025-01-02 12:09:05 - End Time 2025-01-02 15:09:05 [2025-01-02 15:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159041', 'tblTempUsageDetail_20' ) start [2025-01-02 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159041', 'tblTempUsageDetail_20' ) end [2025-01-02 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159041', 'tblTempVendorCDR_20' ) start [2025-01-02 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159041', 'tblTempVendorCDR_20' ) end [2025-01-02 15:09:31] Production.INFO: ProcessCDR(1,14159041,1,1,2) [2025-01-02 15:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159041', 'tblTempUsageDetail_20' ) start [2025-01-02 15:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159041', 'tblTempUsageDetail_20' ) end [2025-01-02 15:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:09:35] Production.INFO: ==18133== Releasing lock... [2025-01-02 15:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:09:35] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:10:06 [end_date_ymd] => 2025-01-02 15:10:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:10:06' and `end` < '2025-01-02 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-01-02 15:10:38] Production.INFO: count ==4683 [2025-01-02 15:10:40] Production.ERROR: pbx CDR StartTime 2025-01-02 12:10:06 - End Time 2025-01-02 15:10:06 [2025-01-02 15:10:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159047', 'tblTempUsageDetail_20' ) start [2025-01-02 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159047', 'tblTempUsageDetail_20' ) end [2025-01-02 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159047', 'tblTempVendorCDR_20' ) start [2025-01-02 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159047', 'tblTempVendorCDR_20' ) end [2025-01-02 15:10:40] Production.INFO: ProcessCDR(1,14159047,1,1,2) [2025-01-02 15:10:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:10:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:10:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:10:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159047', 'tblTempUsageDetail_20' ) start [2025-01-02 15:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159047', 'tblTempUsageDetail_20' ) end [2025-01-02 15:10:45] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:10:45] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:10:45] Production.INFO: ==18219== Releasing lock... [2025-01-02 15:10:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:10:45] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:11:04 [end_date_ymd] => 2025-01-02 15:11:04 [RateCDR] => 1 ) [2025-01-02 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:11:04' and `end` < '2025-01-02 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:11:26] Production.INFO: count ==4695 [2025-01-02 15:11:28] Production.ERROR: pbx CDR StartTime 2025-01-02 12:11:04 - End Time 2025-01-02 15:11:04 [2025-01-02 15:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159051', 'tblTempUsageDetail_20' ) start [2025-01-02 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159051', 'tblTempUsageDetail_20' ) end [2025-01-02 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159051', 'tblTempVendorCDR_20' ) start [2025-01-02 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159051', 'tblTempVendorCDR_20' ) end [2025-01-02 15:11:28] Production.INFO: ProcessCDR(1,14159051,1,1,2) [2025-01-02 15:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159051', 'tblTempUsageDetail_20' ) start [2025-01-02 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159051', 'tblTempUsageDetail_20' ) end [2025-01-02 15:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:11:33] Production.INFO: ==18314== Releasing lock... [2025-01-02 15:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:11:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:12:05 [end_date_ymd] => 2025-01-02 15:12:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:12:05' and `end` < '2025-01-02 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:12:19] Production.INFO: count ==4699 [2025-01-02 15:12:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:12:05 - End Time 2025-01-02 15:12:05 [2025-01-02 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159057', 'tblTempUsageDetail_20' ) start [2025-01-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159057', 'tblTempUsageDetail_20' ) end [2025-01-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159057', 'tblTempVendorCDR_20' ) start [2025-01-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159057', 'tblTempVendorCDR_20' ) end [2025-01-02 15:12:21] Production.INFO: ProcessCDR(1,14159057,1,1,2) [2025-01-02 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159057', 'tblTempUsageDetail_20' ) start [2025-01-02 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159057', 'tblTempUsageDetail_20' ) end [2025-01-02 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:12:26] Production.INFO: ==18482== Releasing lock... [2025-01-02 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:12:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:13:05 [end_date_ymd] => 2025-01-02 15:13:05 [RateCDR] => 1 ) [2025-01-02 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:13:05' and `end` < '2025-01-02 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:13:29] Production.INFO: count ==4702 [2025-01-02 15:13:31] Production.ERROR: pbx CDR StartTime 2025-01-02 12:13:05 - End Time 2025-01-02 15:13:05 [2025-01-02 15:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159062', 'tblTempUsageDetail_20' ) start [2025-01-02 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159062', 'tblTempUsageDetail_20' ) end [2025-01-02 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159062', 'tblTempVendorCDR_20' ) start [2025-01-02 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159062', 'tblTempVendorCDR_20' ) end [2025-01-02 15:13:31] Production.INFO: ProcessCDR(1,14159062,1,1,2) [2025-01-02 15:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159062', 'tblTempUsageDetail_20' ) start [2025-01-02 15:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159062', 'tblTempUsageDetail_20' ) end [2025-01-02 15:13:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:13:36] Production.INFO: ==18562== Releasing lock... [2025-01-02 15:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:13:36] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:14:05 [end_date_ymd] => 2025-01-02 15:14:05 [RateCDR] => 1 ) [2025-01-02 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:14:05' and `end` < '2025-01-02 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:14:25] Production.INFO: count ==4693 [2025-01-02 15:14:27] Production.ERROR: pbx CDR StartTime 2025-01-02 12:14:05 - End Time 2025-01-02 15:14:05 [2025-01-02 15:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159067', 'tblTempUsageDetail_20' ) start [2025-01-02 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159067', 'tblTempUsageDetail_20' ) end [2025-01-02 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159067', 'tblTempVendorCDR_20' ) start [2025-01-02 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159067', 'tblTempVendorCDR_20' ) end [2025-01-02 15:14:27] Production.INFO: ProcessCDR(1,14159067,1,1,2) [2025-01-02 15:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159067', 'tblTempUsageDetail_20' ) start [2025-01-02 15:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159067', 'tblTempUsageDetail_20' ) end [2025-01-02 15:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:14:32] Production.INFO: ==18657== Releasing lock... [2025-01-02 15:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:14:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:15:04 [end_date_ymd] => 2025-01-02 15:15:04 [RateCDR] => 1 ) [2025-01-02 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:15:04' and `end` < '2025-01-02 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:15:33] Production.INFO: count ==4693 [2025-01-02 15:15:34] Production.ERROR: pbx CDR StartTime 2025-01-02 12:15:04 - End Time 2025-01-02 15:15:04 [2025-01-02 15:15:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159072', 'tblTempUsageDetail_20' ) start [2025-01-02 15:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159072', 'tblTempUsageDetail_20' ) end [2025-01-02 15:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159072', 'tblTempVendorCDR_20' ) start [2025-01-02 15:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159072', 'tblTempVendorCDR_20' ) end [2025-01-02 15:15:35] Production.INFO: ProcessCDR(1,14159072,1,1,2) [2025-01-02 15:15:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:15:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:15:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:15:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159072', 'tblTempUsageDetail_20' ) start [2025-01-02 15:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159072', 'tblTempUsageDetail_20' ) end [2025-01-02 15:15:39] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:15:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:15:40] Production.INFO: ==18821== Releasing lock... [2025-01-02 15:15:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:15:40] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:16:05 [end_date_ymd] => 2025-01-02 15:16:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:16:05' and `end` < '2025-01-02 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-01-02 15:16:27] Production.INFO: count ==4705 [2025-01-02 15:16:29] Production.ERROR: pbx CDR StartTime 2025-01-02 12:16:05 - End Time 2025-01-02 15:16:05 [2025-01-02 15:16:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159077', 'tblTempUsageDetail_20' ) start [2025-01-02 15:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159077', 'tblTempUsageDetail_20' ) end [2025-01-02 15:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159077', 'tblTempVendorCDR_20' ) start [2025-01-02 15:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159077', 'tblTempVendorCDR_20' ) end [2025-01-02 15:16:29] Production.INFO: ProcessCDR(1,14159077,1,1,2) [2025-01-02 15:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159077', 'tblTempUsageDetail_20' ) start [2025-01-02 15:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159077', 'tblTempUsageDetail_20' ) end [2025-01-02 15:16:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:16:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:16:34] Production.INFO: ==18915== Releasing lock... [2025-01-02 15:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:16:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:17:05 [end_date_ymd] => 2025-01-02 15:17:05 [RateCDR] => 1 ) [2025-01-02 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:17:05' and `end` < '2025-01-02 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:17:26] Production.INFO: count ==4728 [2025-01-02 15:17:28] Production.ERROR: pbx CDR StartTime 2025-01-02 12:17:05 - End Time 2025-01-02 15:17:05 [2025-01-02 15:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159082', 'tblTempUsageDetail_20' ) start [2025-01-02 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159082', 'tblTempUsageDetail_20' ) end [2025-01-02 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159082', 'tblTempVendorCDR_20' ) start [2025-01-02 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159082', 'tblTempVendorCDR_20' ) end [2025-01-02 15:17:28] Production.INFO: ProcessCDR(1,14159082,1,1,2) [2025-01-02 15:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159082', 'tblTempUsageDetail_20' ) start [2025-01-02 15:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159082', 'tblTempUsageDetail_20' ) end [2025-01-02 15:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:17:33] Production.INFO: ==19004== Releasing lock... [2025-01-02 15:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:17:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:18:05 [end_date_ymd] => 2025-01-02 15:18:05 [RateCDR] => 1 ) [2025-01-02 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:18:05' and `end` < '2025-01-02 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:18:33] Production.INFO: count ==4733 [2025-01-02 15:18:35] Production.ERROR: pbx CDR StartTime 2025-01-02 12:18:05 - End Time 2025-01-02 15:18:05 [2025-01-02 15:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159087', 'tblTempUsageDetail_20' ) start [2025-01-02 15:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159087', 'tblTempUsageDetail_20' ) end [2025-01-02 15:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159087', 'tblTempVendorCDR_20' ) start [2025-01-02 15:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159087', 'tblTempVendorCDR_20' ) end [2025-01-02 15:18:35] Production.INFO: ProcessCDR(1,14159087,1,1,2) [2025-01-02 15:18:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:18:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:18:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:18:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159087', 'tblTempUsageDetail_20' ) start [2025-01-02 15:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159087', 'tblTempUsageDetail_20' ) end [2025-01-02 15:18:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:18:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:18:41] Production.INFO: ==19087== Releasing lock... [2025-01-02 15:18:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:18:41] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:19:05 [end_date_ymd] => 2025-01-02 15:19:05 [RateCDR] => 1 ) [2025-01-02 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:19:05' and `end` < '2025-01-02 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:19:30] Production.INFO: count ==4723 [2025-01-02 15:19:32] Production.ERROR: pbx CDR StartTime 2025-01-02 12:19:05 - End Time 2025-01-02 15:19:05 [2025-01-02 15:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159092', 'tblTempUsageDetail_20' ) start [2025-01-02 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159092', 'tblTempUsageDetail_20' ) end [2025-01-02 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159092', 'tblTempVendorCDR_20' ) start [2025-01-02 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159092', 'tblTempVendorCDR_20' ) end [2025-01-02 15:19:32] Production.INFO: ProcessCDR(1,14159092,1,1,2) [2025-01-02 15:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159092', 'tblTempUsageDetail_20' ) start [2025-01-02 15:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159092', 'tblTempUsageDetail_20' ) end [2025-01-02 15:19:37] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:19:37] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:19:37] Production.INFO: ==19177== Releasing lock... [2025-01-02 15:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:19:37] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:20:05 [end_date_ymd] => 2025-01-02 15:20:05 [RateCDR] => 1 ) [2025-01-02 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:20:05' and `end` < '2025-01-02 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:20:28] Production.INFO: count ==4721 [2025-01-02 15:20:30] Production.ERROR: pbx CDR StartTime 2025-01-02 12:20:05 - End Time 2025-01-02 15:20:05 [2025-01-02 15:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159097', 'tblTempUsageDetail_20' ) start [2025-01-02 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159097', 'tblTempUsageDetail_20' ) end [2025-01-02 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159097', 'tblTempVendorCDR_20' ) start [2025-01-02 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159097', 'tblTempVendorCDR_20' ) end [2025-01-02 15:20:30] Production.INFO: ProcessCDR(1,14159097,1,1,2) [2025-01-02 15:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159097', 'tblTempUsageDetail_20' ) start [2025-01-02 15:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159097', 'tblTempUsageDetail_20' ) end [2025-01-02 15:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:20:35] Production.INFO: ==19301== Releasing lock... [2025-01-02 15:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:20:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:21:05 [end_date_ymd] => 2025-01-02 15:21:05 [RateCDR] => 1 ) [2025-01-02 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:21:05' and `end` < '2025-01-02 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:21:23] Production.INFO: count ==4723 [2025-01-02 15:21:25] Production.ERROR: pbx CDR StartTime 2025-01-02 12:21:05 - End Time 2025-01-02 15:21:05 [2025-01-02 15:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159103', 'tblTempUsageDetail_20' ) start [2025-01-02 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159103', 'tblTempUsageDetail_20' ) end [2025-01-02 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159103', 'tblTempVendorCDR_20' ) start [2025-01-02 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159103', 'tblTempVendorCDR_20' ) end [2025-01-02 15:21:25] Production.INFO: ProcessCDR(1,14159103,1,1,2) [2025-01-02 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159103', 'tblTempUsageDetail_20' ) start [2025-01-02 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159103', 'tblTempUsageDetail_20' ) end [2025-01-02 15:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:21:30] Production.INFO: ==19393== Releasing lock... [2025-01-02 15:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:21:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:22:05 [end_date_ymd] => 2025-01-02 15:22:05 [RateCDR] => 1 ) [2025-01-02 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:22:05' and `end` < '2025-01-02 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:22:19] Production.INFO: count ==4704 [2025-01-02 15:22:20] Production.ERROR: pbx CDR StartTime 2025-01-02 12:22:05 - End Time 2025-01-02 15:22:05 [2025-01-02 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159108', 'tblTempUsageDetail_20' ) start [2025-01-02 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159108', 'tblTempUsageDetail_20' ) end [2025-01-02 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159108', 'tblTempVendorCDR_20' ) start [2025-01-02 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159108', 'tblTempVendorCDR_20' ) end [2025-01-02 15:22:20] Production.INFO: ProcessCDR(1,14159108,1,1,2) [2025-01-02 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159108', 'tblTempUsageDetail_20' ) start [2025-01-02 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159108', 'tblTempUsageDetail_20' ) end [2025-01-02 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:22:25] Production.INFO: ==19480== Releasing lock... [2025-01-02 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:22:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:23:05 [end_date_ymd] => 2025-01-02 15:23:05 [RateCDR] => 1 ) [2025-01-02 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:23:05' and `end` < '2025-01-02 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:23:22] Production.INFO: count ==4698 [2025-01-02 15:23:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:23:05 - End Time 2025-01-02 15:23:05 [2025-01-02 15:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159113', 'tblTempUsageDetail_20' ) start [2025-01-02 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159113', 'tblTempUsageDetail_20' ) end [2025-01-02 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159113', 'tblTempVendorCDR_20' ) start [2025-01-02 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159113', 'tblTempVendorCDR_20' ) end [2025-01-02 15:23:24] Production.INFO: ProcessCDR(1,14159113,1,1,2) [2025-01-02 15:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159113', 'tblTempUsageDetail_20' ) start [2025-01-02 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159113', 'tblTempUsageDetail_20' ) end [2025-01-02 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:23:27] Production.INFO: ==19567== Releasing lock... [2025-01-02 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:23:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:24:04 [end_date_ymd] => 2025-01-02 15:24:04 [RateCDR] => 1 ) [2025-01-02 15:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:24:04' and `end` < '2025-01-02 15:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:24:22] Production.INFO: count ==4695 [2025-01-02 15:24:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:24:04 - End Time 2025-01-02 15:24:04 [2025-01-02 15:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159118', 'tblTempUsageDetail_20' ) start [2025-01-02 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159118', 'tblTempUsageDetail_20' ) end [2025-01-02 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159118', 'tblTempVendorCDR_20' ) start [2025-01-02 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159118', 'tblTempVendorCDR_20' ) end [2025-01-02 15:24:24] Production.INFO: ProcessCDR(1,14159118,1,1,2) [2025-01-02 15:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159118', 'tblTempUsageDetail_20' ) start [2025-01-02 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159118', 'tblTempUsageDetail_20' ) end [2025-01-02 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:24:29] Production.INFO: ==19657== Releasing lock... [2025-01-02 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:24:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:25:05 [end_date_ymd] => 2025-01-02 15:25:05 [RateCDR] => 1 ) [2025-01-02 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:25:05' and `end` < '2025-01-02 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:25:20] Production.INFO: count ==4683 [2025-01-02 15:25:22] Production.ERROR: pbx CDR StartTime 2025-01-02 12:25:05 - End Time 2025-01-02 15:25:05 [2025-01-02 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159123', 'tblTempUsageDetail_20' ) start [2025-01-02 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159123', 'tblTempUsageDetail_20' ) end [2025-01-02 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159123', 'tblTempVendorCDR_20' ) start [2025-01-02 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159123', 'tblTempVendorCDR_20' ) end [2025-01-02 15:25:22] Production.INFO: ProcessCDR(1,14159123,1,1,2) [2025-01-02 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159123', 'tblTempUsageDetail_20' ) start [2025-01-02 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159123', 'tblTempUsageDetail_20' ) end [2025-01-02 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:25:26] Production.INFO: ==19736== Releasing lock... [2025-01-02 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:25:26] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:26:05 [end_date_ymd] => 2025-01-02 15:26:05 [RateCDR] => 1 ) [2025-01-02 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:26:05' and `end` < '2025-01-02 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:26:22] Production.INFO: count ==4669 [2025-01-02 15:26:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:26:05 - End Time 2025-01-02 15:26:05 [2025-01-02 15:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159128', 'tblTempUsageDetail_20' ) start [2025-01-02 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159128', 'tblTempUsageDetail_20' ) end [2025-01-02 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159128', 'tblTempVendorCDR_20' ) start [2025-01-02 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159128', 'tblTempVendorCDR_20' ) end [2025-01-02 15:26:24] Production.INFO: ProcessCDR(1,14159128,1,1,2) [2025-01-02 15:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159128', 'tblTempUsageDetail_20' ) start [2025-01-02 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159128', 'tblTempUsageDetail_20' ) end [2025-01-02 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:26:29] Production.INFO: ==19809== Releasing lock... [2025-01-02 15:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:26:29] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:27:04 [end_date_ymd] => 2025-01-02 15:27:04 [RateCDR] => 1 ) [2025-01-02 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:27:04' and `end` < '2025-01-02 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:27:20] Production.INFO: count ==4638 [2025-01-02 15:27:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:27:04 - End Time 2025-01-02 15:27:04 [2025-01-02 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159133', 'tblTempUsageDetail_20' ) start [2025-01-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159133', 'tblTempUsageDetail_20' ) end [2025-01-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159133', 'tblTempVendorCDR_20' ) start [2025-01-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159133', 'tblTempVendorCDR_20' ) end [2025-01-02 15:27:21] Production.INFO: ProcessCDR(1,14159133,1,1,2) [2025-01-02 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159133', 'tblTempUsageDetail_20' ) start [2025-01-02 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159133', 'tblTempUsageDetail_20' ) end [2025-01-02 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:27:26] Production.INFO: ==19883== Releasing lock... [2025-01-02 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:27:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:28:05 [end_date_ymd] => 2025-01-02 15:28:05 [RateCDR] => 1 ) [2025-01-02 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:28:05' and `end` < '2025-01-02 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:28:25] Production.INFO: count ==4633 [2025-01-02 15:28:27] Production.ERROR: pbx CDR StartTime 2025-01-02 12:28:05 - End Time 2025-01-02 15:28:05 [2025-01-02 15:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159138', 'tblTempUsageDetail_20' ) start [2025-01-02 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159138', 'tblTempUsageDetail_20' ) end [2025-01-02 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159138', 'tblTempVendorCDR_20' ) start [2025-01-02 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159138', 'tblTempVendorCDR_20' ) end [2025-01-02 15:28:27] Production.INFO: ProcessCDR(1,14159138,1,1,2) [2025-01-02 15:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159138', 'tblTempUsageDetail_20' ) start [2025-01-02 15:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159138', 'tblTempUsageDetail_20' ) end [2025-01-02 15:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:28:32] Production.INFO: ==19956== Releasing lock... [2025-01-02 15:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:28:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:29:05 [end_date_ymd] => 2025-01-02 15:29:05 [RateCDR] => 1 ) [2025-01-02 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:29:05' and `end` < '2025-01-02 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:29:28] Production.INFO: count ==4630 [2025-01-02 15:29:30] Production.ERROR: pbx CDR StartTime 2025-01-02 12:29:05 - End Time 2025-01-02 15:29:05 [2025-01-02 15:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159143', 'tblTempUsageDetail_20' ) start [2025-01-02 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159143', 'tblTempUsageDetail_20' ) end [2025-01-02 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159143', 'tblTempVendorCDR_20' ) start [2025-01-02 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159143', 'tblTempVendorCDR_20' ) end [2025-01-02 15:29:30] Production.INFO: ProcessCDR(1,14159143,1,1,2) [2025-01-02 15:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159143', 'tblTempUsageDetail_20' ) start [2025-01-02 15:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159143', 'tblTempUsageDetail_20' ) end [2025-01-02 15:29:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:29:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:29:34] Production.INFO: ==20026== Releasing lock... [2025-01-02 15:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:29:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:30:06 [end_date_ymd] => 2025-01-02 15:30:06 [RateCDR] => 1 ) [2025-01-02 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:30:06' and `end` < '2025-01-02 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:30:29] Production.INFO: count ==4641 [2025-01-02 15:30:31] Production.ERROR: pbx CDR StartTime 2025-01-02 12:30:06 - End Time 2025-01-02 15:30:06 [2025-01-02 15:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159149', 'tblTempUsageDetail_20' ) start [2025-01-02 15:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159149', 'tblTempUsageDetail_20' ) end [2025-01-02 15:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159149', 'tblTempVendorCDR_20' ) start [2025-01-02 15:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159149', 'tblTempVendorCDR_20' ) end [2025-01-02 15:30:31] Production.INFO: ProcessCDR(1,14159149,1,1,2) [2025-01-02 15:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159149', 'tblTempUsageDetail_20' ) start [2025-01-02 15:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159149', 'tblTempUsageDetail_20' ) end [2025-01-02 15:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:30:36] Production.INFO: ==20101== Releasing lock... [2025-01-02 15:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:30:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:31:05 [end_date_ymd] => 2025-01-02 15:31:05 [RateCDR] => 1 ) [2025-01-02 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:31:05' and `end` < '2025-01-02 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:31:26] Production.INFO: count ==4671 [2025-01-02 15:31:28] Production.ERROR: pbx CDR StartTime 2025-01-02 12:31:05 - End Time 2025-01-02 15:31:05 [2025-01-02 15:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159154', 'tblTempUsageDetail_20' ) start [2025-01-02 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159154', 'tblTempUsageDetail_20' ) end [2025-01-02 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159154', 'tblTempVendorCDR_20' ) start [2025-01-02 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159154', 'tblTempVendorCDR_20' ) end [2025-01-02 15:31:28] Production.INFO: ProcessCDR(1,14159154,1,1,2) [2025-01-02 15:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159154', 'tblTempUsageDetail_20' ) start [2025-01-02 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159154', 'tblTempUsageDetail_20' ) end [2025-01-02 15:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:31:33] Production.INFO: ==20177== Releasing lock... [2025-01-02 15:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:31:33] Production.INFO: 63 MB #Memory Used# [2025-01-02 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:32:05 [end_date_ymd] => 2025-01-02 15:32:05 [RateCDR] => 1 ) [2025-01-02 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:32:05' and `end` < '2025-01-02 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:32:39] Production.INFO: count ==4712 [2025-01-02 15:32:40] Production.ERROR: pbx CDR StartTime 2025-01-02 12:32:05 - End Time 2025-01-02 15:32:05 [2025-01-02 15:32:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159159', 'tblTempUsageDetail_20' ) start [2025-01-02 15:32:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159159', 'tblTempUsageDetail_20' ) end [2025-01-02 15:32:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159159', 'tblTempVendorCDR_20' ) start [2025-01-02 15:32:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159159', 'tblTempVendorCDR_20' ) end [2025-01-02 15:32:41] Production.INFO: ProcessCDR(1,14159159,1,1,2) [2025-01-02 15:32:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:32:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:32:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:32:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:32:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159159', 'tblTempUsageDetail_20' ) start [2025-01-02 15:32:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159159', 'tblTempUsageDetail_20' ) end [2025-01-02 15:32:46] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:32:46] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:32:46] Production.INFO: ==20253== Releasing lock... [2025-01-02 15:32:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:32:46] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:33:05 [end_date_ymd] => 2025-01-02 15:33:05 [RateCDR] => 1 ) [2025-01-02 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:33:05' and `end` < '2025-01-02 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:33:28] Production.INFO: count ==4701 [2025-01-02 15:33:29] Production.ERROR: pbx CDR StartTime 2025-01-02 12:33:05 - End Time 2025-01-02 15:33:05 [2025-01-02 15:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159164', 'tblTempUsageDetail_20' ) start [2025-01-02 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159164', 'tblTempUsageDetail_20' ) end [2025-01-02 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159164', 'tblTempVendorCDR_20' ) start [2025-01-02 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159164', 'tblTempVendorCDR_20' ) end [2025-01-02 15:33:30] Production.INFO: ProcessCDR(1,14159164,1,1,2) [2025-01-02 15:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159164', 'tblTempUsageDetail_20' ) start [2025-01-02 15:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159164', 'tblTempUsageDetail_20' ) end [2025-01-02 15:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:33:34] Production.INFO: ==20336== Releasing lock... [2025-01-02 15:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:33:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:34:05 [end_date_ymd] => 2025-01-02 15:34:05 [RateCDR] => 1 ) [2025-01-02 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:34:05' and `end` < '2025-01-02 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:34:34] Production.INFO: count ==4707 [2025-01-02 15:34:36] Production.ERROR: pbx CDR StartTime 2025-01-02 12:34:05 - End Time 2025-01-02 15:34:05 [2025-01-02 15:34:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159169', 'tblTempUsageDetail_20' ) start [2025-01-02 15:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159169', 'tblTempUsageDetail_20' ) end [2025-01-02 15:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159169', 'tblTempVendorCDR_20' ) start [2025-01-02 15:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159169', 'tblTempVendorCDR_20' ) end [2025-01-02 15:34:36] Production.INFO: ProcessCDR(1,14159169,1,1,2) [2025-01-02 15:34:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:34:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:34:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:34:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:34:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159169', 'tblTempUsageDetail_20' ) start [2025-01-02 15:34:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159169', 'tblTempUsageDetail_20' ) end [2025-01-02 15:34:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:34:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:34:41] Production.INFO: ==20408== Releasing lock... [2025-01-02 15:34:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:34:41] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:35:04 [end_date_ymd] => 2025-01-02 15:35:04 [RateCDR] => 1 ) [2025-01-02 15:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:35:04' and `end` < '2025-01-02 15:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:35:27] Production.INFO: count ==4735 [2025-01-02 15:35:29] Production.ERROR: pbx CDR StartTime 2025-01-02 12:35:04 - End Time 2025-01-02 15:35:04 [2025-01-02 15:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159174', 'tblTempUsageDetail_20' ) start [2025-01-02 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159174', 'tblTempUsageDetail_20' ) end [2025-01-02 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159174', 'tblTempVendorCDR_20' ) start [2025-01-02 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159174', 'tblTempVendorCDR_20' ) end [2025-01-02 15:35:30] Production.INFO: ProcessCDR(1,14159174,1,1,2) [2025-01-02 15:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159174', 'tblTempUsageDetail_20' ) start [2025-01-02 15:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159174', 'tblTempUsageDetail_20' ) end [2025-01-02 15:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:35:34] Production.INFO: ==20530== Releasing lock... [2025-01-02 15:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:35:34] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:36:05 [end_date_ymd] => 2025-01-02 15:36:05 [RateCDR] => 1 ) [2025-01-02 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:36:05' and `end` < '2025-01-02 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:36:26] Production.INFO: count ==4727 [2025-01-02 15:36:28] Production.ERROR: pbx CDR StartTime 2025-01-02 12:36:05 - End Time 2025-01-02 15:36:05 [2025-01-02 15:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159179', 'tblTempUsageDetail_20' ) start [2025-01-02 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159179', 'tblTempUsageDetail_20' ) end [2025-01-02 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159179', 'tblTempVendorCDR_20' ) start [2025-01-02 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159179', 'tblTempVendorCDR_20' ) end [2025-01-02 15:36:28] Production.INFO: ProcessCDR(1,14159179,1,1,2) [2025-01-02 15:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159179', 'tblTempUsageDetail_20' ) start [2025-01-02 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159179', 'tblTempUsageDetail_20' ) end [2025-01-02 15:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:36:32] Production.INFO: ==20611== Releasing lock... [2025-01-02 15:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:36:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:37:04 [end_date_ymd] => 2025-01-02 15:37:04 [RateCDR] => 1 ) [2025-01-02 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:37:04' and `end` < '2025-01-02 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:37:29] Production.INFO: count ==4734 [2025-01-02 15:37:31] Production.ERROR: pbx CDR StartTime 2025-01-02 12:37:04 - End Time 2025-01-02 15:37:04 [2025-01-02 15:37:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159184', 'tblTempUsageDetail_20' ) start [2025-01-02 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159184', 'tblTempUsageDetail_20' ) end [2025-01-02 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159184', 'tblTempVendorCDR_20' ) start [2025-01-02 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159184', 'tblTempVendorCDR_20' ) end [2025-01-02 15:37:31] Production.INFO: ProcessCDR(1,14159184,1,1,2) [2025-01-02 15:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:37:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:37:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:37:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159184', 'tblTempUsageDetail_20' ) start [2025-01-02 15:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159184', 'tblTempUsageDetail_20' ) end [2025-01-02 15:37:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:37:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:37:36] Production.INFO: ==20687== Releasing lock... [2025-01-02 15:37:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:37:36] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:38:05 [end_date_ymd] => 2025-01-02 15:38:05 [RateCDR] => 1 ) [2025-01-02 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:38:05' and `end` < '2025-01-02 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:38:36] Production.INFO: count ==4723 [2025-01-02 15:38:38] Production.ERROR: pbx CDR StartTime 2025-01-02 12:38:05 - End Time 2025-01-02 15:38:05 [2025-01-02 15:38:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159189', 'tblTempUsageDetail_20' ) start [2025-01-02 15:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159189', 'tblTempUsageDetail_20' ) end [2025-01-02 15:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159189', 'tblTempVendorCDR_20' ) start [2025-01-02 15:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159189', 'tblTempVendorCDR_20' ) end [2025-01-02 15:38:38] Production.INFO: ProcessCDR(1,14159189,1,1,2) [2025-01-02 15:38:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:38:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:38:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:38:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159189', 'tblTempUsageDetail_20' ) start [2025-01-02 15:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159189', 'tblTempUsageDetail_20' ) end [2025-01-02 15:38:42] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:38:42] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:38:42] Production.INFO: ==20767== Releasing lock... [2025-01-02 15:38:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:38:42] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:39:05 [end_date_ymd] => 2025-01-02 15:39:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:39:05' and `end` < '2025-01-02 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-01-02 15:39:30] Production.INFO: count ==4735 [2025-01-02 15:39:31] Production.ERROR: pbx CDR StartTime 2025-01-02 12:39:05 - End Time 2025-01-02 15:39:05 [2025-01-02 15:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159194', 'tblTempUsageDetail_20' ) start [2025-01-02 15:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159194', 'tblTempUsageDetail_20' ) end [2025-01-02 15:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159194', 'tblTempVendorCDR_20' ) start [2025-01-02 15:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159194', 'tblTempVendorCDR_20' ) end [2025-01-02 15:39:32] Production.INFO: ProcessCDR(1,14159194,1,1,2) [2025-01-02 15:39:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159194', 'tblTempUsageDetail_20' ) start [2025-01-02 15:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159194', 'tblTempUsageDetail_20' ) end [2025-01-02 15:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:39:36] Production.INFO: ==20849== Releasing lock... [2025-01-02 15:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:39:36] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:40:05 [end_date_ymd] => 2025-01-02 15:40:05 [RateCDR] => 1 ) [2025-01-02 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:40:05' and `end` < '2025-01-02 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:40:26] Production.INFO: count ==4736 [2025-01-02 15:40:27] Production.ERROR: pbx CDR StartTime 2025-01-02 12:40:05 - End Time 2025-01-02 15:40:05 [2025-01-02 15:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159199', 'tblTempUsageDetail_20' ) start [2025-01-02 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159199', 'tblTempUsageDetail_20' ) end [2025-01-02 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159199', 'tblTempVendorCDR_20' ) start [2025-01-02 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159199', 'tblTempVendorCDR_20' ) end [2025-01-02 15:40:27] Production.INFO: ProcessCDR(1,14159199,1,1,2) [2025-01-02 15:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159199', 'tblTempUsageDetail_20' ) start [2025-01-02 15:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159199', 'tblTempUsageDetail_20' ) end [2025-01-02 15:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:40:32] Production.INFO: ==20932== Releasing lock... [2025-01-02 15:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:40:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:41:05 [end_date_ymd] => 2025-01-02 15:41:05 [RateCDR] => 1 ) [2025-01-02 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:41:05' and `end` < '2025-01-02 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:41:19] Production.INFO: count ==4768 [2025-01-02 15:41:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:41:05 - End Time 2025-01-02 15:41:05 [2025-01-02 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159205', 'tblTempUsageDetail_20' ) start [2025-01-02 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159205', 'tblTempUsageDetail_20' ) end [2025-01-02 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159205', 'tblTempVendorCDR_20' ) start [2025-01-02 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159205', 'tblTempVendorCDR_20' ) end [2025-01-02 15:41:21] Production.INFO: ProcessCDR(1,14159205,1,1,2) [2025-01-02 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159205', 'tblTempUsageDetail_20' ) start [2025-01-02 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159205', 'tblTempUsageDetail_20' ) end [2025-01-02 15:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:41:25] Production.INFO: ==21017== Releasing lock... [2025-01-02 15:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:41:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:42:05 [end_date_ymd] => 2025-01-02 15:42:05 [RateCDR] => 1 ) [2025-01-02 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:42:05' and `end` < '2025-01-02 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:42:19] Production.INFO: count ==4769 [2025-01-02 15:42:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:42:05 - End Time 2025-01-02 15:42:05 [2025-01-02 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159210', 'tblTempUsageDetail_20' ) start [2025-01-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159210', 'tblTempUsageDetail_20' ) end [2025-01-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159210', 'tblTempVendorCDR_20' ) start [2025-01-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159210', 'tblTempVendorCDR_20' ) end [2025-01-02 15:42:21] Production.INFO: ProcessCDR(1,14159210,1,1,2) [2025-01-02 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159210', 'tblTempUsageDetail_20' ) start [2025-01-02 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159210', 'tblTempUsageDetail_20' ) end [2025-01-02 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:42:26] Production.INFO: ==21098== Releasing lock... [2025-01-02 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:42:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:43:05 [end_date_ymd] => 2025-01-02 15:43:05 [RateCDR] => 1 ) [2025-01-02 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:43:05' and `end` < '2025-01-02 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:43:19] Production.INFO: count ==4778 [2025-01-02 15:43:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:43:05 - End Time 2025-01-02 15:43:05 [2025-01-02 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159215', 'tblTempUsageDetail_20' ) start [2025-01-02 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159215', 'tblTempUsageDetail_20' ) end [2025-01-02 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159215', 'tblTempVendorCDR_20' ) start [2025-01-02 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159215', 'tblTempVendorCDR_20' ) end [2025-01-02 15:43:21] Production.INFO: ProcessCDR(1,14159215,1,1,2) [2025-01-02 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159215', 'tblTempUsageDetail_20' ) start [2025-01-02 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159215', 'tblTempUsageDetail_20' ) end [2025-01-02 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:43:26] Production.INFO: ==21178== Releasing lock... [2025-01-02 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:43:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:44:04 [end_date_ymd] => 2025-01-02 15:44:04 [RateCDR] => 1 ) [2025-01-02 15:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:44:04' and `end` < '2025-01-02 15:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:44:21] Production.INFO: count ==4778 [2025-01-02 15:44:23] Production.ERROR: pbx CDR StartTime 2025-01-02 12:44:04 - End Time 2025-01-02 15:44:04 [2025-01-02 15:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159220', 'tblTempUsageDetail_20' ) start [2025-01-02 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159220', 'tblTempUsageDetail_20' ) end [2025-01-02 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159220', 'tblTempVendorCDR_20' ) start [2025-01-02 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159220', 'tblTempVendorCDR_20' ) end [2025-01-02 15:44:23] Production.INFO: ProcessCDR(1,14159220,1,1,2) [2025-01-02 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159220', 'tblTempUsageDetail_20' ) start [2025-01-02 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159220', 'tblTempUsageDetail_20' ) end [2025-01-02 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:44:27] Production.INFO: ==21257== Releasing lock... [2025-01-02 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:44:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:45:05 [end_date_ymd] => 2025-01-02 15:45:05 [RateCDR] => 1 ) [2025-01-02 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:45:05' and `end` < '2025-01-02 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:45:22] Production.INFO: count ==4785 [2025-01-02 15:45:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:45:05 - End Time 2025-01-02 15:45:05 [2025-01-02 15:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159225', 'tblTempUsageDetail_20' ) start [2025-01-02 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159225', 'tblTempUsageDetail_20' ) end [2025-01-02 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159225', 'tblTempVendorCDR_20' ) start [2025-01-02 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159225', 'tblTempVendorCDR_20' ) end [2025-01-02 15:45:24] Production.INFO: ProcessCDR(1,14159225,1,1,2) [2025-01-02 15:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159225', 'tblTempUsageDetail_20' ) start [2025-01-02 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159225', 'tblTempUsageDetail_20' ) end [2025-01-02 15:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:45:29] Production.INFO: ==21334== Releasing lock... [2025-01-02 15:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:45:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:46:05 [end_date_ymd] => 2025-01-02 15:46:05 [RateCDR] => 1 ) [2025-01-02 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:46:05' and `end` < '2025-01-02 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:46:24] Production.INFO: count ==4791 [2025-01-02 15:46:26] Production.ERROR: pbx CDR StartTime 2025-01-02 12:46:05 - End Time 2025-01-02 15:46:05 [2025-01-02 15:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159230', 'tblTempUsageDetail_20' ) start [2025-01-02 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159230', 'tblTempUsageDetail_20' ) end [2025-01-02 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159230', 'tblTempVendorCDR_20' ) start [2025-01-02 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159230', 'tblTempVendorCDR_20' ) end [2025-01-02 15:46:26] Production.INFO: ProcessCDR(1,14159230,1,1,2) [2025-01-02 15:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159230', 'tblTempUsageDetail_20' ) start [2025-01-02 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159230', 'tblTempUsageDetail_20' ) end [2025-01-02 15:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:46:31] Production.INFO: ==21410== Releasing lock... [2025-01-02 15:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:46:31] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:47:05 [end_date_ymd] => 2025-01-02 15:47:05 [RateCDR] => 1 ) [2025-01-02 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:47:05' and `end` < '2025-01-02 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:47:22] Production.INFO: count ==4798 [2025-01-02 15:47:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:47:05 - End Time 2025-01-02 15:47:05 [2025-01-02 15:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159235', 'tblTempUsageDetail_20' ) start [2025-01-02 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159235', 'tblTempUsageDetail_20' ) end [2025-01-02 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159235', 'tblTempVendorCDR_20' ) start [2025-01-02 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159235', 'tblTempVendorCDR_20' ) end [2025-01-02 15:47:24] Production.INFO: ProcessCDR(1,14159235,1,1,2) [2025-01-02 15:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159235', 'tblTempUsageDetail_20' ) start [2025-01-02 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159235', 'tblTempUsageDetail_20' ) end [2025-01-02 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:47:29] Production.INFO: ==21492== Releasing lock... [2025-01-02 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:47:29] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:48:05 [end_date_ymd] => 2025-01-02 15:48:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 12:48:05' and `end` < '2025-01-02 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-01-02 15:48:24] Production.INFO: count ==4803 [2025-01-02 15:48:26] Production.ERROR: pbx CDR StartTime 2025-01-02 12:48:05 - End Time 2025-01-02 15:48:05 [2025-01-02 15:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159240', 'tblTempUsageDetail_20' ) start [2025-01-02 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159240', 'tblTempUsageDetail_20' ) end [2025-01-02 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159240', 'tblTempVendorCDR_20' ) start [2025-01-02 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159240', 'tblTempVendorCDR_20' ) end [2025-01-02 15:48:26] Production.INFO: ProcessCDR(1,14159240,1,1,2) [2025-01-02 15:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159240', 'tblTempUsageDetail_20' ) start [2025-01-02 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159240', 'tblTempUsageDetail_20' ) end [2025-01-02 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:48:30] Production.INFO: ==21572== Releasing lock... [2025-01-02 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:48:30] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:49:04 [end_date_ymd] => 2025-01-02 15:49:04 [RateCDR] => 1 ) [2025-01-02 15:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:49:04' and `end` < '2025-01-02 15:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:49:27] Production.INFO: count ==4805 [2025-01-02 15:49:29] Production.ERROR: pbx CDR StartTime 2025-01-02 12:49:04 - End Time 2025-01-02 15:49:04 [2025-01-02 15:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159245', 'tblTempUsageDetail_20' ) start [2025-01-02 15:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159245', 'tblTempUsageDetail_20' ) end [2025-01-02 15:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159245', 'tblTempVendorCDR_20' ) start [2025-01-02 15:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159245', 'tblTempVendorCDR_20' ) end [2025-01-02 15:49:29] Production.INFO: ProcessCDR(1,14159245,1,1,2) [2025-01-02 15:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159245', 'tblTempUsageDetail_20' ) start [2025-01-02 15:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159245', 'tblTempUsageDetail_20' ) end [2025-01-02 15:49:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:49:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:49:34] Production.INFO: ==21654== Releasing lock... [2025-01-02 15:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:49:34] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:50:06 [end_date_ymd] => 2025-01-02 15:50:06 [RateCDR] => 1 ) [2025-01-02 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:50:06' and `end` < '2025-01-02 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:50:28] Production.INFO: count ==4796 [2025-01-02 15:50:30] Production.ERROR: pbx CDR StartTime 2025-01-02 12:50:06 - End Time 2025-01-02 15:50:06 [2025-01-02 15:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159251', 'tblTempUsageDetail_20' ) start [2025-01-02 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159251', 'tblTempUsageDetail_20' ) end [2025-01-02 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159251', 'tblTempVendorCDR_20' ) start [2025-01-02 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159251', 'tblTempVendorCDR_20' ) end [2025-01-02 15:50:30] Production.INFO: ProcessCDR(1,14159251,1,1,2) [2025-01-02 15:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159251', 'tblTempUsageDetail_20' ) start [2025-01-02 15:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159251', 'tblTempUsageDetail_20' ) end [2025-01-02 15:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:50:34] Production.INFO: ==21733== Releasing lock... [2025-01-02 15:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:50:34] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:51:05 [end_date_ymd] => 2025-01-02 15:51:05 [RateCDR] => 1 ) [2025-01-02 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:51:05' and `end` < '2025-01-02 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:51:25] Production.INFO: count ==4813 [2025-01-02 15:51:26] Production.ERROR: pbx CDR StartTime 2025-01-02 12:51:05 - End Time 2025-01-02 15:51:05 [2025-01-02 15:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159256', 'tblTempUsageDetail_20' ) start [2025-01-02 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159256', 'tblTempUsageDetail_20' ) end [2025-01-02 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159256', 'tblTempVendorCDR_20' ) start [2025-01-02 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159256', 'tblTempVendorCDR_20' ) end [2025-01-02 15:51:27] Production.INFO: ProcessCDR(1,14159256,1,1,2) [2025-01-02 15:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159256', 'tblTempUsageDetail_20' ) start [2025-01-02 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159256', 'tblTempUsageDetail_20' ) end [2025-01-02 15:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:51:31] Production.INFO: ==21848== Releasing lock... [2025-01-02 15:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:51:31] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:52:05 [end_date_ymd] => 2025-01-02 15:52:05 [RateCDR] => 1 ) [2025-01-02 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:52:05' and `end` < '2025-01-02 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:52:35] Production.INFO: count ==4812 [2025-01-02 15:52:36] Production.ERROR: pbx CDR StartTime 2025-01-02 12:52:05 - End Time 2025-01-02 15:52:05 [2025-01-02 15:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159261', 'tblTempUsageDetail_20' ) start [2025-01-02 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159261', 'tblTempUsageDetail_20' ) end [2025-01-02 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159261', 'tblTempVendorCDR_20' ) start [2025-01-02 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159261', 'tblTempVendorCDR_20' ) end [2025-01-02 15:52:37] Production.INFO: ProcessCDR(1,14159261,1,1,2) [2025-01-02 15:52:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:52:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:52:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159261', 'tblTempUsageDetail_20' ) start [2025-01-02 15:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159261', 'tblTempUsageDetail_20' ) end [2025-01-02 15:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:52:41] Production.INFO: ==21927== Releasing lock... [2025-01-02 15:52:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:52:41] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:53:05 [end_date_ymd] => 2025-01-02 15:53:05 [RateCDR] => 1 ) [2025-01-02 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:53:05' and `end` < '2025-01-02 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:53:35] Production.INFO: count ==4820 [2025-01-02 15:53:37] Production.ERROR: pbx CDR StartTime 2025-01-02 12:53:05 - End Time 2025-01-02 15:53:05 [2025-01-02 15:53:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159266', 'tblTempUsageDetail_20' ) start [2025-01-02 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159266', 'tblTempUsageDetail_20' ) end [2025-01-02 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159266', 'tblTempVendorCDR_20' ) start [2025-01-02 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159266', 'tblTempVendorCDR_20' ) end [2025-01-02 15:53:37] Production.INFO: ProcessCDR(1,14159266,1,1,2) [2025-01-02 15:53:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:53:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:53:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:53:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:53:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159266', 'tblTempUsageDetail_20' ) start [2025-01-02 15:53:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159266', 'tblTempUsageDetail_20' ) end [2025-01-02 15:53:42] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:53:42] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:53:42] Production.INFO: ==22007== Releasing lock... [2025-01-02 15:53:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:53:42] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:54:05 [end_date_ymd] => 2025-01-02 15:54:05 [RateCDR] => 1 ) [2025-01-02 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:54:05' and `end` < '2025-01-02 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:54:22] Production.INFO: count ==4826 [2025-01-02 15:54:24] Production.ERROR: pbx CDR StartTime 2025-01-02 12:54:05 - End Time 2025-01-02 15:54:05 [2025-01-02 15:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159271', 'tblTempUsageDetail_20' ) start [2025-01-02 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159271', 'tblTempUsageDetail_20' ) end [2025-01-02 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159271', 'tblTempVendorCDR_20' ) start [2025-01-02 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159271', 'tblTempVendorCDR_20' ) end [2025-01-02 15:54:24] Production.INFO: ProcessCDR(1,14159271,1,1,2) [2025-01-02 15:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159271', 'tblTempUsageDetail_20' ) start [2025-01-02 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159271', 'tblTempUsageDetail_20' ) end [2025-01-02 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:54:28] Production.INFO: ==22087== Releasing lock... [2025-01-02 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:54:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:55:05 [end_date_ymd] => 2025-01-02 15:55:05 [RateCDR] => 1 ) [2025-01-02 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:55:05' and `end` < '2025-01-02 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:55:19] Production.INFO: count ==4804 [2025-01-02 15:55:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:55:05 - End Time 2025-01-02 15:55:05 [2025-01-02 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159276', 'tblTempUsageDetail_20' ) start [2025-01-02 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159276', 'tblTempUsageDetail_20' ) end [2025-01-02 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159276', 'tblTempVendorCDR_20' ) start [2025-01-02 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159276', 'tblTempVendorCDR_20' ) end [2025-01-02 15:55:21] Production.INFO: ProcessCDR(1,14159276,1,1,2) [2025-01-02 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159276', 'tblTempUsageDetail_20' ) start [2025-01-02 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159276', 'tblTempUsageDetail_20' ) end [2025-01-02 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:55:26] Production.INFO: ==22163== Releasing lock... [2025-01-02 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:55:26] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:56:05 [end_date_ymd] => 2025-01-02 15:56:05 [RateCDR] => 1 ) [2025-01-02 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:56:05' and `end` < '2025-01-02 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:56:19] Production.INFO: count ==4802 [2025-01-02 15:56:20] Production.ERROR: pbx CDR StartTime 2025-01-02 12:56:05 - End Time 2025-01-02 15:56:05 [2025-01-02 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159281', 'tblTempUsageDetail_20' ) start [2025-01-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159281', 'tblTempUsageDetail_20' ) end [2025-01-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159281', 'tblTempVendorCDR_20' ) start [2025-01-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159281', 'tblTempVendorCDR_20' ) end [2025-01-02 15:56:21] Production.INFO: ProcessCDR(1,14159281,1,1,2) [2025-01-02 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159281', 'tblTempUsageDetail_20' ) start [2025-01-02 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159281', 'tblTempUsageDetail_20' ) end [2025-01-02 15:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:56:24] Production.INFO: ==22237== Releasing lock... [2025-01-02 15:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:56:24] Production.INFO: 64 MB #Memory Used# [2025-01-02 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:57:05 [end_date_ymd] => 2025-01-02 15:57:05 [RateCDR] => 1 ) [2025-01-02 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:57:05' and `end` < '2025-01-02 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:57:19] Production.INFO: count ==4777 [2025-01-02 15:57:21] Production.ERROR: pbx CDR StartTime 2025-01-02 12:57:05 - End Time 2025-01-02 15:57:05 [2025-01-02 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159286', 'tblTempUsageDetail_20' ) start [2025-01-02 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159286', 'tblTempUsageDetail_20' ) end [2025-01-02 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159286', 'tblTempVendorCDR_20' ) start [2025-01-02 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159286', 'tblTempVendorCDR_20' ) end [2025-01-02 15:57:21] Production.INFO: ProcessCDR(1,14159286,1,1,2) [2025-01-02 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159286', 'tblTempUsageDetail_20' ) start [2025-01-02 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159286', 'tblTempUsageDetail_20' ) end [2025-01-02 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:57:24] Production.INFO: ==22309== Releasing lock... [2025-01-02 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:57:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:58:04 [end_date_ymd] => 2025-01-02 15:58:04 [RateCDR] => 1 ) [2025-01-02 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:58:04' and `end` < '2025-01-02 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:58:34] Production.INFO: count ==4785 [2025-01-02 15:58:36] Production.ERROR: pbx CDR StartTime 2025-01-02 12:58:04 - End Time 2025-01-02 15:58:04 [2025-01-02 15:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159291', 'tblTempUsageDetail_20' ) start [2025-01-02 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159291', 'tblTempUsageDetail_20' ) end [2025-01-02 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159291', 'tblTempVendorCDR_20' ) start [2025-01-02 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159291', 'tblTempVendorCDR_20' ) end [2025-01-02 15:58:36] Production.INFO: ProcessCDR(1,14159291,1,1,2) [2025-01-02 15:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:58:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:58:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:58:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159291', 'tblTempUsageDetail_20' ) start [2025-01-02 15:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159291', 'tblTempUsageDetail_20' ) end [2025-01-02 15:58:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:58:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:58:40] Production.INFO: ==22387== Releasing lock... [2025-01-02 15:58:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:58:40] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 12:59:05 [end_date_ymd] => 2025-01-02 15:59:05 [RateCDR] => 1 ) [2025-01-02 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 12:59:05' and `end` < '2025-01-02 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 15:59:24] Production.INFO: count ==4774 [2025-01-02 15:59:26] Production.ERROR: pbx CDR StartTime 2025-01-02 12:59:05 - End Time 2025-01-02 15:59:05 [2025-01-02 15:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159296', 'tblTempUsageDetail_20' ) start [2025-01-02 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159296', 'tblTempUsageDetail_20' ) end [2025-01-02 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159296', 'tblTempVendorCDR_20' ) start [2025-01-02 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159296', 'tblTempVendorCDR_20' ) end [2025-01-02 15:59:26] Production.INFO: ProcessCDR(1,14159296,1,1,2) [2025-01-02 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 15:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159296', 'tblTempUsageDetail_20' ) start [2025-01-02 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159296', 'tblTempUsageDetail_20' ) end [2025-01-02 15:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 15:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 15:59:31] Production.INFO: ==22460== Releasing lock... [2025-01-02 15:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 15:59:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:00:05 [end_date_ymd] => 2025-01-02 16:00:05 [RateCDR] => 1 ) [2025-01-02 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:00:05' and `end` < '2025-01-02 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:00:28] Production.INFO: count ==4773 [2025-01-02 16:00:29] Production.ERROR: pbx CDR StartTime 2025-01-02 13:00:05 - End Time 2025-01-02 16:00:05 [2025-01-02 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159302', 'tblTempUsageDetail_20' ) start [2025-01-02 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159302', 'tblTempUsageDetail_20' ) end [2025-01-02 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159302', 'tblTempVendorCDR_20' ) start [2025-01-02 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159302', 'tblTempVendorCDR_20' ) end [2025-01-02 16:00:29] Production.INFO: ProcessCDR(1,14159302,1,1,2) [2025-01-02 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159302', 'tblTempUsageDetail_20' ) start [2025-01-02 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159302', 'tblTempUsageDetail_20' ) end [2025-01-02 16:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:00:34] Production.INFO: ==22535== Releasing lock... [2025-01-02 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:00:34] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:01:05 [end_date_ymd] => 2025-01-02 16:01:05 [RateCDR] => 1 ) [2025-01-02 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:01:05' and `end` < '2025-01-02 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:01:23] Production.INFO: count ==4770 [2025-01-02 16:01:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:01:05 - End Time 2025-01-02 16:01:05 [2025-01-02 16:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159307', 'tblTempUsageDetail_20' ) start [2025-01-02 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159307', 'tblTempUsageDetail_20' ) end [2025-01-02 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159307', 'tblTempVendorCDR_20' ) start [2025-01-02 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159307', 'tblTempVendorCDR_20' ) end [2025-01-02 16:01:25] Production.INFO: ProcessCDR(1,14159307,1,1,2) [2025-01-02 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159307', 'tblTempUsageDetail_20' ) start [2025-01-02 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159307', 'tblTempUsageDetail_20' ) end [2025-01-02 16:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:01:29] Production.INFO: ==22625== Releasing lock... [2025-01-02 16:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:01:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:02:04 [end_date_ymd] => 2025-01-02 16:02:04 [RateCDR] => 1 ) [2025-01-02 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:02:04' and `end` < '2025-01-02 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:02:19] Production.INFO: count ==4768 [2025-01-02 16:02:21] Production.ERROR: pbx CDR StartTime 2025-01-02 13:02:04 - End Time 2025-01-02 16:02:04 [2025-01-02 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159312', 'tblTempUsageDetail_20' ) start [2025-01-02 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159312', 'tblTempUsageDetail_20' ) end [2025-01-02 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159312', 'tblTempVendorCDR_20' ) start [2025-01-02 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159312', 'tblTempVendorCDR_20' ) end [2025-01-02 16:02:21] Production.INFO: ProcessCDR(1,14159312,1,1,2) [2025-01-02 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159312', 'tblTempUsageDetail_20' ) start [2025-01-02 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159312', 'tblTempUsageDetail_20' ) end [2025-01-02 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:02:25] Production.INFO: ==22697== Releasing lock... [2025-01-02 16:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:02:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:03:05 [end_date_ymd] => 2025-01-02 16:03:05 [RateCDR] => 1 ) [2025-01-02 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:03:05' and `end` < '2025-01-02 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:03:20] Production.INFO: count ==4763 [2025-01-02 16:03:21] Production.ERROR: pbx CDR StartTime 2025-01-02 13:03:05 - End Time 2025-01-02 16:03:05 [2025-01-02 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159317', 'tblTempUsageDetail_20' ) start [2025-01-02 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159317', 'tblTempUsageDetail_20' ) end [2025-01-02 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159317', 'tblTempVendorCDR_20' ) start [2025-01-02 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159317', 'tblTempVendorCDR_20' ) end [2025-01-02 16:03:22] Production.INFO: ProcessCDR(1,14159317,1,1,2) [2025-01-02 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159317', 'tblTempUsageDetail_20' ) start [2025-01-02 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159317', 'tblTempUsageDetail_20' ) end [2025-01-02 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:03:26] Production.INFO: ==22773== Releasing lock... [2025-01-02 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:03:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:04:05 [end_date_ymd] => 2025-01-02 16:04:05 [RateCDR] => 1 ) [2025-01-02 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:04:05' and `end` < '2025-01-02 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:04:26] Production.INFO: count ==4735 [2025-01-02 16:04:28] Production.ERROR: pbx CDR StartTime 2025-01-02 13:04:05 - End Time 2025-01-02 16:04:05 [2025-01-02 16:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159322', 'tblTempUsageDetail_20' ) start [2025-01-02 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159322', 'tblTempUsageDetail_20' ) end [2025-01-02 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159322', 'tblTempVendorCDR_20' ) start [2025-01-02 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159322', 'tblTempVendorCDR_20' ) end [2025-01-02 16:04:28] Production.INFO: ProcessCDR(1,14159322,1,1,2) [2025-01-02 16:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159322', 'tblTempUsageDetail_20' ) start [2025-01-02 16:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159322', 'tblTempUsageDetail_20' ) end [2025-01-02 16:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:04:33] Production.INFO: ==22846== Releasing lock... [2025-01-02 16:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:04:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:05:05 [end_date_ymd] => 2025-01-02 16:05:05 [RateCDR] => 1 ) [2025-01-02 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:05:05' and `end` < '2025-01-02 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:05:24] Production.INFO: count ==4750 [2025-01-02 16:05:26] Production.ERROR: pbx CDR StartTime 2025-01-02 13:05:05 - End Time 2025-01-02 16:05:05 [2025-01-02 16:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159327', 'tblTempUsageDetail_20' ) start [2025-01-02 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159327', 'tblTempUsageDetail_20' ) end [2025-01-02 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159327', 'tblTempVendorCDR_20' ) start [2025-01-02 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159327', 'tblTempVendorCDR_20' ) end [2025-01-02 16:05:26] Production.INFO: ProcessCDR(1,14159327,1,1,2) [2025-01-02 16:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159327', 'tblTempUsageDetail_20' ) start [2025-01-02 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159327', 'tblTempUsageDetail_20' ) end [2025-01-02 16:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:05:30] Production.INFO: ==22918== Releasing lock... [2025-01-02 16:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:05:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:06:05 [end_date_ymd] => 2025-01-02 16:06:05 [RateCDR] => 1 ) [2025-01-02 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:06:05' and `end` < '2025-01-02 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:06:22] Production.INFO: count ==4723 [2025-01-02 16:06:24] Production.ERROR: pbx CDR StartTime 2025-01-02 13:06:05 - End Time 2025-01-02 16:06:05 [2025-01-02 16:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159332', 'tblTempUsageDetail_20' ) start [2025-01-02 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159332', 'tblTempUsageDetail_20' ) end [2025-01-02 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159332', 'tblTempVendorCDR_20' ) start [2025-01-02 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159332', 'tblTempVendorCDR_20' ) end [2025-01-02 16:06:24] Production.INFO: ProcessCDR(1,14159332,1,1,2) [2025-01-02 16:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159332', 'tblTempUsageDetail_20' ) start [2025-01-02 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159332', 'tblTempUsageDetail_20' ) end [2025-01-02 16:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:06:29] Production.INFO: ==22989== Releasing lock... [2025-01-02 16:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:06:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:07:05 [end_date_ymd] => 2025-01-02 16:07:05 [RateCDR] => 1 ) [2025-01-02 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:07:05' and `end` < '2025-01-02 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:07:28] Production.INFO: count ==4723 [2025-01-02 16:07:30] Production.ERROR: pbx CDR StartTime 2025-01-02 13:07:05 - End Time 2025-01-02 16:07:05 [2025-01-02 16:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159337', 'tblTempUsageDetail_20' ) start [2025-01-02 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159337', 'tblTempUsageDetail_20' ) end [2025-01-02 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159337', 'tblTempVendorCDR_20' ) start [2025-01-02 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159337', 'tblTempVendorCDR_20' ) end [2025-01-02 16:07:30] Production.INFO: ProcessCDR(1,14159337,1,1,2) [2025-01-02 16:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159337', 'tblTempUsageDetail_20' ) start [2025-01-02 16:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159337', 'tblTempUsageDetail_20' ) end [2025-01-02 16:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:07:34] Production.INFO: ==23100== Releasing lock... [2025-01-02 16:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:07:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:08:05 [end_date_ymd] => 2025-01-02 16:08:05 [RateCDR] => 1 ) [2025-01-02 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:08:05' and `end` < '2025-01-02 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:08:23] Production.INFO: count ==4706 [2025-01-02 16:08:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:08:05 - End Time 2025-01-02 16:08:05 [2025-01-02 16:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159342', 'tblTempUsageDetail_20' ) start [2025-01-02 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159342', 'tblTempUsageDetail_20' ) end [2025-01-02 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159342', 'tblTempVendorCDR_20' ) start [2025-01-02 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159342', 'tblTempVendorCDR_20' ) end [2025-01-02 16:08:25] Production.INFO: ProcessCDR(1,14159342,1,1,2) [2025-01-02 16:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159342', 'tblTempUsageDetail_20' ) start [2025-01-02 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159342', 'tblTempUsageDetail_20' ) end [2025-01-02 16:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:08:30] Production.INFO: ==23179== Releasing lock... [2025-01-02 16:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:08:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:09:04 [end_date_ymd] => 2025-01-02 16:09:04 [RateCDR] => 1 ) [2025-01-02 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:09:04' and `end` < '2025-01-02 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:09:25] Production.INFO: count ==4717 [2025-01-02 16:09:27] Production.ERROR: pbx CDR StartTime 2025-01-02 13:09:04 - End Time 2025-01-02 16:09:04 [2025-01-02 16:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159347', 'tblTempUsageDetail_20' ) start [2025-01-02 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159347', 'tblTempUsageDetail_20' ) end [2025-01-02 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159347', 'tblTempVendorCDR_20' ) start [2025-01-02 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159347', 'tblTempVendorCDR_20' ) end [2025-01-02 16:09:27] Production.INFO: ProcessCDR(1,14159347,1,1,2) [2025-01-02 16:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159347', 'tblTempUsageDetail_20' ) start [2025-01-02 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159347', 'tblTempUsageDetail_20' ) end [2025-01-02 16:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:09:31] Production.INFO: ==23252== Releasing lock... [2025-01-02 16:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:09:31] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:10:05 [end_date_ymd] => 2025-01-02 16:10:05 [RateCDR] => 1 ) [2025-01-02 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:10:05' and `end` < '2025-01-02 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:10:31] Production.INFO: count ==4718 [2025-01-02 16:10:33] Production.ERROR: pbx CDR StartTime 2025-01-02 13:10:05 - End Time 2025-01-02 16:10:05 [2025-01-02 16:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159353', 'tblTempUsageDetail_20' ) start [2025-01-02 16:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159353', 'tblTempUsageDetail_20' ) end [2025-01-02 16:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159353', 'tblTempVendorCDR_20' ) start [2025-01-02 16:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159353', 'tblTempVendorCDR_20' ) end [2025-01-02 16:10:33] Production.INFO: ProcessCDR(1,14159353,1,1,2) [2025-01-02 16:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159353', 'tblTempUsageDetail_20' ) start [2025-01-02 16:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159353', 'tblTempUsageDetail_20' ) end [2025-01-02 16:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:10:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:10:38] Production.INFO: ==23325== Releasing lock... [2025-01-02 16:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:10:38] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:11:04 [end_date_ymd] => 2025-01-02 16:11:04 [RateCDR] => 1 ) [2025-01-02 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:11:04' and `end` < '2025-01-02 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:11:27] Production.INFO: count ==4708 [2025-01-02 16:11:29] Production.ERROR: pbx CDR StartTime 2025-01-02 13:11:04 - End Time 2025-01-02 16:11:04 [2025-01-02 16:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159358', 'tblTempUsageDetail_20' ) start [2025-01-02 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159358', 'tblTempUsageDetail_20' ) end [2025-01-02 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159358', 'tblTempVendorCDR_20' ) start [2025-01-02 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159358', 'tblTempVendorCDR_20' ) end [2025-01-02 16:11:29] Production.INFO: ProcessCDR(1,14159358,1,1,2) [2025-01-02 16:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159358', 'tblTempUsageDetail_20' ) start [2025-01-02 16:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159358', 'tblTempUsageDetail_20' ) end [2025-01-02 16:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:11:34] Production.INFO: ==23399== Releasing lock... [2025-01-02 16:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:11:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:12:05 [end_date_ymd] => 2025-01-02 16:12:05 [RateCDR] => 1 ) [2025-01-02 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:12:05' and `end` < '2025-01-02 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:12:26] Production.INFO: count ==4730 [2025-01-02 16:12:28] Production.ERROR: pbx CDR StartTime 2025-01-02 13:12:05 - End Time 2025-01-02 16:12:05 [2025-01-02 16:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159363', 'tblTempUsageDetail_20' ) start [2025-01-02 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159363', 'tblTempUsageDetail_20' ) end [2025-01-02 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159363', 'tblTempVendorCDR_20' ) start [2025-01-02 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159363', 'tblTempVendorCDR_20' ) end [2025-01-02 16:12:28] Production.INFO: ProcessCDR(1,14159363,1,1,2) [2025-01-02 16:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159363', 'tblTempUsageDetail_20' ) start [2025-01-02 16:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159363', 'tblTempUsageDetail_20' ) end [2025-01-02 16:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:12:31] Production.INFO: ==23471== Releasing lock... [2025-01-02 16:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:12:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:13:05 [end_date_ymd] => 2025-01-02 16:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:13:05' and `end` < '2025-01-02 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-01-02 16:13:27] Production.INFO: count ==4739 [2025-01-02 16:13:28] Production.ERROR: pbx CDR StartTime 2025-01-02 13:13:05 - End Time 2025-01-02 16:13:05 [2025-01-02 16:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159368', 'tblTempUsageDetail_20' ) start [2025-01-02 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159368', 'tblTempUsageDetail_20' ) end [2025-01-02 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159368', 'tblTempVendorCDR_20' ) start [2025-01-02 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159368', 'tblTempVendorCDR_20' ) end [2025-01-02 16:13:29] Production.INFO: ProcessCDR(1,14159368,1,1,2) [2025-01-02 16:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159368', 'tblTempUsageDetail_20' ) start [2025-01-02 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159368', 'tblTempUsageDetail_20' ) end [2025-01-02 16:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:13:33] Production.INFO: ==23541== Releasing lock... [2025-01-02 16:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:13:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:14:05 [end_date_ymd] => 2025-01-02 16:14:05 [RateCDR] => 1 ) [2025-01-02 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:14:05' and `end` < '2025-01-02 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:14:21] Production.INFO: count ==4817 [2025-01-02 16:14:22] Production.ERROR: pbx CDR StartTime 2025-01-02 13:14:05 - End Time 2025-01-02 16:14:05 [2025-01-02 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159373', 'tblTempUsageDetail_20' ) start [2025-01-02 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159373', 'tblTempUsageDetail_20' ) end [2025-01-02 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159373', 'tblTempVendorCDR_20' ) start [2025-01-02 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159373', 'tblTempVendorCDR_20' ) end [2025-01-02 16:14:22] Production.INFO: ProcessCDR(1,14159373,1,1,2) [2025-01-02 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159373', 'tblTempUsageDetail_20' ) start [2025-01-02 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159373', 'tblTempUsageDetail_20' ) end [2025-01-02 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:14:27] Production.INFO: ==23615== Releasing lock... [2025-01-02 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:14:27] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:15:05 [end_date_ymd] => 2025-01-02 16:15:05 [RateCDR] => 1 ) [2025-01-02 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:15:05' and `end` < '2025-01-02 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:15:33] Production.INFO: count ==4838 [2025-01-02 16:15:35] Production.ERROR: pbx CDR StartTime 2025-01-02 13:15:05 - End Time 2025-01-02 16:15:05 [2025-01-02 16:15:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159378', 'tblTempUsageDetail_20' ) start [2025-01-02 16:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159378', 'tblTempUsageDetail_20' ) end [2025-01-02 16:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159378', 'tblTempVendorCDR_20' ) start [2025-01-02 16:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159378', 'tblTempVendorCDR_20' ) end [2025-01-02 16:15:35] Production.INFO: ProcessCDR(1,14159378,1,1,2) [2025-01-02 16:15:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:15:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:15:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:15:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159378', 'tblTempUsageDetail_20' ) start [2025-01-02 16:15:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159378', 'tblTempUsageDetail_20' ) end [2025-01-02 16:15:40] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:15:40] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:15:40] Production.INFO: ==23687== Releasing lock... [2025-01-02 16:15:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:15:40] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:16:05 [end_date_ymd] => 2025-01-02 16:16:05 [RateCDR] => 1 ) [2025-01-02 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:16:05' and `end` < '2025-01-02 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:16:27] Production.INFO: count ==4842 [2025-01-02 16:16:29] Production.ERROR: pbx CDR StartTime 2025-01-02 13:16:05 - End Time 2025-01-02 16:16:05 [2025-01-02 16:16:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159383', 'tblTempUsageDetail_20' ) start [2025-01-02 16:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159383', 'tblTempUsageDetail_20' ) end [2025-01-02 16:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159383', 'tblTempVendorCDR_20' ) start [2025-01-02 16:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159383', 'tblTempVendorCDR_20' ) end [2025-01-02 16:16:29] Production.INFO: ProcessCDR(1,14159383,1,1,2) [2025-01-02 16:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159383', 'tblTempUsageDetail_20' ) start [2025-01-02 16:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159383', 'tblTempUsageDetail_20' ) end [2025-01-02 16:16:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:16:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:16:34] Production.INFO: ==23758== Releasing lock... [2025-01-02 16:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:16:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:17:04 [end_date_ymd] => 2025-01-02 16:17:04 [RateCDR] => 1 ) [2025-01-02 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:17:04' and `end` < '2025-01-02 16:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:17:26] Production.INFO: count ==4829 [2025-01-02 16:17:28] Production.ERROR: pbx CDR StartTime 2025-01-02 13:17:04 - End Time 2025-01-02 16:17:04 [2025-01-02 16:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159388', 'tblTempUsageDetail_20' ) start [2025-01-02 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159388', 'tblTempUsageDetail_20' ) end [2025-01-02 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159388', 'tblTempVendorCDR_20' ) start [2025-01-02 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159388', 'tblTempVendorCDR_20' ) end [2025-01-02 16:17:28] Production.INFO: ProcessCDR(1,14159388,1,1,2) [2025-01-02 16:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159388', 'tblTempUsageDetail_20' ) start [2025-01-02 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159388', 'tblTempUsageDetail_20' ) end [2025-01-02 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:17:32] Production.INFO: ==23832== Releasing lock... [2025-01-02 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:17:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:18:05 [end_date_ymd] => 2025-01-02 16:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:18:05' and `end` < '2025-01-02 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-01-02 16:18:28] Production.INFO: count ==4852 [2025-01-02 16:18:30] Production.ERROR: pbx CDR StartTime 2025-01-02 13:18:05 - End Time 2025-01-02 16:18:05 [2025-01-02 16:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159393', 'tblTempUsageDetail_20' ) start [2025-01-02 16:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159393', 'tblTempUsageDetail_20' ) end [2025-01-02 16:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159393', 'tblTempVendorCDR_20' ) start [2025-01-02 16:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159393', 'tblTempVendorCDR_20' ) end [2025-01-02 16:18:30] Production.INFO: ProcessCDR(1,14159393,1,1,2) [2025-01-02 16:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159393', 'tblTempUsageDetail_20' ) start [2025-01-02 16:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159393', 'tblTempUsageDetail_20' ) end [2025-01-02 16:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:18:34] Production.INFO: ==23911== Releasing lock... [2025-01-02 16:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:18:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:19:05 [end_date_ymd] => 2025-01-02 16:19:05 [RateCDR] => 1 ) [2025-01-02 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:19:05' and `end` < '2025-01-02 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:19:21] Production.INFO: count ==4841 [2025-01-02 16:19:23] Production.ERROR: pbx CDR StartTime 2025-01-02 13:19:05 - End Time 2025-01-02 16:19:05 [2025-01-02 16:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159398', 'tblTempUsageDetail_20' ) start [2025-01-02 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159398', 'tblTempUsageDetail_20' ) end [2025-01-02 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159398', 'tblTempVendorCDR_20' ) start [2025-01-02 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159398', 'tblTempVendorCDR_20' ) end [2025-01-02 16:19:23] Production.INFO: ProcessCDR(1,14159398,1,1,2) [2025-01-02 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159398', 'tblTempUsageDetail_20' ) start [2025-01-02 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159398', 'tblTempUsageDetail_20' ) end [2025-01-02 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:19:28] Production.INFO: ==23986== Releasing lock... [2025-01-02 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:19:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:20:06 [end_date_ymd] => 2025-01-02 16:20:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:20:06' and `end` < '2025-01-02 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-01-02 16:20:25] Production.INFO: count ==4843 [2025-01-02 16:20:27] Production.ERROR: pbx CDR StartTime 2025-01-02 13:20:06 - End Time 2025-01-02 16:20:06 [2025-01-02 16:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159404', 'tblTempUsageDetail_20' ) start [2025-01-02 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159404', 'tblTempUsageDetail_20' ) end [2025-01-02 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159404', 'tblTempVendorCDR_20' ) start [2025-01-02 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159404', 'tblTempVendorCDR_20' ) end [2025-01-02 16:20:27] Production.INFO: ProcessCDR(1,14159404,1,1,2) [2025-01-02 16:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159404', 'tblTempUsageDetail_20' ) start [2025-01-02 16:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159404', 'tblTempUsageDetail_20' ) end [2025-01-02 16:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:20:32] Production.INFO: ==24059== Releasing lock... [2025-01-02 16:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:20:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:21:05 [end_date_ymd] => 2025-01-02 16:21:05 [RateCDR] => 1 ) [2025-01-02 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:21:05' and `end` < '2025-01-02 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:21:20] Production.INFO: count ==4830 [2025-01-02 16:21:22] Production.ERROR: pbx CDR StartTime 2025-01-02 13:21:05 - End Time 2025-01-02 16:21:05 [2025-01-02 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159409', 'tblTempUsageDetail_20' ) start [2025-01-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159409', 'tblTempUsageDetail_20' ) end [2025-01-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159409', 'tblTempVendorCDR_20' ) start [2025-01-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159409', 'tblTempVendorCDR_20' ) end [2025-01-02 16:21:22] Production.INFO: ProcessCDR(1,14159409,1,1,2) [2025-01-02 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159409', 'tblTempUsageDetail_20' ) start [2025-01-02 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159409', 'tblTempUsageDetail_20' ) end [2025-01-02 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:21:26] Production.INFO: ==24136== Releasing lock... [2025-01-02 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:21:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:22:04 [end_date_ymd] => 2025-01-02 16:22:04 [RateCDR] => 1 ) [2025-01-02 16:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:22:04' and `end` < '2025-01-02 16:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:22:27] Production.INFO: count ==4829 [2025-01-02 16:22:28] Production.ERROR: pbx CDR StartTime 2025-01-02 13:22:04 - End Time 2025-01-02 16:22:04 [2025-01-02 16:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159414', 'tblTempUsageDetail_20' ) start [2025-01-02 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159414', 'tblTempUsageDetail_20' ) end [2025-01-02 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159414', 'tblTempVendorCDR_20' ) start [2025-01-02 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159414', 'tblTempVendorCDR_20' ) end [2025-01-02 16:22:29] Production.INFO: ProcessCDR(1,14159414,1,1,2) [2025-01-02 16:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159414', 'tblTempUsageDetail_20' ) start [2025-01-02 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159414', 'tblTempUsageDetail_20' ) end [2025-01-02 16:22:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:22:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:22:33] Production.INFO: ==24246== Releasing lock... [2025-01-02 16:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:22:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:23:05 [end_date_ymd] => 2025-01-02 16:23:05 [RateCDR] => 1 ) [2025-01-02 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:23:05' and `end` < '2025-01-02 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:23:23] Production.INFO: count ==4860 [2025-01-02 16:23:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:23:05 - End Time 2025-01-02 16:23:05 [2025-01-02 16:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159419', 'tblTempUsageDetail_20' ) start [2025-01-02 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159419', 'tblTempUsageDetail_20' ) end [2025-01-02 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159419', 'tblTempVendorCDR_20' ) start [2025-01-02 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159419', 'tblTempVendorCDR_20' ) end [2025-01-02 16:23:25] Production.INFO: ProcessCDR(1,14159419,1,1,2) [2025-01-02 16:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159419', 'tblTempUsageDetail_20' ) start [2025-01-02 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159419', 'tblTempUsageDetail_20' ) end [2025-01-02 16:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:23:29] Production.INFO: ==24320== Releasing lock... [2025-01-02 16:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:23:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:24:05 [end_date_ymd] => 2025-01-02 16:24:05 [RateCDR] => 1 ) [2025-01-02 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:24:05' and `end` < '2025-01-02 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:24:21] Production.INFO: count ==4846 [2025-01-02 16:24:23] Production.ERROR: pbx CDR StartTime 2025-01-02 13:24:05 - End Time 2025-01-02 16:24:05 [2025-01-02 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159424', 'tblTempUsageDetail_20' ) start [2025-01-02 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159424', 'tblTempUsageDetail_20' ) end [2025-01-02 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159424', 'tblTempVendorCDR_20' ) start [2025-01-02 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159424', 'tblTempVendorCDR_20' ) end [2025-01-02 16:24:23] Production.INFO: ProcessCDR(1,14159424,1,1,2) [2025-01-02 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159424', 'tblTempUsageDetail_20' ) start [2025-01-02 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159424', 'tblTempUsageDetail_20' ) end [2025-01-02 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:24:27] Production.INFO: ==24393== Releasing lock... [2025-01-02 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:24:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:25:05 [end_date_ymd] => 2025-01-02 16:25:05 [RateCDR] => 1 ) [2025-01-02 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:25:05' and `end` < '2025-01-02 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:25:27] Production.INFO: count ==4860 [2025-01-02 16:25:29] Production.ERROR: pbx CDR StartTime 2025-01-02 13:25:05 - End Time 2025-01-02 16:25:05 [2025-01-02 16:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159429', 'tblTempUsageDetail_20' ) start [2025-01-02 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159429', 'tblTempUsageDetail_20' ) end [2025-01-02 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159429', 'tblTempVendorCDR_20' ) start [2025-01-02 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159429', 'tblTempVendorCDR_20' ) end [2025-01-02 16:25:29] Production.INFO: ProcessCDR(1,14159429,1,1,2) [2025-01-02 16:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159429', 'tblTempUsageDetail_20' ) start [2025-01-02 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159429', 'tblTempUsageDetail_20' ) end [2025-01-02 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:25:33] Production.INFO: ==24464== Releasing lock... [2025-01-02 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:25:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:26:05 [end_date_ymd] => 2025-01-02 16:26:05 [RateCDR] => 1 ) [2025-01-02 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:26:05' and `end` < '2025-01-02 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:26:26] Production.INFO: count ==4852 [2025-01-02 16:26:28] Production.ERROR: pbx CDR StartTime 2025-01-02 13:26:05 - End Time 2025-01-02 16:26:05 [2025-01-02 16:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159434', 'tblTempUsageDetail_20' ) start [2025-01-02 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159434', 'tblTempUsageDetail_20' ) end [2025-01-02 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159434', 'tblTempVendorCDR_20' ) start [2025-01-02 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159434', 'tblTempVendorCDR_20' ) end [2025-01-02 16:26:28] Production.INFO: ProcessCDR(1,14159434,1,1,2) [2025-01-02 16:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159434', 'tblTempUsageDetail_20' ) start [2025-01-02 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159434', 'tblTempUsageDetail_20' ) end [2025-01-02 16:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:26:33] Production.INFO: ==24534== Releasing lock... [2025-01-02 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:26:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:27:05 [end_date_ymd] => 2025-01-02 16:27:05 [RateCDR] => 1 ) [2025-01-02 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:27:05' and `end` < '2025-01-02 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:27:27] Production.INFO: count ==4851 [2025-01-02 16:27:29] Production.ERROR: pbx CDR StartTime 2025-01-02 13:27:05 - End Time 2025-01-02 16:27:05 [2025-01-02 16:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159439', 'tblTempUsageDetail_20' ) start [2025-01-02 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159439', 'tblTempUsageDetail_20' ) end [2025-01-02 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159439', 'tblTempVendorCDR_20' ) start [2025-01-02 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159439', 'tblTempVendorCDR_20' ) end [2025-01-02 16:27:29] Production.INFO: ProcessCDR(1,14159439,1,1,2) [2025-01-02 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159439', 'tblTempUsageDetail_20' ) start [2025-01-02 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159439', 'tblTempUsageDetail_20' ) end [2025-01-02 16:27:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:27:34] Production.INFO: ==24603== Releasing lock... [2025-01-02 16:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:27:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:28:06 [end_date_ymd] => 2025-01-02 16:28:06 [RateCDR] => 1 ) [2025-01-02 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:28:06' and `end` < '2025-01-02 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:28:25] Production.INFO: count ==4857 [2025-01-02 16:28:27] Production.ERROR: pbx CDR StartTime 2025-01-02 13:28:06 - End Time 2025-01-02 16:28:06 [2025-01-02 16:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159444', 'tblTempUsageDetail_20' ) start [2025-01-02 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159444', 'tblTempUsageDetail_20' ) end [2025-01-02 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159444', 'tblTempVendorCDR_20' ) start [2025-01-02 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159444', 'tblTempVendorCDR_20' ) end [2025-01-02 16:28:27] Production.INFO: ProcessCDR(1,14159444,1,1,2) [2025-01-02 16:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159444', 'tblTempUsageDetail_20' ) start [2025-01-02 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159444', 'tblTempUsageDetail_20' ) end [2025-01-02 16:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:28:31] Production.INFO: ==24673== Releasing lock... [2025-01-02 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:28:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:29:05 [end_date_ymd] => 2025-01-02 16:29:05 [RateCDR] => 1 ) [2025-01-02 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:29:05' and `end` < '2025-01-02 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:29:20] Production.INFO: count ==4853 [2025-01-02 16:29:22] Production.ERROR: pbx CDR StartTime 2025-01-02 13:29:05 - End Time 2025-01-02 16:29:05 [2025-01-02 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159449', 'tblTempUsageDetail_20' ) start [2025-01-02 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159449', 'tblTempUsageDetail_20' ) end [2025-01-02 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159449', 'tblTempVendorCDR_20' ) start [2025-01-02 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159449', 'tblTempVendorCDR_20' ) end [2025-01-02 16:29:22] Production.INFO: ProcessCDR(1,14159449,1,1,2) [2025-01-02 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159449', 'tblTempUsageDetail_20' ) start [2025-01-02 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159449', 'tblTempUsageDetail_20' ) end [2025-01-02 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:29:26] Production.INFO: ==24743== Releasing lock... [2025-01-02 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:29:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:30:05 [end_date_ymd] => 2025-01-02 16:30:05 [RateCDR] => 1 ) [2025-01-02 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:30:05' and `end` < '2025-01-02 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:30:34] Production.INFO: count ==4834 [2025-01-02 16:30:36] Production.ERROR: pbx CDR StartTime 2025-01-02 13:30:05 - End Time 2025-01-02 16:30:05 [2025-01-02 16:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159455', 'tblTempUsageDetail_20' ) start [2025-01-02 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159455', 'tblTempUsageDetail_20' ) end [2025-01-02 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159455', 'tblTempVendorCDR_20' ) start [2025-01-02 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159455', 'tblTempVendorCDR_20' ) end [2025-01-02 16:30:36] Production.INFO: ProcessCDR(1,14159455,1,1,2) [2025-01-02 16:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:30:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159455', 'tblTempUsageDetail_20' ) start [2025-01-02 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159455', 'tblTempUsageDetail_20' ) end [2025-01-02 16:30:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:30:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:30:41] Production.INFO: ==24819== Releasing lock... [2025-01-02 16:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:30:41] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:31:04 [end_date_ymd] => 2025-01-02 16:31:04 [RateCDR] => 1 ) [2025-01-02 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:31:04' and `end` < '2025-01-02 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:31:24] Production.INFO: count ==4826 [2025-01-02 16:31:26] Production.ERROR: pbx CDR StartTime 2025-01-02 13:31:04 - End Time 2025-01-02 16:31:04 [2025-01-02 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159460', 'tblTempUsageDetail_20' ) start [2025-01-02 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159460', 'tblTempUsageDetail_20' ) end [2025-01-02 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159460', 'tblTempVendorCDR_20' ) start [2025-01-02 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159460', 'tblTempVendorCDR_20' ) end [2025-01-02 16:31:26] Production.INFO: ProcessCDR(1,14159460,1,1,2) [2025-01-02 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159460', 'tblTempUsageDetail_20' ) start [2025-01-02 16:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159460', 'tblTempUsageDetail_20' ) end [2025-01-02 16:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:31:30] Production.INFO: ==24890== Releasing lock... [2025-01-02 16:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:31:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:32:05 [end_date_ymd] => 2025-01-02 16:32:05 [RateCDR] => 1 ) [2025-01-02 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:32:05' and `end` < '2025-01-02 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:32:22] Production.INFO: count ==4812 [2025-01-02 16:32:23] Production.ERROR: pbx CDR StartTime 2025-01-02 13:32:05 - End Time 2025-01-02 16:32:05 [2025-01-02 16:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159465', 'tblTempUsageDetail_20' ) start [2025-01-02 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159465', 'tblTempUsageDetail_20' ) end [2025-01-02 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159465', 'tblTempVendorCDR_20' ) start [2025-01-02 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159465', 'tblTempVendorCDR_20' ) end [2025-01-02 16:32:24] Production.INFO: ProcessCDR(1,14159465,1,1,2) [2025-01-02 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159465', 'tblTempUsageDetail_20' ) start [2025-01-02 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159465', 'tblTempUsageDetail_20' ) end [2025-01-02 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:32:27] Production.INFO: ==24961== Releasing lock... [2025-01-02 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:32:27] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:33:05 [end_date_ymd] => 2025-01-02 16:33:05 [RateCDR] => 1 ) [2025-01-02 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:33:05' and `end` < '2025-01-02 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:33:23] Production.INFO: count ==4788 [2025-01-02 16:33:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:33:05 - End Time 2025-01-02 16:33:05 [2025-01-02 16:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159470', 'tblTempUsageDetail_20' ) start [2025-01-02 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159470', 'tblTempUsageDetail_20' ) end [2025-01-02 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159470', 'tblTempVendorCDR_20' ) start [2025-01-02 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159470', 'tblTempVendorCDR_20' ) end [2025-01-02 16:33:25] Production.INFO: ProcessCDR(1,14159470,1,1,2) [2025-01-02 16:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159470', 'tblTempUsageDetail_20' ) start [2025-01-02 16:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159470', 'tblTempUsageDetail_20' ) end [2025-01-02 16:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:33:30] Production.INFO: ==25032== Releasing lock... [2025-01-02 16:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:33:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:34:05 [end_date_ymd] => 2025-01-02 16:34:05 [RateCDR] => 1 ) [2025-01-02 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:34:05' and `end` < '2025-01-02 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:34:19] Production.INFO: count ==4796 [2025-01-02 16:34:20] Production.ERROR: pbx CDR StartTime 2025-01-02 13:34:05 - End Time 2025-01-02 16:34:05 [2025-01-02 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159475', 'tblTempUsageDetail_20' ) start [2025-01-02 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159475', 'tblTempUsageDetail_20' ) end [2025-01-02 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159475', 'tblTempVendorCDR_20' ) start [2025-01-02 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159475', 'tblTempVendorCDR_20' ) end [2025-01-02 16:34:20] Production.INFO: ProcessCDR(1,14159475,1,1,2) [2025-01-02 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159475', 'tblTempUsageDetail_20' ) start [2025-01-02 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159475', 'tblTempUsageDetail_20' ) end [2025-01-02 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:34:25] Production.INFO: ==25106== Releasing lock... [2025-01-02 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:34:25] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:35:05 [end_date_ymd] => 2025-01-02 16:35:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:35:05' and `end` < '2025-01-02 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-01-02 16:35:20] Production.INFO: count ==4803 [2025-01-02 16:35:22] Production.ERROR: pbx CDR StartTime 2025-01-02 13:35:05 - End Time 2025-01-02 16:35:05 [2025-01-02 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159480', 'tblTempUsageDetail_20' ) start [2025-01-02 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159480', 'tblTempUsageDetail_20' ) end [2025-01-02 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159480', 'tblTempVendorCDR_20' ) start [2025-01-02 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159480', 'tblTempVendorCDR_20' ) end [2025-01-02 16:35:22] Production.INFO: ProcessCDR(1,14159480,1,1,2) [2025-01-02 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159480', 'tblTempUsageDetail_20' ) start [2025-01-02 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159480', 'tblTempUsageDetail_20' ) end [2025-01-02 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:35:26] Production.INFO: ==25184== Releasing lock... [2025-01-02 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:35:26] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:36:04 [end_date_ymd] => 2025-01-02 16:36:04 [RateCDR] => 1 ) [2025-01-02 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:36:04' and `end` < '2025-01-02 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:36:18] Production.INFO: count ==4791 [2025-01-02 16:36:19] Production.ERROR: pbx CDR StartTime 2025-01-02 13:36:04 - End Time 2025-01-02 16:36:04 [2025-01-02 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159485', 'tblTempUsageDetail_20' ) start [2025-01-02 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159485', 'tblTempUsageDetail_20' ) end [2025-01-02 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159485', 'tblTempVendorCDR_20' ) start [2025-01-02 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159485', 'tblTempVendorCDR_20' ) end [2025-01-02 16:36:20] Production.INFO: ProcessCDR(1,14159485,1,1,2) [2025-01-02 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159485', 'tblTempUsageDetail_20' ) start [2025-01-02 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159485', 'tblTempUsageDetail_20' ) end [2025-01-02 16:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:36:24] Production.INFO: ==25255== Releasing lock... [2025-01-02 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:36:24] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:37:05 [end_date_ymd] => 2025-01-02 16:37:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:37:05' and `end` < '2025-01-02 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-01-02 16:37:28] Production.INFO: count ==4803 [2025-01-02 16:37:30] Production.ERROR: pbx CDR StartTime 2025-01-02 13:37:05 - End Time 2025-01-02 16:37:05 [2025-01-02 16:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159490', 'tblTempUsageDetail_20' ) start [2025-01-02 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159490', 'tblTempUsageDetail_20' ) end [2025-01-02 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159490', 'tblTempVendorCDR_20' ) start [2025-01-02 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159490', 'tblTempVendorCDR_20' ) end [2025-01-02 16:37:30] Production.INFO: ProcessCDR(1,14159490,1,1,2) [2025-01-02 16:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159490', 'tblTempUsageDetail_20' ) start [2025-01-02 16:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159490', 'tblTempUsageDetail_20' ) end [2025-01-02 16:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:37:35] Production.INFO: ==25326== Releasing lock... [2025-01-02 16:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:37:35] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:38:05 [end_date_ymd] => 2025-01-02 16:38:05 [RateCDR] => 1 ) [2025-01-02 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:38:05' and `end` < '2025-01-02 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:38:31] Production.INFO: count ==4811 [2025-01-02 16:38:38] Production.ERROR: pbx CDR StartTime 2025-01-02 13:38:05 - End Time 2025-01-02 16:38:05 [2025-01-02 16:38:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159495', 'tblTempUsageDetail_20' ) start [2025-01-02 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159495', 'tblTempUsageDetail_20' ) end [2025-01-02 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159495', 'tblTempVendorCDR_20' ) start [2025-01-02 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159495', 'tblTempVendorCDR_20' ) end [2025-01-02 16:38:38] Production.INFO: ProcessCDR(1,14159495,1,1,2) [2025-01-02 16:38:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:38:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:38:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:38:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:38:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159495', 'tblTempUsageDetail_20' ) start [2025-01-02 16:38:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159495', 'tblTempUsageDetail_20' ) end [2025-01-02 16:38:52] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:38:52] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:38:52] Production.INFO: ==25435== Releasing lock... [2025-01-02 16:38:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:38:52] Production.INFO: 64 MB #Memory Used# [2025-01-02 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:39:05 [end_date_ymd] => 2025-01-02 16:39:05 [RateCDR] => 1 ) [2025-01-02 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:39:05' and `end` < '2025-01-02 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:39:30] Production.INFO: count ==4825 [2025-01-02 16:39:32] Production.ERROR: pbx CDR StartTime 2025-01-02 13:39:05 - End Time 2025-01-02 16:39:05 [2025-01-02 16:39:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159500', 'tblTempUsageDetail_20' ) start [2025-01-02 16:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159500', 'tblTempUsageDetail_20' ) end [2025-01-02 16:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159500', 'tblTempVendorCDR_20' ) start [2025-01-02 16:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159500', 'tblTempVendorCDR_20' ) end [2025-01-02 16:39:32] Production.INFO: ProcessCDR(1,14159500,1,1,2) [2025-01-02 16:39:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159500', 'tblTempUsageDetail_20' ) start [2025-01-02 16:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159500', 'tblTempUsageDetail_20' ) end [2025-01-02 16:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:39:36] Production.INFO: ==25508== Releasing lock... [2025-01-02 16:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:39:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:40:05 [end_date_ymd] => 2025-01-02 16:40:05 [RateCDR] => 1 ) [2025-01-02 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:40:05' and `end` < '2025-01-02 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:40:32] Production.INFO: count ==4829 [2025-01-02 16:40:34] Production.ERROR: pbx CDR StartTime 2025-01-02 13:40:05 - End Time 2025-01-02 16:40:05 [2025-01-02 16:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159505', 'tblTempUsageDetail_20' ) start [2025-01-02 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159505', 'tblTempUsageDetail_20' ) end [2025-01-02 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159505', 'tblTempVendorCDR_20' ) start [2025-01-02 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159505', 'tblTempVendorCDR_20' ) end [2025-01-02 16:40:34] Production.INFO: ProcessCDR(1,14159505,1,1,2) [2025-01-02 16:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:40:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:40:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159505', 'tblTempUsageDetail_20' ) start [2025-01-02 16:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159505', 'tblTempUsageDetail_20' ) end [2025-01-02 16:40:38] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:40:38] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:40:38] Production.INFO: ==25582== Releasing lock... [2025-01-02 16:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:40:38] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:41:04 [end_date_ymd] => 2025-01-02 16:41:04 [RateCDR] => 1 ) [2025-01-02 16:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:41:04' and `end` < '2025-01-02 16:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:41:23] Production.INFO: count ==4828 [2025-01-02 16:41:24] Production.ERROR: pbx CDR StartTime 2025-01-02 13:41:04 - End Time 2025-01-02 16:41:04 [2025-01-02 16:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159511', 'tblTempUsageDetail_20' ) start [2025-01-02 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159511', 'tblTempUsageDetail_20' ) end [2025-01-02 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159511', 'tblTempVendorCDR_20' ) start [2025-01-02 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159511', 'tblTempVendorCDR_20' ) end [2025-01-02 16:41:24] Production.INFO: ProcessCDR(1,14159511,1,1,2) [2025-01-02 16:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159511', 'tblTempUsageDetail_20' ) start [2025-01-02 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159511', 'tblTempUsageDetail_20' ) end [2025-01-02 16:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:41:29] Production.INFO: ==25654== Releasing lock... [2025-01-02 16:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:41:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:42:05 [end_date_ymd] => 2025-01-02 16:42:05 [RateCDR] => 1 ) [2025-01-02 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:42:05' and `end` < '2025-01-02 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:42:19] Production.INFO: count ==4848 [2025-01-02 16:42:21] Production.ERROR: pbx CDR StartTime 2025-01-02 13:42:05 - End Time 2025-01-02 16:42:05 [2025-01-02 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159516', 'tblTempUsageDetail_20' ) start [2025-01-02 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159516', 'tblTempUsageDetail_20' ) end [2025-01-02 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159516', 'tblTempVendorCDR_20' ) start [2025-01-02 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159516', 'tblTempVendorCDR_20' ) end [2025-01-02 16:42:21] Production.INFO: ProcessCDR(1,14159516,1,1,2) [2025-01-02 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159516', 'tblTempUsageDetail_20' ) start [2025-01-02 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159516', 'tblTempUsageDetail_20' ) end [2025-01-02 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:42:26] Production.INFO: ==25725== Releasing lock... [2025-01-02 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:42:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:43:05 [end_date_ymd] => 2025-01-02 16:43:05 [RateCDR] => 1 ) [2025-01-02 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:43:05' and `end` < '2025-01-02 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:43:27] Production.INFO: count ==4862 [2025-01-02 16:43:29] Production.ERROR: pbx CDR StartTime 2025-01-02 13:43:05 - End Time 2025-01-02 16:43:05 [2025-01-02 16:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159521', 'tblTempUsageDetail_20' ) start [2025-01-02 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159521', 'tblTempUsageDetail_20' ) end [2025-01-02 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159521', 'tblTempVendorCDR_20' ) start [2025-01-02 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159521', 'tblTempVendorCDR_20' ) end [2025-01-02 16:43:29] Production.INFO: ProcessCDR(1,14159521,1,1,2) [2025-01-02 16:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:43:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:43:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159521', 'tblTempUsageDetail_20' ) start [2025-01-02 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159521', 'tblTempUsageDetail_20' ) end [2025-01-02 16:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:43:34] Production.INFO: ==25796== Releasing lock... [2025-01-02 16:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:43:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:44:05 [end_date_ymd] => 2025-01-02 16:44:05 [RateCDR] => 1 ) [2025-01-02 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:44:05' and `end` < '2025-01-02 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:44:23] Production.INFO: count ==4871 [2025-01-02 16:44:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:44:05 - End Time 2025-01-02 16:44:05 [2025-01-02 16:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159526', 'tblTempUsageDetail_20' ) start [2025-01-02 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159526', 'tblTempUsageDetail_20' ) end [2025-01-02 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159526', 'tblTempVendorCDR_20' ) start [2025-01-02 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159526', 'tblTempVendorCDR_20' ) end [2025-01-02 16:44:25] Production.INFO: ProcessCDR(1,14159526,1,1,2) [2025-01-02 16:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159526', 'tblTempUsageDetail_20' ) start [2025-01-02 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159526', 'tblTempUsageDetail_20' ) end [2025-01-02 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:44:29] Production.INFO: ==25866== Releasing lock... [2025-01-02 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:44:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:45:05 [end_date_ymd] => 2025-01-02 16:45:05 [RateCDR] => 1 ) [2025-01-02 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:45:05' and `end` < '2025-01-02 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:45:19] Production.INFO: count ==4883 [2025-01-02 16:45:21] Production.ERROR: pbx CDR StartTime 2025-01-02 13:45:05 - End Time 2025-01-02 16:45:05 [2025-01-02 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159531', 'tblTempUsageDetail_20' ) start [2025-01-02 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159531', 'tblTempUsageDetail_20' ) end [2025-01-02 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159531', 'tblTempVendorCDR_20' ) start [2025-01-02 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159531', 'tblTempVendorCDR_20' ) end [2025-01-02 16:45:21] Production.INFO: ProcessCDR(1,14159531,1,1,2) [2025-01-02 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159531', 'tblTempUsageDetail_20' ) start [2025-01-02 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159531', 'tblTempUsageDetail_20' ) end [2025-01-02 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:45:26] Production.INFO: ==25937== Releasing lock... [2025-01-02 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:45:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:46:05 [end_date_ymd] => 2025-01-02 16:46:05 [RateCDR] => 1 ) [2025-01-02 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:46:05' and `end` < '2025-01-02 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:46:19] Production.INFO: count ==4897 [2025-01-02 16:46:20] Production.ERROR: pbx CDR StartTime 2025-01-02 13:46:05 - End Time 2025-01-02 16:46:05 [2025-01-02 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159536', 'tblTempUsageDetail_20' ) start [2025-01-02 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159536', 'tblTempUsageDetail_20' ) end [2025-01-02 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159536', 'tblTempVendorCDR_20' ) start [2025-01-02 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159536', 'tblTempVendorCDR_20' ) end [2025-01-02 16:46:21] Production.INFO: ProcessCDR(1,14159536,1,1,2) [2025-01-02 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159536', 'tblTempUsageDetail_20' ) start [2025-01-02 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159536', 'tblTempUsageDetail_20' ) end [2025-01-02 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:46:25] Production.INFO: ==26011== Releasing lock... [2025-01-02 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:46:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:47:05 [end_date_ymd] => 2025-01-02 16:47:05 [RateCDR] => 1 ) [2025-01-02 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:47:05' and `end` < '2025-01-02 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:47:23] Production.INFO: count ==4915 [2025-01-02 16:47:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:47:05 - End Time 2025-01-02 16:47:05 [2025-01-02 16:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159541', 'tblTempUsageDetail_20' ) start [2025-01-02 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159541', 'tblTempUsageDetail_20' ) end [2025-01-02 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159541', 'tblTempVendorCDR_20' ) start [2025-01-02 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159541', 'tblTempVendorCDR_20' ) end [2025-01-02 16:47:25] Production.INFO: ProcessCDR(1,14159541,1,1,2) [2025-01-02 16:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159541', 'tblTempUsageDetail_20' ) start [2025-01-02 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159541', 'tblTempUsageDetail_20' ) end [2025-01-02 16:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:47:30] Production.INFO: ==26082== Releasing lock... [2025-01-02 16:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:47:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:48:05 [end_date_ymd] => 2025-01-02 16:48:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:48:05' and `end` < '2025-01-02 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-01-02 16:48:23] Production.INFO: count ==4909 [2025-01-02 16:48:25] Production.ERROR: pbx CDR StartTime 2025-01-02 13:48:05 - End Time 2025-01-02 16:48:05 [2025-01-02 16:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159546', 'tblTempUsageDetail_20' ) start [2025-01-02 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159546', 'tblTempUsageDetail_20' ) end [2025-01-02 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159546', 'tblTempVendorCDR_20' ) start [2025-01-02 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159546', 'tblTempVendorCDR_20' ) end [2025-01-02 16:48:25] Production.INFO: ProcessCDR(1,14159546,1,1,2) [2025-01-02 16:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159546', 'tblTempUsageDetail_20' ) start [2025-01-02 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159546', 'tblTempUsageDetail_20' ) end [2025-01-02 16:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:48:30] Production.INFO: ==26155== Releasing lock... [2025-01-02 16:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:48:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:49:05 [end_date_ymd] => 2025-01-02 16:49:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:49:05' and `end` < '2025-01-02 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-01-02 16:49:30] Production.INFO: count ==4917 [2025-01-02 16:49:32] Production.ERROR: pbx CDR StartTime 2025-01-02 13:49:05 - End Time 2025-01-02 16:49:05 [2025-01-02 16:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159551', 'tblTempUsageDetail_20' ) start [2025-01-02 16:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159551', 'tblTempUsageDetail_20' ) end [2025-01-02 16:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159551', 'tblTempVendorCDR_20' ) start [2025-01-02 16:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159551', 'tblTempVendorCDR_20' ) end [2025-01-02 16:49:32] Production.INFO: ProcessCDR(1,14159551,1,1,2) [2025-01-02 16:49:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159551', 'tblTempUsageDetail_20' ) start [2025-01-02 16:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159551', 'tblTempUsageDetail_20' ) end [2025-01-02 16:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:49:36] Production.INFO: ==26229== Releasing lock... [2025-01-02 16:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:49:36] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:50:05 [end_date_ymd] => 2025-01-02 16:50:05 [RateCDR] => 1 ) [2025-01-02 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:50:05' and `end` < '2025-01-02 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:50:24] Production.INFO: count ==4901 [2025-01-02 16:50:26] Production.ERROR: pbx CDR StartTime 2025-01-02 13:50:05 - End Time 2025-01-02 16:50:05 [2025-01-02 16:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159556', 'tblTempUsageDetail_20' ) start [2025-01-02 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159556', 'tblTempUsageDetail_20' ) end [2025-01-02 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159556', 'tblTempVendorCDR_20' ) start [2025-01-02 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159556', 'tblTempVendorCDR_20' ) end [2025-01-02 16:50:26] Production.INFO: ProcessCDR(1,14159556,1,1,2) [2025-01-02 16:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159556', 'tblTempUsageDetail_20' ) start [2025-01-02 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159556', 'tblTempUsageDetail_20' ) end [2025-01-02 16:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:50:30] Production.INFO: ==26302== Releasing lock... [2025-01-02 16:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:50:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:51:05 [end_date_ymd] => 2025-01-02 16:51:05 [RateCDR] => 1 ) [2025-01-02 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:51:05' and `end` < '2025-01-02 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:51:21] Production.INFO: count ==4880 [2025-01-02 16:51:23] Production.ERROR: pbx CDR StartTime 2025-01-02 13:51:05 - End Time 2025-01-02 16:51:05 [2025-01-02 16:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159562', 'tblTempUsageDetail_20' ) start [2025-01-02 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159562', 'tblTempUsageDetail_20' ) end [2025-01-02 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159562', 'tblTempVendorCDR_20' ) start [2025-01-02 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159562', 'tblTempVendorCDR_20' ) end [2025-01-02 16:51:23] Production.INFO: ProcessCDR(1,14159562,1,1,2) [2025-01-02 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159562', 'tblTempUsageDetail_20' ) start [2025-01-02 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159562', 'tblTempUsageDetail_20' ) end [2025-01-02 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:51:28] Production.INFO: ==26377== Releasing lock... [2025-01-02 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:51:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:52:04 [end_date_ymd] => 2025-01-02 16:52:04 [RateCDR] => 1 ) [2025-01-02 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:52:04' and `end` < '2025-01-02 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:52:19] Production.INFO: count ==4890 [2025-01-02 16:52:21] Production.ERROR: pbx CDR StartTime 2025-01-02 13:52:04 - End Time 2025-01-02 16:52:04 [2025-01-02 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159567', 'tblTempUsageDetail_20' ) start [2025-01-02 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159567', 'tblTempUsageDetail_20' ) end [2025-01-02 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159567', 'tblTempVendorCDR_20' ) start [2025-01-02 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159567', 'tblTempVendorCDR_20' ) end [2025-01-02 16:52:21] Production.INFO: ProcessCDR(1,14159567,1,1,2) [2025-01-02 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159567', 'tblTempUsageDetail_20' ) start [2025-01-02 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159567', 'tblTempUsageDetail_20' ) end [2025-01-02 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:52:25] Production.INFO: ==26451== Releasing lock... [2025-01-02 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:52:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:53:05 [end_date_ymd] => 2025-01-02 16:53:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:53:05' and `end` < '2025-01-02 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-01-02 16:53:20] Production.INFO: count ==4875 [2025-01-02 16:53:22] Production.ERROR: pbx CDR StartTime 2025-01-02 13:53:05 - End Time 2025-01-02 16:53:05 [2025-01-02 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159572', 'tblTempUsageDetail_20' ) start [2025-01-02 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159572', 'tblTempUsageDetail_20' ) end [2025-01-02 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159572', 'tblTempVendorCDR_20' ) start [2025-01-02 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159572', 'tblTempVendorCDR_20' ) end [2025-01-02 16:53:22] Production.INFO: ProcessCDR(1,14159572,1,1,2) [2025-01-02 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159572', 'tblTempUsageDetail_20' ) start [2025-01-02 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159572', 'tblTempUsageDetail_20' ) end [2025-01-02 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:53:26] Production.INFO: ==26560== Releasing lock... [2025-01-02 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:53:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-02 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:54:05 [end_date_ymd] => 2025-01-02 16:54:05 [RateCDR] => 1 ) [2025-01-02 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:54:05' and `end` < '2025-01-02 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:54:24] Production.INFO: count ==4850 [2025-01-02 16:54:26] Production.ERROR: pbx CDR StartTime 2025-01-02 13:54:05 - End Time 2025-01-02 16:54:05 [2025-01-02 16:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159577', 'tblTempUsageDetail_20' ) start [2025-01-02 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159577', 'tblTempUsageDetail_20' ) end [2025-01-02 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159577', 'tblTempVendorCDR_20' ) start [2025-01-02 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159577', 'tblTempVendorCDR_20' ) end [2025-01-02 16:54:26] Production.INFO: ProcessCDR(1,14159577,1,1,2) [2025-01-02 16:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159577', 'tblTempUsageDetail_20' ) start [2025-01-02 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159577', 'tblTempUsageDetail_20' ) end [2025-01-02 16:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:54:31] Production.INFO: ==26632== Releasing lock... [2025-01-02 16:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:54:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:55:05 [end_date_ymd] => 2025-01-02 16:55:05 [RateCDR] => 1 ) [2025-01-02 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:55:05' and `end` < '2025-01-02 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:55:24] Production.INFO: count ==4856 [2025-01-02 16:55:26] Production.ERROR: pbx CDR StartTime 2025-01-02 13:55:05 - End Time 2025-01-02 16:55:05 [2025-01-02 16:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159582', 'tblTempUsageDetail_20' ) start [2025-01-02 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159582', 'tblTempUsageDetail_20' ) end [2025-01-02 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159582', 'tblTempVendorCDR_20' ) start [2025-01-02 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159582', 'tblTempVendorCDR_20' ) end [2025-01-02 16:55:26] Production.INFO: ProcessCDR(1,14159582,1,1,2) [2025-01-02 16:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159582', 'tblTempUsageDetail_20' ) start [2025-01-02 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159582', 'tblTempUsageDetail_20' ) end [2025-01-02 16:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:55:30] Production.INFO: ==26702== Releasing lock... [2025-01-02 16:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:55:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:56:06 [end_date_ymd] => 2025-01-02 16:56:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:56:06' and `end` < '2025-01-02 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-01-02 16:56:19] Production.INFO: count ==4852 [2025-01-02 16:56:21] Production.ERROR: pbx CDR StartTime 2025-01-02 13:56:06 - End Time 2025-01-02 16:56:06 [2025-01-02 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159587', 'tblTempUsageDetail_20' ) start [2025-01-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159587', 'tblTempUsageDetail_20' ) end [2025-01-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159587', 'tblTempVendorCDR_20' ) start [2025-01-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159587', 'tblTempVendorCDR_20' ) end [2025-01-02 16:56:21] Production.INFO: ProcessCDR(1,14159587,1,1,2) [2025-01-02 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159587', 'tblTempUsageDetail_20' ) start [2025-01-02 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159587', 'tblTempUsageDetail_20' ) end [2025-01-02 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:56:26] Production.INFO: ==26776== Releasing lock... [2025-01-02 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:56:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:57:05 [end_date_ymd] => 2025-01-02 16:57:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 13:57:05' and `end` < '2025-01-02 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-01-02 16:57:22] Production.INFO: count ==4834 [2025-01-02 16:57:24] Production.ERROR: pbx CDR StartTime 2025-01-02 13:57:05 - End Time 2025-01-02 16:57:05 [2025-01-02 16:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159592', 'tblTempUsageDetail_20' ) start [2025-01-02 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159592', 'tblTempUsageDetail_20' ) end [2025-01-02 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159592', 'tblTempVendorCDR_20' ) start [2025-01-02 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159592', 'tblTempVendorCDR_20' ) end [2025-01-02 16:57:24] Production.INFO: ProcessCDR(1,14159592,1,1,2) [2025-01-02 16:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159592', 'tblTempUsageDetail_20' ) start [2025-01-02 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159592', 'tblTempUsageDetail_20' ) end [2025-01-02 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:57:28] Production.INFO: ==26845== Releasing lock... [2025-01-02 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:57:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:58:05 [end_date_ymd] => 2025-01-02 16:58:05 [RateCDR] => 1 ) [2025-01-02 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:58:05' and `end` < '2025-01-02 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:58:34] Production.INFO: count ==4830 [2025-01-02 16:58:36] Production.ERROR: pbx CDR StartTime 2025-01-02 13:58:05 - End Time 2025-01-02 16:58:05 [2025-01-02 16:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159597', 'tblTempUsageDetail_20' ) start [2025-01-02 16:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159597', 'tblTempUsageDetail_20' ) end [2025-01-02 16:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159597', 'tblTempVendorCDR_20' ) start [2025-01-02 16:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159597', 'tblTempVendorCDR_20' ) end [2025-01-02 16:58:36] Production.INFO: ProcessCDR(1,14159597,1,1,2) [2025-01-02 16:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:58:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:58:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:58:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159597', 'tblTempUsageDetail_20' ) start [2025-01-02 16:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159597', 'tblTempUsageDetail_20' ) end [2025-01-02 16:58:41] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:58:41] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:58:41] Production.INFO: ==26916== Releasing lock... [2025-01-02 16:58:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:58:41] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 13:59:05 [end_date_ymd] => 2025-01-02 16:59:05 [RateCDR] => 1 ) [2025-01-02 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 13:59:05' and `end` < '2025-01-02 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 16:59:26] Production.INFO: count ==4831 [2025-01-02 16:59:27] Production.ERROR: pbx CDR StartTime 2025-01-02 13:59:05 - End Time 2025-01-02 16:59:05 [2025-01-02 16:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 16:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159602', 'tblTempUsageDetail_20' ) start [2025-01-02 16:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159602', 'tblTempUsageDetail_20' ) end [2025-01-02 16:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159602', 'tblTempVendorCDR_20' ) start [2025-01-02 16:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159602', 'tblTempVendorCDR_20' ) end [2025-01-02 16:59:27] Production.INFO: ProcessCDR(1,14159602,1,1,2) [2025-01-02 16:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 16:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159602', 'tblTempUsageDetail_20' ) start [2025-01-02 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159602', 'tblTempUsageDetail_20' ) end [2025-01-02 16:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 16:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 16:59:31] Production.INFO: ==26986== Releasing lock... [2025-01-02 16:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 16:59:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:00:06 [end_date_ymd] => 2025-01-02 17:00:06 [RateCDR] => 1 ) [2025-01-02 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:00:06' and `end` < '2025-01-02 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:00:20] Production.INFO: count ==4813 [2025-01-02 17:00:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:00:06 - End Time 2025-01-02 17:00:06 [2025-01-02 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159607', 'tblTempUsageDetail_20' ) start [2025-01-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159607', 'tblTempUsageDetail_20' ) end [2025-01-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159607', 'tblTempVendorCDR_20' ) start [2025-01-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159607', 'tblTempVendorCDR_20' ) end [2025-01-02 17:00:22] Production.INFO: ProcessCDR(1,14159607,1,1,2) [2025-01-02 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159607', 'tblTempUsageDetail_20' ) start [2025-01-02 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159607', 'tblTempUsageDetail_20' ) end [2025-01-02 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:00:27] Production.INFO: ==27058== Releasing lock... [2025-01-02 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:00:27] Production.INFO: 64 MB #Memory Used# [2025-01-02 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:01:05 [end_date_ymd] => 2025-01-02 17:01:05 [RateCDR] => 1 ) [2025-01-02 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:01:05' and `end` < '2025-01-02 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:01:20] Production.INFO: count ==4849 [2025-01-02 17:01:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:01:05 - End Time 2025-01-02 17:01:05 [2025-01-02 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159613', 'tblTempUsageDetail_20' ) start [2025-01-02 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159613', 'tblTempUsageDetail_20' ) end [2025-01-02 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159613', 'tblTempVendorCDR_20' ) start [2025-01-02 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159613', 'tblTempVendorCDR_20' ) end [2025-01-02 17:01:22] Production.INFO: ProcessCDR(1,14159613,1,1,2) [2025-01-02 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159613', 'tblTempUsageDetail_20' ) start [2025-01-02 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159613', 'tblTempUsageDetail_20' ) end [2025-01-02 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:01:26] Production.INFO: ==27144== Releasing lock... [2025-01-02 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:01:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:02:05 [end_date_ymd] => 2025-01-02 17:02:05 [RateCDR] => 1 ) [2025-01-02 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:02:05' and `end` < '2025-01-02 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:02:24] Production.INFO: count ==4837 [2025-01-02 17:02:26] Production.ERROR: pbx CDR StartTime 2025-01-02 14:02:05 - End Time 2025-01-02 17:02:05 [2025-01-02 17:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159618', 'tblTempUsageDetail_20' ) start [2025-01-02 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159618', 'tblTempUsageDetail_20' ) end [2025-01-02 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159618', 'tblTempVendorCDR_20' ) start [2025-01-02 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159618', 'tblTempVendorCDR_20' ) end [2025-01-02 17:02:27] Production.INFO: ProcessCDR(1,14159618,1,1,2) [2025-01-02 17:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159618', 'tblTempUsageDetail_20' ) start [2025-01-02 17:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159618', 'tblTempUsageDetail_20' ) end [2025-01-02 17:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:02:31] Production.INFO: ==27213== Releasing lock... [2025-01-02 17:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:02:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:03:05 [end_date_ymd] => 2025-01-02 17:03:05 [RateCDR] => 1 ) [2025-01-02 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:03:05' and `end` < '2025-01-02 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:03:27] Production.INFO: count ==4848 [2025-01-02 17:03:28] Production.ERROR: pbx CDR StartTime 2025-01-02 14:03:05 - End Time 2025-01-02 17:03:05 [2025-01-02 17:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159623', 'tblTempUsageDetail_20' ) start [2025-01-02 17:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159623', 'tblTempUsageDetail_20' ) end [2025-01-02 17:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159623', 'tblTempVendorCDR_20' ) start [2025-01-02 17:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159623', 'tblTempVendorCDR_20' ) end [2025-01-02 17:03:29] Production.INFO: ProcessCDR(1,14159623,1,1,2) [2025-01-02 17:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159623', 'tblTempUsageDetail_20' ) start [2025-01-02 17:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159623', 'tblTempUsageDetail_20' ) end [2025-01-02 17:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:03:34] Production.INFO: ==27288== Releasing lock... [2025-01-02 17:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:03:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:04:05 [end_date_ymd] => 2025-01-02 17:04:05 [RateCDR] => 1 ) [2025-01-02 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:04:05' and `end` < '2025-01-02 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:04:23] Production.INFO: count ==4845 [2025-01-02 17:04:25] Production.ERROR: pbx CDR StartTime 2025-01-02 14:04:05 - End Time 2025-01-02 17:04:05 [2025-01-02 17:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159628', 'tblTempUsageDetail_20' ) start [2025-01-02 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159628', 'tblTempUsageDetail_20' ) end [2025-01-02 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159628', 'tblTempVendorCDR_20' ) start [2025-01-02 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159628', 'tblTempVendorCDR_20' ) end [2025-01-02 17:04:25] Production.INFO: ProcessCDR(1,14159628,1,1,2) [2025-01-02 17:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159628', 'tblTempUsageDetail_20' ) start [2025-01-02 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159628', 'tblTempUsageDetail_20' ) end [2025-01-02 17:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:04:30] Production.INFO: ==27359== Releasing lock... [2025-01-02 17:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:04:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:05:05 [end_date_ymd] => 2025-01-02 17:05:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:05:05' and `end` < '2025-01-02 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-01-02 17:05:18] Production.INFO: count ==4831 [2025-01-02 17:05:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:05:05 - End Time 2025-01-02 17:05:05 [2025-01-02 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159633', 'tblTempUsageDetail_20' ) start [2025-01-02 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159633', 'tblTempUsageDetail_20' ) end [2025-01-02 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159633', 'tblTempVendorCDR_20' ) start [2025-01-02 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159633', 'tblTempVendorCDR_20' ) end [2025-01-02 17:05:20] Production.INFO: ProcessCDR(1,14159633,1,1,2) [2025-01-02 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159633', 'tblTempUsageDetail_20' ) start [2025-01-02 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159633', 'tblTempUsageDetail_20' ) end [2025-01-02 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:05:25] Production.INFO: ==27429== Releasing lock... [2025-01-02 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:05:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:06:05 [end_date_ymd] => 2025-01-02 17:06:05 [RateCDR] => 1 ) [2025-01-02 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:06:05' and `end` < '2025-01-02 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:06:19] Production.INFO: count ==4829 [2025-01-02 17:06:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:06:05 - End Time 2025-01-02 17:06:05 [2025-01-02 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159638', 'tblTempUsageDetail_20' ) start [2025-01-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159638', 'tblTempUsageDetail_20' ) end [2025-01-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159638', 'tblTempVendorCDR_20' ) start [2025-01-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159638', 'tblTempVendorCDR_20' ) end [2025-01-02 17:06:21] Production.INFO: ProcessCDR(1,14159638,1,1,2) [2025-01-02 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159638', 'tblTempUsageDetail_20' ) start [2025-01-02 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159638', 'tblTempUsageDetail_20' ) end [2025-01-02 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:06:25] Production.INFO: ==27499== Releasing lock... [2025-01-02 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:06:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:07:04 [end_date_ymd] => 2025-01-02 17:07:04 [RateCDR] => 1 ) [2025-01-02 17:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:07:04' and `end` < '2025-01-02 17:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:07:18] Production.INFO: count ==4905 [2025-01-02 17:07:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:07:04 - End Time 2025-01-02 17:07:04 [2025-01-02 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159643', 'tblTempUsageDetail_20' ) start [2025-01-02 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159643', 'tblTempUsageDetail_20' ) end [2025-01-02 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159643', 'tblTempVendorCDR_20' ) start [2025-01-02 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159643', 'tblTempVendorCDR_20' ) end [2025-01-02 17:07:20] Production.INFO: ProcessCDR(1,14159643,1,1,2) [2025-01-02 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159643', 'tblTempUsageDetail_20' ) start [2025-01-02 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159643', 'tblTempUsageDetail_20' ) end [2025-01-02 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:07:24] Production.INFO: ==27573== Releasing lock... [2025-01-02 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:07:24] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:08:04 [end_date_ymd] => 2025-01-02 17:08:04 [RateCDR] => 1 ) [2025-01-02 17:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:08:04' and `end` < '2025-01-02 17:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:08:26] Production.INFO: count ==4905 [2025-01-02 17:08:28] Production.ERROR: pbx CDR StartTime 2025-01-02 14:08:04 - End Time 2025-01-02 17:08:04 [2025-01-02 17:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159648', 'tblTempUsageDetail_20' ) start [2025-01-02 17:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159648', 'tblTempUsageDetail_20' ) end [2025-01-02 17:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159648', 'tblTempVendorCDR_20' ) start [2025-01-02 17:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159648', 'tblTempVendorCDR_20' ) end [2025-01-02 17:08:28] Production.INFO: ProcessCDR(1,14159648,1,1,2) [2025-01-02 17:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159648', 'tblTempUsageDetail_20' ) start [2025-01-02 17:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159648', 'tblTempUsageDetail_20' ) end [2025-01-02 17:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:08:33] Production.INFO: ==27643== Releasing lock... [2025-01-02 17:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:08:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-02 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:09:05 [end_date_ymd] => 2025-01-02 17:09:05 [RateCDR] => 1 ) [2025-01-02 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:09:05' and `end` < '2025-01-02 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:09:18] Production.INFO: count ==4849 [2025-01-02 17:09:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:09:05 - End Time 2025-01-02 17:09:05 [2025-01-02 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159653', 'tblTempUsageDetail_20' ) start [2025-01-02 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159653', 'tblTempUsageDetail_20' ) end [2025-01-02 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159653', 'tblTempVendorCDR_20' ) start [2025-01-02 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159653', 'tblTempVendorCDR_20' ) end [2025-01-02 17:09:20] Production.INFO: ProcessCDR(1,14159653,1,1,2) [2025-01-02 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159653', 'tblTempUsageDetail_20' ) start [2025-01-02 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159653', 'tblTempUsageDetail_20' ) end [2025-01-02 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:09:24] Production.INFO: ==27755== Releasing lock... [2025-01-02 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:09:24] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:10:05 [end_date_ymd] => 2025-01-02 17:10:05 [RateCDR] => 1 ) [2025-01-02 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:10:05' and `end` < '2025-01-02 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:10:24] Production.INFO: count ==4821 [2025-01-02 17:10:26] Production.ERROR: pbx CDR StartTime 2025-01-02 14:10:05 - End Time 2025-01-02 17:10:05 [2025-01-02 17:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159659', 'tblTempUsageDetail_20' ) start [2025-01-02 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159659', 'tblTempUsageDetail_20' ) end [2025-01-02 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159659', 'tblTempVendorCDR_20' ) start [2025-01-02 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159659', 'tblTempVendorCDR_20' ) end [2025-01-02 17:10:26] Production.INFO: ProcessCDR(1,14159659,1,1,2) [2025-01-02 17:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159659', 'tblTempUsageDetail_20' ) start [2025-01-02 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159659', 'tblTempUsageDetail_20' ) end [2025-01-02 17:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:10:29] Production.INFO: ==27828== Releasing lock... [2025-01-02 17:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:10:29] Production.INFO: 64 MB #Memory Used# [2025-01-02 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:11:05 [end_date_ymd] => 2025-01-02 17:11:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:11:05' and `end` < '2025-01-02 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-01-02 17:11:24] Production.INFO: count ==4825 [2025-01-02 17:11:26] Production.ERROR: pbx CDR StartTime 2025-01-02 14:11:05 - End Time 2025-01-02 17:11:05 [2025-01-02 17:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159664', 'tblTempUsageDetail_20' ) start [2025-01-02 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159664', 'tblTempUsageDetail_20' ) end [2025-01-02 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159664', 'tblTempVendorCDR_20' ) start [2025-01-02 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159664', 'tblTempVendorCDR_20' ) end [2025-01-02 17:11:26] Production.INFO: ProcessCDR(1,14159664,1,1,2) [2025-01-02 17:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159664', 'tblTempUsageDetail_20' ) start [2025-01-02 17:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159664', 'tblTempUsageDetail_20' ) end [2025-01-02 17:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:11:31] Production.INFO: ==27901== Releasing lock... [2025-01-02 17:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:11:31] Production.INFO: 64 MB #Memory Used# [2025-01-02 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:12:06 [end_date_ymd] => 2025-01-02 17:12:06 [RateCDR] => 1 ) [2025-01-02 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:12:06' and `end` < '2025-01-02 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:12:19] Production.INFO: count ==4822 [2025-01-02 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:12:06 - End Time 2025-01-02 17:12:06 [2025-01-02 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159669', 'tblTempUsageDetail_20' ) start [2025-01-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159669', 'tblTempUsageDetail_20' ) end [2025-01-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159669', 'tblTempVendorCDR_20' ) start [2025-01-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159669', 'tblTempVendorCDR_20' ) end [2025-01-02 17:12:21] Production.INFO: ProcessCDR(1,14159669,1,1,2) [2025-01-02 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159669', 'tblTempUsageDetail_20' ) start [2025-01-02 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159669', 'tblTempUsageDetail_20' ) end [2025-01-02 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:12:24] Production.INFO: ==27976== Releasing lock... [2025-01-02 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:12:24] Production.INFO: 64 MB #Memory Used# [2025-01-02 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:13:05 [end_date_ymd] => 2025-01-02 17:13:05 [RateCDR] => 1 ) [2025-01-02 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:13:05' and `end` < '2025-01-02 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:13:19] Production.INFO: count ==4826 [2025-01-02 17:13:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:13:05 - End Time 2025-01-02 17:13:05 [2025-01-02 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159674', 'tblTempUsageDetail_20' ) start [2025-01-02 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159674', 'tblTempUsageDetail_20' ) end [2025-01-02 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159674', 'tblTempVendorCDR_20' ) start [2025-01-02 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159674', 'tblTempVendorCDR_20' ) end [2025-01-02 17:13:21] Production.INFO: ProcessCDR(1,14159674,1,1,2) [2025-01-02 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159674', 'tblTempUsageDetail_20' ) start [2025-01-02 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159674', 'tblTempUsageDetail_20' ) end [2025-01-02 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:13:26] Production.INFO: ==28057== Releasing lock... [2025-01-02 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:13:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-02 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:14:05 [end_date_ymd] => 2025-01-02 17:14:05 [RateCDR] => 1 ) [2025-01-02 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:14:05' and `end` < '2025-01-02 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:14:19] Production.INFO: count ==4820 [2025-01-02 17:14:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:14:05 - End Time 2025-01-02 17:14:05 [2025-01-02 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159679', 'tblTempUsageDetail_20' ) start [2025-01-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159679', 'tblTempUsageDetail_20' ) end [2025-01-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159679', 'tblTempVendorCDR_20' ) start [2025-01-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159679', 'tblTempVendorCDR_20' ) end [2025-01-02 17:14:21] Production.INFO: ProcessCDR(1,14159679,1,1,2) [2025-01-02 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159679', 'tblTempUsageDetail_20' ) start [2025-01-02 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159679', 'tblTempUsageDetail_20' ) end [2025-01-02 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:14:25] Production.INFO: ==28134== Releasing lock... [2025-01-02 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:14:25] Production.INFO: 64 MB #Memory Used# [2025-01-02 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:15:04 [end_date_ymd] => 2025-01-02 17:15:04 [RateCDR] => 1 ) [2025-01-02 17:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:15:04' and `end` < '2025-01-02 17:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:15:18] Production.INFO: count ==4765 [2025-01-02 17:15:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:15:04 - End Time 2025-01-02 17:15:04 [2025-01-02 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159684', 'tblTempUsageDetail_20' ) start [2025-01-02 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159684', 'tblTempUsageDetail_20' ) end [2025-01-02 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159684', 'tblTempVendorCDR_20' ) start [2025-01-02 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159684', 'tblTempVendorCDR_20' ) end [2025-01-02 17:15:20] Production.INFO: ProcessCDR(1,14159684,1,1,2) [2025-01-02 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159684', 'tblTempUsageDetail_20' ) start [2025-01-02 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159684', 'tblTempUsageDetail_20' ) end [2025-01-02 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:15:23] Production.INFO: ==28207== Releasing lock... [2025-01-02 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:15:23] Production.INFO: 63.75 MB #Memory Used# [2025-01-02 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:16:05 [end_date_ymd] => 2025-01-02 17:16:05 [RateCDR] => 1 ) [2025-01-02 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:16:05' and `end` < '2025-01-02 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:16:19] Production.INFO: count ==4751 [2025-01-02 17:16:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:16:05 - End Time 2025-01-02 17:16:05 [2025-01-02 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159689', 'tblTempUsageDetail_20' ) start [2025-01-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159689', 'tblTempUsageDetail_20' ) end [2025-01-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159689', 'tblTempVendorCDR_20' ) start [2025-01-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159689', 'tblTempVendorCDR_20' ) end [2025-01-02 17:16:21] Production.INFO: ProcessCDR(1,14159689,1,1,2) [2025-01-02 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159689', 'tblTempUsageDetail_20' ) start [2025-01-02 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159689', 'tblTempUsageDetail_20' ) end [2025-01-02 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:16:25] Production.INFO: ==28303== Releasing lock... [2025-01-02 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:16:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:17:05 [end_date_ymd] => 2025-01-02 17:17:05 [RateCDR] => 1 ) [2025-01-02 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:17:05' and `end` < '2025-01-02 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:17:28] Production.INFO: count ==4733 [2025-01-02 17:17:30] Production.ERROR: pbx CDR StartTime 2025-01-02 14:17:05 - End Time 2025-01-02 17:17:05 [2025-01-02 17:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159694', 'tblTempUsageDetail_20' ) start [2025-01-02 17:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159694', 'tblTempUsageDetail_20' ) end [2025-01-02 17:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159694', 'tblTempVendorCDR_20' ) start [2025-01-02 17:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159694', 'tblTempVendorCDR_20' ) end [2025-01-02 17:17:30] Production.INFO: ProcessCDR(1,14159694,1,1,2) [2025-01-02 17:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159694', 'tblTempUsageDetail_20' ) start [2025-01-02 17:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159694', 'tblTempUsageDetail_20' ) end [2025-01-02 17:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:17:35] Production.INFO: ==28378== Releasing lock... [2025-01-02 17:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:17:35] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:18:05 [end_date_ymd] => 2025-01-02 17:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:18:05' and `end` < '2025-01-02 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-01-02 17:18:22] Production.INFO: count ==4728 [2025-01-02 17:18:24] Production.ERROR: pbx CDR StartTime 2025-01-02 14:18:05 - End Time 2025-01-02 17:18:05 [2025-01-02 17:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159699', 'tblTempUsageDetail_20' ) start [2025-01-02 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159699', 'tblTempUsageDetail_20' ) end [2025-01-02 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159699', 'tblTempVendorCDR_20' ) start [2025-01-02 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159699', 'tblTempVendorCDR_20' ) end [2025-01-02 17:18:24] Production.INFO: ProcessCDR(1,14159699,1,1,2) [2025-01-02 17:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159699', 'tblTempUsageDetail_20' ) start [2025-01-02 17:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159699', 'tblTempUsageDetail_20' ) end [2025-01-02 17:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:18:29] Production.INFO: ==28451== Releasing lock... [2025-01-02 17:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:18:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-02 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:19:06 [end_date_ymd] => 2025-01-02 17:19:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:19:06' and `end` < '2025-01-02 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-01-02 17:19:20] Production.INFO: count ==4709 [2025-01-02 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:19:06 - End Time 2025-01-02 17:19:06 [2025-01-02 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159704', 'tblTempUsageDetail_20' ) start [2025-01-02 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159704', 'tblTempUsageDetail_20' ) end [2025-01-02 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159704', 'tblTempVendorCDR_20' ) start [2025-01-02 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159704', 'tblTempVendorCDR_20' ) end [2025-01-02 17:19:22] Production.INFO: ProcessCDR(1,14159704,1,1,2) [2025-01-02 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159704', 'tblTempUsageDetail_20' ) start [2025-01-02 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159704', 'tblTempUsageDetail_20' ) end [2025-01-02 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:19:26] Production.INFO: ==28525== Releasing lock... [2025-01-02 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:20:06 [end_date_ymd] => 2025-01-02 17:20:06 [RateCDR] => 1 ) [2025-01-02 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:20:06' and `end` < '2025-01-02 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:20:19] Production.INFO: count ==4700 [2025-01-02 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:20:06 - End Time 2025-01-02 17:20:06 [2025-01-02 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159709', 'tblTempUsageDetail_20' ) start [2025-01-02 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159709', 'tblTempUsageDetail_20' ) end [2025-01-02 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159709', 'tblTempVendorCDR_20' ) start [2025-01-02 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159709', 'tblTempVendorCDR_20' ) end [2025-01-02 17:20:21] Production.INFO: ProcessCDR(1,14159709,1,1,2) [2025-01-02 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159709', 'tblTempUsageDetail_20' ) start [2025-01-02 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159709', 'tblTempUsageDetail_20' ) end [2025-01-02 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:20:24] Production.INFO: ==28600== Releasing lock... [2025-01-02 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:20:24] Production.INFO: 63.25 MB #Memory Used# [2025-01-02 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:21:05 [end_date_ymd] => 2025-01-02 17:21:05 [RateCDR] => 1 ) [2025-01-02 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:21:05' and `end` < '2025-01-02 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:21:20] Production.INFO: count ==4652 [2025-01-02 17:21:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:21:05 - End Time 2025-01-02 17:21:05 [2025-01-02 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159715', 'tblTempUsageDetail_20' ) start [2025-01-02 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159715', 'tblTempUsageDetail_20' ) end [2025-01-02 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159715', 'tblTempVendorCDR_20' ) start [2025-01-02 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159715', 'tblTempVendorCDR_20' ) end [2025-01-02 17:21:22] Production.INFO: ProcessCDR(1,14159715,1,1,2) [2025-01-02 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159715', 'tblTempUsageDetail_20' ) start [2025-01-02 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159715', 'tblTempUsageDetail_20' ) end [2025-01-02 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:21:27] Production.INFO: ==28676== Releasing lock... [2025-01-02 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:21:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:22:05 [end_date_ymd] => 2025-01-02 17:22:05 [RateCDR] => 1 ) [2025-01-02 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:22:05' and `end` < '2025-01-02 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:22:20] Production.INFO: count ==4646 [2025-01-02 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:22:05 - End Time 2025-01-02 17:22:05 [2025-01-02 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159720', 'tblTempUsageDetail_20' ) start [2025-01-02 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159720', 'tblTempUsageDetail_20' ) end [2025-01-02 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159720', 'tblTempVendorCDR_20' ) start [2025-01-02 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159720', 'tblTempVendorCDR_20' ) end [2025-01-02 17:22:21] Production.INFO: ProcessCDR(1,14159720,1,1,2) [2025-01-02 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159720', 'tblTempUsageDetail_20' ) start [2025-01-02 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159720', 'tblTempUsageDetail_20' ) end [2025-01-02 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:22:26] Production.INFO: ==28753== Releasing lock... [2025-01-02 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:22:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:23:05 [end_date_ymd] => 2025-01-02 17:23:05 [RateCDR] => 1 ) [2025-01-02 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:23:05' and `end` < '2025-01-02 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:23:20] Production.INFO: count ==4646 [2025-01-02 17:23:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:23:05 - End Time 2025-01-02 17:23:05 [2025-01-02 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159725', 'tblTempUsageDetail_20' ) start [2025-01-02 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159725', 'tblTempUsageDetail_20' ) end [2025-01-02 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159725', 'tblTempVendorCDR_20' ) start [2025-01-02 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159725', 'tblTempVendorCDR_20' ) end [2025-01-02 17:23:22] Production.INFO: ProcessCDR(1,14159725,1,1,2) [2025-01-02 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159725', 'tblTempUsageDetail_20' ) start [2025-01-02 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159725', 'tblTempUsageDetail_20' ) end [2025-01-02 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:23:27] Production.INFO: ==28830== Releasing lock... [2025-01-02 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:23:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:24:04 [end_date_ymd] => 2025-01-02 17:24:04 [RateCDR] => 1 ) [2025-01-02 17:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:24:04' and `end` < '2025-01-02 17:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:24:21] Production.INFO: count ==4649 [2025-01-02 17:24:23] Production.ERROR: pbx CDR StartTime 2025-01-02 14:24:04 - End Time 2025-01-02 17:24:04 [2025-01-02 17:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159730', 'tblTempUsageDetail_20' ) start [2025-01-02 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159730', 'tblTempUsageDetail_20' ) end [2025-01-02 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159730', 'tblTempVendorCDR_20' ) start [2025-01-02 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159730', 'tblTempVendorCDR_20' ) end [2025-01-02 17:24:23] Production.INFO: ProcessCDR(1,14159730,1,1,2) [2025-01-02 17:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159730', 'tblTempUsageDetail_20' ) start [2025-01-02 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159730', 'tblTempUsageDetail_20' ) end [2025-01-02 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:24:28] Production.INFO: ==28903== Releasing lock... [2025-01-02 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:24:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:25:05 [end_date_ymd] => 2025-01-02 17:25:05 [RateCDR] => 1 ) [2025-01-02 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:25:05' and `end` < '2025-01-02 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:25:19] Production.INFO: count ==4636 [2025-01-02 17:25:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:25:05 - End Time 2025-01-02 17:25:05 [2025-01-02 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159735', 'tblTempUsageDetail_20' ) start [2025-01-02 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159735', 'tblTempUsageDetail_20' ) end [2025-01-02 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159735', 'tblTempVendorCDR_20' ) start [2025-01-02 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159735', 'tblTempVendorCDR_20' ) end [2025-01-02 17:25:21] Production.INFO: ProcessCDR(1,14159735,1,1,2) [2025-01-02 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159735', 'tblTempUsageDetail_20' ) start [2025-01-02 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159735', 'tblTempUsageDetail_20' ) end [2025-01-02 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:25:24] Production.INFO: ==29011== Releasing lock... [2025-01-02 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:25:24] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 17:26:17] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:26:17 [end_date_ymd] => 2025-01-02 17:26:17 [RateCDR] => 1 ) [2025-01-02 17:26: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-01-02 14:26:17' and `end` < '2025-01-02 17:26: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-01-02 17:26:33] Production.INFO: count ==4633 [2025-01-02 17:27:47] Production.ERROR: pbx CDR StartTime 2025-01-02 14:26:17 - End Time 2025-01-02 17:26:17 [2025-01-02 17:27:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:27:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159740', 'tblTempUsageDetail_20' ) start [2025-01-02 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159740', 'tblTempUsageDetail_20' ) end [2025-01-02 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159740', 'tblTempVendorCDR_20' ) start [2025-01-02 17:27:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159740', 'tblTempVendorCDR_20' ) end [2025-01-02 17:27:52] Production.INFO: ProcessCDR(1,14159740,1,1,2) [2025-01-02 17:27:52] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:28:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:28:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:28:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:28:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159740', 'tblTempUsageDetail_20' ) start [2025-01-02 17:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159740', 'tblTempUsageDetail_20' ) end [2025-01-02 17:28:39] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:28:39] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:28:41] Production.INFO: ==29083== Releasing lock... [2025-01-02 17:28:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:28:41] Production.INFO: 62.75 MB #Memory Used# [2025-01-02 17:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:29:18 [end_date_ymd] => 2025-01-02 17:29:18 [RateCDR] => 1 ) [2025-01-02 17:29: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-01-02 14:29:18' and `end` < '2025-01-02 17:29: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-01-02 17:29:34] Production.INFO: count ==4602 [2025-01-02 17:30:31] Production.ERROR: pbx CDR StartTime 2025-01-02 14:29:18 - End Time 2025-01-02 17:29:18 [2025-01-02 17:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159751', 'tblTempUsageDetail_20' ) start [2025-01-02 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159751', 'tblTempUsageDetail_20' ) end [2025-01-02 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159751', 'tblTempVendorCDR_20' ) start [2025-01-02 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159751', 'tblTempVendorCDR_20' ) end [2025-01-02 17:30:37] Production.INFO: ProcessCDR(1,14159751,1,1,2) [2025-01-02 17:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:30:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:30:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159751', 'tblTempUsageDetail_20' ) start [2025-01-02 17:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159751', 'tblTempUsageDetail_20' ) end [2025-01-02 17:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:31:34] Production.INFO: ==29278== Releasing lock... [2025-01-02 17:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:31:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-02 17:32:31] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:32:31 [end_date_ymd] => 2025-01-02 17:32:31 [RateCDR] => 1 ) [2025-01-02 17:32:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:32:31' and `end` < '2025-01-02 17:32:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:32:47] Production.INFO: count ==4586 [2025-01-02 17:33:29] Production.ERROR: pbx CDR StartTime 2025-01-02 14:32:31 - End Time 2025-01-02 17:32:31 [2025-01-02 17:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159763', 'tblTempUsageDetail_20' ) start [2025-01-02 17:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159763', 'tblTempUsageDetail_20' ) end [2025-01-02 17:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159763', 'tblTempVendorCDR_20' ) start [2025-01-02 17:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159763', 'tblTempVendorCDR_20' ) end [2025-01-02 17:33:33] Production.INFO: ProcessCDR(1,14159763,1,1,2) [2025-01-02 17:33:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:33:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:33:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159763', 'tblTempUsageDetail_20' ) start [2025-01-02 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159763', 'tblTempUsageDetail_20' ) end [2025-01-02 17:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:34:29] Production.INFO: ==29487== Releasing lock... [2025-01-02 17:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:34:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-02 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:35:05 [end_date_ymd] => 2025-01-02 17:35:05 [RateCDR] => 1 ) [2025-01-02 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:35:05' and `end` < '2025-01-02 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:35:18] Production.INFO: count ==4528 [2025-01-02 17:35:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:35:05 - End Time 2025-01-02 17:35:05 [2025-01-02 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159774', 'tblTempUsageDetail_20' ) start [2025-01-02 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159774', 'tblTempUsageDetail_20' ) end [2025-01-02 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159774', 'tblTempVendorCDR_20' ) start [2025-01-02 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159774', 'tblTempVendorCDR_20' ) end [2025-01-02 17:35:20] Production.INFO: ProcessCDR(1,14159774,1,1,2) [2025-01-02 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159774', 'tblTempUsageDetail_20' ) start [2025-01-02 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159774', 'tblTempUsageDetail_20' ) end [2025-01-02 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:35:25] Production.INFO: ==29684== Releasing lock... [2025-01-02 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:35:25] Production.INFO: 62 MB #Memory Used# [2025-01-02 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:36:05 [end_date_ymd] => 2025-01-02 17:36:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:36:05' and `end` < '2025-01-02 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-01-02 17:36:18] Production.INFO: count ==4480 [2025-01-02 17:36:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:36:05 - End Time 2025-01-02 17:36:05 [2025-01-02 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159779', 'tblTempUsageDetail_20' ) start [2025-01-02 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159779', 'tblTempUsageDetail_20' ) end [2025-01-02 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159779', 'tblTempVendorCDR_20' ) start [2025-01-02 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159779', 'tblTempVendorCDR_20' ) end [2025-01-02 17:36:20] Production.INFO: ProcessCDR(1,14159779,1,1,2) [2025-01-02 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159779', 'tblTempUsageDetail_20' ) start [2025-01-02 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159779', 'tblTempUsageDetail_20' ) end [2025-01-02 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:36:25] Production.INFO: ==29758== Releasing lock... [2025-01-02 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:36:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:37:05 [end_date_ymd] => 2025-01-02 17:37:05 [RateCDR] => 1 ) [2025-01-02 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:37:05' and `end` < '2025-01-02 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:37:18] Production.INFO: count ==4482 [2025-01-02 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:37:05 - End Time 2025-01-02 17:37:05 [2025-01-02 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159784', 'tblTempUsageDetail_20' ) start [2025-01-02 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159784', 'tblTempUsageDetail_20' ) end [2025-01-02 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159784', 'tblTempVendorCDR_20' ) start [2025-01-02 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159784', 'tblTempVendorCDR_20' ) end [2025-01-02 17:37:20] Production.INFO: ProcessCDR(1,14159784,1,1,2) [2025-01-02 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159784', 'tblTempUsageDetail_20' ) start [2025-01-02 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159784', 'tblTempUsageDetail_20' ) end [2025-01-02 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:37:25] Production.INFO: ==29830== Releasing lock... [2025-01-02 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:38:05 [end_date_ymd] => 2025-01-02 17:38:05 [RateCDR] => 1 ) [2025-01-02 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:38:05' and `end` < '2025-01-02 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:38:18] Production.INFO: count ==4481 [2025-01-02 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:38:05 - End Time 2025-01-02 17:38:05 [2025-01-02 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159789', 'tblTempUsageDetail_20' ) start [2025-01-02 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159789', 'tblTempUsageDetail_20' ) end [2025-01-02 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159789', 'tblTempVendorCDR_20' ) start [2025-01-02 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159789', 'tblTempVendorCDR_20' ) end [2025-01-02 17:38:20] Production.INFO: ProcessCDR(1,14159789,1,1,2) [2025-01-02 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159789', 'tblTempUsageDetail_20' ) start [2025-01-02 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159789', 'tblTempUsageDetail_20' ) end [2025-01-02 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:38:25] Production.INFO: ==29902== Releasing lock... [2025-01-02 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:38:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:39:05 [end_date_ymd] => 2025-01-02 17:39:05 [RateCDR] => 1 ) [2025-01-02 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:39:05' and `end` < '2025-01-02 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:39:18] Production.INFO: count ==4466 [2025-01-02 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:39:05 - End Time 2025-01-02 17:39:05 [2025-01-02 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159794', 'tblTempUsageDetail_20' ) start [2025-01-02 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159794', 'tblTempUsageDetail_20' ) end [2025-01-02 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159794', 'tblTempVendorCDR_20' ) start [2025-01-02 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159794', 'tblTempVendorCDR_20' ) end [2025-01-02 17:39:20] Production.INFO: ProcessCDR(1,14159794,1,1,2) [2025-01-02 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159794', 'tblTempUsageDetail_20' ) start [2025-01-02 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159794', 'tblTempUsageDetail_20' ) end [2025-01-02 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:39:25] Production.INFO: ==29973== Releasing lock... [2025-01-02 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:39:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:40:06 [end_date_ymd] => 2025-01-02 17:40:06 [RateCDR] => 1 ) [2025-01-02 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:40:06' and `end` < '2025-01-02 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:40:19] Production.INFO: count ==4461 [2025-01-02 17:40:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:40:06 - End Time 2025-01-02 17:40:06 [2025-01-02 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159800', 'tblTempUsageDetail_20' ) start [2025-01-02 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159800', 'tblTempUsageDetail_20' ) end [2025-01-02 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159800', 'tblTempVendorCDR_20' ) start [2025-01-02 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159800', 'tblTempVendorCDR_20' ) end [2025-01-02 17:40:21] Production.INFO: ProcessCDR(1,14159800,1,1,2) [2025-01-02 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159800', 'tblTempUsageDetail_20' ) start [2025-01-02 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159800', 'tblTempUsageDetail_20' ) end [2025-01-02 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:40:26] Production.INFO: ==30086== Releasing lock... [2025-01-02 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:40:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-02 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:41:05 [end_date_ymd] => 2025-01-02 17:41:05 [RateCDR] => 1 ) [2025-01-02 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:41:05' and `end` < '2025-01-02 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:41:20] Production.INFO: count ==4420 [2025-01-02 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:41:05 - End Time 2025-01-02 17:41:05 [2025-01-02 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159805', 'tblTempUsageDetail_20' ) start [2025-01-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159805', 'tblTempUsageDetail_20' ) end [2025-01-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159805', 'tblTempVendorCDR_20' ) start [2025-01-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159805', 'tblTempVendorCDR_20' ) end [2025-01-02 17:41:22] Production.INFO: ProcessCDR(1,14159805,1,1,2) [2025-01-02 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159805', 'tblTempUsageDetail_20' ) start [2025-01-02 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159805', 'tblTempUsageDetail_20' ) end [2025-01-02 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:41:27] Production.INFO: ==30158== Releasing lock... [2025-01-02 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:41:27] Production.INFO: 61 MB #Memory Used# [2025-01-02 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:42:04 [end_date_ymd] => 2025-01-02 17:42:04 [RateCDR] => 1 ) [2025-01-02 17:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:42:04' and `end` < '2025-01-02 17:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:42:18] Production.INFO: count ==4404 [2025-01-02 17:42:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:42:04 - End Time 2025-01-02 17:42:04 [2025-01-02 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159810', 'tblTempUsageDetail_20' ) start [2025-01-02 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159810', 'tblTempUsageDetail_20' ) end [2025-01-02 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159810', 'tblTempVendorCDR_20' ) start [2025-01-02 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159810', 'tblTempVendorCDR_20' ) end [2025-01-02 17:42:20] Production.INFO: ProcessCDR(1,14159810,1,1,2) [2025-01-02 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159810', 'tblTempUsageDetail_20' ) start [2025-01-02 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159810', 'tblTempUsageDetail_20' ) end [2025-01-02 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:42:25] Production.INFO: ==30229== Releasing lock... [2025-01-02 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:42:25] Production.INFO: 61 MB #Memory Used# [2025-01-02 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:43:05 [end_date_ymd] => 2025-01-02 17:43:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:43:05' and `end` < '2025-01-02 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-01-02 17:43:18] Production.INFO: count ==4390 [2025-01-02 17:43:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:43:05 - End Time 2025-01-02 17:43:05 [2025-01-02 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159815', 'tblTempUsageDetail_20' ) start [2025-01-02 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159815', 'tblTempUsageDetail_20' ) end [2025-01-02 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159815', 'tblTempVendorCDR_20' ) start [2025-01-02 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159815', 'tblTempVendorCDR_20' ) end [2025-01-02 17:43:20] Production.INFO: ProcessCDR(1,14159815,1,1,2) [2025-01-02 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159815', 'tblTempUsageDetail_20' ) start [2025-01-02 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159815', 'tblTempUsageDetail_20' ) end [2025-01-02 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:43:25] Production.INFO: ==30303== Releasing lock... [2025-01-02 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:43:25] Production.INFO: 61 MB #Memory Used# [2025-01-02 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:44:05 [end_date_ymd] => 2025-01-02 17:44:05 [RateCDR] => 1 ) [2025-01-02 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:44:05' and `end` < '2025-01-02 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:44:18] Production.INFO: count ==4370 [2025-01-02 17:44:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:44:05 - End Time 2025-01-02 17:44:05 [2025-01-02 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159820', 'tblTempUsageDetail_20' ) start [2025-01-02 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159820', 'tblTempUsageDetail_20' ) end [2025-01-02 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159820', 'tblTempVendorCDR_20' ) start [2025-01-02 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159820', 'tblTempVendorCDR_20' ) end [2025-01-02 17:44:20] Production.INFO: ProcessCDR(1,14159820,1,1,2) [2025-01-02 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159820', 'tblTempUsageDetail_20' ) start [2025-01-02 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159820', 'tblTempUsageDetail_20' ) end [2025-01-02 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:44:25] Production.INFO: ==30375== Releasing lock... [2025-01-02 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:44:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-02 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:45:05 [end_date_ymd] => 2025-01-02 17:45:05 [RateCDR] => 1 ) [2025-01-02 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:45:05' and `end` < '2025-01-02 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:45:22] Production.INFO: count ==4386 [2025-01-02 17:45:24] Production.ERROR: pbx CDR StartTime 2025-01-02 14:45:05 - End Time 2025-01-02 17:45:05 [2025-01-02 17:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159825', 'tblTempUsageDetail_20' ) start [2025-01-02 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159825', 'tblTempUsageDetail_20' ) end [2025-01-02 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159825', 'tblTempVendorCDR_20' ) start [2025-01-02 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159825', 'tblTempVendorCDR_20' ) end [2025-01-02 17:45:24] Production.INFO: ProcessCDR(1,14159825,1,1,2) [2025-01-02 17:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159825', 'tblTempUsageDetail_20' ) start [2025-01-02 17:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159825', 'tblTempUsageDetail_20' ) end [2025-01-02 17:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:45:29] Production.INFO: ==30446== Releasing lock... [2025-01-02 17:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:45:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-02 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:46:04 [end_date_ymd] => 2025-01-02 17:46:04 [RateCDR] => 1 ) [2025-01-02 17:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:46:04' and `end` < '2025-01-02 17:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:46:18] Production.INFO: count ==4368 [2025-01-02 17:46:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:46:04 - End Time 2025-01-02 17:46:04 [2025-01-02 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159830', 'tblTempUsageDetail_20' ) start [2025-01-02 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159830', 'tblTempUsageDetail_20' ) end [2025-01-02 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159830', 'tblTempVendorCDR_20' ) start [2025-01-02 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159830', 'tblTempVendorCDR_20' ) end [2025-01-02 17:46:20] Production.INFO: ProcessCDR(1,14159830,1,1,2) [2025-01-02 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159830', 'tblTempUsageDetail_20' ) start [2025-01-02 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159830', 'tblTempUsageDetail_20' ) end [2025-01-02 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:46:24] Production.INFO: ==30515== Releasing lock... [2025-01-02 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:46:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-02 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:47:04 [end_date_ymd] => 2025-01-02 17:47:04 [RateCDR] => 1 ) [2025-01-02 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:47:04' and `end` < '2025-01-02 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:47:19] Production.INFO: count ==4354 [2025-01-02 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:47:04 - End Time 2025-01-02 17:47:04 [2025-01-02 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159835', 'tblTempUsageDetail_20' ) start [2025-01-02 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159835', 'tblTempUsageDetail_20' ) end [2025-01-02 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159835', 'tblTempVendorCDR_20' ) start [2025-01-02 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159835', 'tblTempVendorCDR_20' ) end [2025-01-02 17:47:20] Production.INFO: ProcessCDR(1,14159835,1,1,2) [2025-01-02 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159835', 'tblTempUsageDetail_20' ) start [2025-01-02 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159835', 'tblTempUsageDetail_20' ) end [2025-01-02 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:47:25] Production.INFO: ==30587== Releasing lock... [2025-01-02 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:47:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:48:05 [end_date_ymd] => 2025-01-02 17:48:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 14:48:05' and `end` < '2025-01-02 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-01-02 17:48:19] Production.INFO: count ==4341 [2025-01-02 17:48:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:48:05 - End Time 2025-01-02 17:48:05 [2025-01-02 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159840', 'tblTempUsageDetail_20' ) start [2025-01-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159840', 'tblTempUsageDetail_20' ) end [2025-01-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159840', 'tblTempVendorCDR_20' ) start [2025-01-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159840', 'tblTempVendorCDR_20' ) end [2025-01-02 17:48:21] Production.INFO: ProcessCDR(1,14159840,1,1,2) [2025-01-02 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159840', 'tblTempUsageDetail_20' ) start [2025-01-02 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159840', 'tblTempUsageDetail_20' ) end [2025-01-02 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:48:26] Production.INFO: ==30658== Releasing lock... [2025-01-02 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:48:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:49:04 [end_date_ymd] => 2025-01-02 17:49:04 [RateCDR] => 1 ) [2025-01-02 17:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:49:04' and `end` < '2025-01-02 17:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:49:18] Production.INFO: count ==4334 [2025-01-02 17:49:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:49:04 - End Time 2025-01-02 17:49:04 [2025-01-02 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159845', 'tblTempUsageDetail_20' ) start [2025-01-02 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159845', 'tblTempUsageDetail_20' ) end [2025-01-02 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159845', 'tblTempVendorCDR_20' ) start [2025-01-02 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159845', 'tblTempVendorCDR_20' ) end [2025-01-02 17:49:20] Production.INFO: ProcessCDR(1,14159845,1,1,2) [2025-01-02 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159845', 'tblTempUsageDetail_20' ) start [2025-01-02 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159845', 'tblTempUsageDetail_20' ) end [2025-01-02 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:49:24] Production.INFO: ==30729== Releasing lock... [2025-01-02 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:49:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:50:06 [end_date_ymd] => 2025-01-02 17:50:06 [RateCDR] => 1 ) [2025-01-02 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:50:06' and `end` < '2025-01-02 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:50:19] Production.INFO: count ==4329 [2025-01-02 17:50:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:50:06 - End Time 2025-01-02 17:50:06 [2025-01-02 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159851', 'tblTempUsageDetail_20' ) start [2025-01-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159851', 'tblTempUsageDetail_20' ) end [2025-01-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159851', 'tblTempVendorCDR_20' ) start [2025-01-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159851', 'tblTempVendorCDR_20' ) end [2025-01-02 17:50:21] Production.INFO: ProcessCDR(1,14159851,1,1,2) [2025-01-02 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159851', 'tblTempUsageDetail_20' ) start [2025-01-02 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159851', 'tblTempUsageDetail_20' ) end [2025-01-02 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:50:25] Production.INFO: ==30802== Releasing lock... [2025-01-02 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:50:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-02 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:51:04 [end_date_ymd] => 2025-01-02 17:51:04 [RateCDR] => 1 ) [2025-01-02 17:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:51:04' and `end` < '2025-01-02 17:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:51:18] Production.INFO: count ==4274 [2025-01-02 17:51:19] Production.ERROR: pbx CDR StartTime 2025-01-02 14:51:04 - End Time 2025-01-02 17:51:04 [2025-01-02 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159856', 'tblTempUsageDetail_20' ) start [2025-01-02 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159856', 'tblTempUsageDetail_20' ) end [2025-01-02 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159856', 'tblTempVendorCDR_20' ) start [2025-01-02 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159856', 'tblTempVendorCDR_20' ) end [2025-01-02 17:51:19] Production.INFO: ProcessCDR(1,14159856,1,1,2) [2025-01-02 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159856', 'tblTempUsageDetail_20' ) start [2025-01-02 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159856', 'tblTempUsageDetail_20' ) end [2025-01-02 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:51:24] Production.INFO: ==30874== Releasing lock... [2025-01-02 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:51:24] Production.INFO: 60 MB #Memory Used# [2025-01-02 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:52:05 [end_date_ymd] => 2025-01-02 17:52:05 [RateCDR] => 1 ) [2025-01-02 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:52:05' and `end` < '2025-01-02 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:52:18] Production.INFO: count ==4263 [2025-01-02 17:52:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:52:05 - End Time 2025-01-02 17:52:05 [2025-01-02 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159861', 'tblTempUsageDetail_20' ) start [2025-01-02 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159861', 'tblTempUsageDetail_20' ) end [2025-01-02 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159861', 'tblTempVendorCDR_20' ) start [2025-01-02 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159861', 'tblTempVendorCDR_20' ) end [2025-01-02 17:52:20] Production.INFO: ProcessCDR(1,14159861,1,1,2) [2025-01-02 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159861', 'tblTempUsageDetail_20' ) start [2025-01-02 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159861', 'tblTempUsageDetail_20' ) end [2025-01-02 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:52:24] Production.INFO: ==30944== Releasing lock... [2025-01-02 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:52:24] Production.INFO: 60 MB #Memory Used# [2025-01-02 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:53:05 [end_date_ymd] => 2025-01-02 17:53:05 [RateCDR] => 1 ) [2025-01-02 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:53:05' and `end` < '2025-01-02 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:53:20] Production.INFO: count ==4248 [2025-01-02 17:53:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:53:05 - End Time 2025-01-02 17:53:05 [2025-01-02 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159866', 'tblTempUsageDetail_20' ) start [2025-01-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159866', 'tblTempUsageDetail_20' ) end [2025-01-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159866', 'tblTempVendorCDR_20' ) start [2025-01-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159866', 'tblTempVendorCDR_20' ) end [2025-01-02 17:53:22] Production.INFO: ProcessCDR(1,14159866,1,1,2) [2025-01-02 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159866', 'tblTempUsageDetail_20' ) start [2025-01-02 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159866', 'tblTempUsageDetail_20' ) end [2025-01-02 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:53:26] Production.INFO: ==31017== Releasing lock... [2025-01-02 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:53:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-02 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:54:05 [end_date_ymd] => 2025-01-02 17:54:05 [RateCDR] => 1 ) [2025-01-02 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:54:05' and `end` < '2025-01-02 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:54:21] Production.INFO: count ==4240 [2025-01-02 17:54:22] Production.ERROR: pbx CDR StartTime 2025-01-02 14:54:05 - End Time 2025-01-02 17:54:05 [2025-01-02 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159871', 'tblTempUsageDetail_20' ) start [2025-01-02 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159871', 'tblTempUsageDetail_20' ) end [2025-01-02 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159871', 'tblTempVendorCDR_20' ) start [2025-01-02 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159871', 'tblTempVendorCDR_20' ) end [2025-01-02 17:54:22] Production.INFO: ProcessCDR(1,14159871,1,1,2) [2025-01-02 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159871', 'tblTempUsageDetail_20' ) start [2025-01-02 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159871', 'tblTempUsageDetail_20' ) end [2025-01-02 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:54:27] Production.INFO: ==31088== Releasing lock... [2025-01-02 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:54:27] Production.INFO: 60 MB #Memory Used# [2025-01-02 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:55:05 [end_date_ymd] => 2025-01-02 17:55:05 [RateCDR] => 1 ) [2025-01-02 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:55:05' and `end` < '2025-01-02 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:55:18] Production.INFO: count ==4223 [2025-01-02 17:55:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:55:05 - End Time 2025-01-02 17:55:05 [2025-01-02 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159876', 'tblTempUsageDetail_20' ) start [2025-01-02 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159876', 'tblTempUsageDetail_20' ) end [2025-01-02 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159876', 'tblTempVendorCDR_20' ) start [2025-01-02 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159876', 'tblTempVendorCDR_20' ) end [2025-01-02 17:55:20] Production.INFO: ProcessCDR(1,14159876,1,1,2) [2025-01-02 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159876', 'tblTempUsageDetail_20' ) start [2025-01-02 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159876', 'tblTempUsageDetail_20' ) end [2025-01-02 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:55:25] Production.INFO: ==31160== Releasing lock... [2025-01-02 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:55:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-02 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:56:05 [end_date_ymd] => 2025-01-02 17:56:05 [RateCDR] => 1 ) [2025-01-02 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:56:05' and `end` < '2025-01-02 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:56:18] Production.INFO: count ==4216 [2025-01-02 17:56:19] Production.ERROR: pbx CDR StartTime 2025-01-02 14:56:05 - End Time 2025-01-02 17:56:05 [2025-01-02 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159881', 'tblTempUsageDetail_20' ) start [2025-01-02 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159881', 'tblTempUsageDetail_20' ) end [2025-01-02 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159881', 'tblTempVendorCDR_20' ) start [2025-01-02 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159881', 'tblTempVendorCDR_20' ) end [2025-01-02 17:56:20] Production.INFO: ProcessCDR(1,14159881,1,1,2) [2025-01-02 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159881', 'tblTempUsageDetail_20' ) start [2025-01-02 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159881', 'tblTempUsageDetail_20' ) end [2025-01-02 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:56:24] Production.INFO: ==31268== Releasing lock... [2025-01-02 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:56:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-02 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:57:04 [end_date_ymd] => 2025-01-02 17:57:04 [RateCDR] => 1 ) [2025-01-02 17:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:57:04' and `end` < '2025-01-02 17:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:57:19] Production.INFO: count ==4199 [2025-01-02 17:57:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:57:04 - End Time 2025-01-02 17:57:04 [2025-01-02 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159886', 'tblTempUsageDetail_20' ) start [2025-01-02 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159886', 'tblTempUsageDetail_20' ) end [2025-01-02 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159886', 'tblTempVendorCDR_20' ) start [2025-01-02 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159886', 'tblTempVendorCDR_20' ) end [2025-01-02 17:57:20] Production.INFO: ProcessCDR(1,14159886,1,1,2) [2025-01-02 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159886', 'tblTempUsageDetail_20' ) start [2025-01-02 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159886', 'tblTempUsageDetail_20' ) end [2025-01-02 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:57:25] Production.INFO: ==31346== Releasing lock... [2025-01-02 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:57:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-02 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:58:05 [end_date_ymd] => 2025-01-02 17:58:05 [RateCDR] => 1 ) [2025-01-02 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:58:05' and `end` < '2025-01-02 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:58:19] Production.INFO: count ==4194 [2025-01-02 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-02 14:58:05 - End Time 2025-01-02 17:58:05 [2025-01-02 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159891', 'tblTempUsageDetail_20' ) start [2025-01-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159891', 'tblTempUsageDetail_20' ) end [2025-01-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159891', 'tblTempVendorCDR_20' ) start [2025-01-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159891', 'tblTempVendorCDR_20' ) end [2025-01-02 17:58:21] Production.INFO: ProcessCDR(1,14159891,1,1,2) [2025-01-02 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159891', 'tblTempUsageDetail_20' ) start [2025-01-02 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159891', 'tblTempUsageDetail_20' ) end [2025-01-02 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:58:26] Production.INFO: ==31419== Releasing lock... [2025-01-02 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:58:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-02 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 14:59:05 [end_date_ymd] => 2025-01-02 17:59:05 [RateCDR] => 1 ) [2025-01-02 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 14:59:05' and `end` < '2025-01-02 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 17:59:19] Production.INFO: count ==4186 [2025-01-02 17:59:20] Production.ERROR: pbx CDR StartTime 2025-01-02 14:59:05 - End Time 2025-01-02 17:59:05 [2025-01-02 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159896', 'tblTempUsageDetail_20' ) start [2025-01-02 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159896', 'tblTempUsageDetail_20' ) end [2025-01-02 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159896', 'tblTempVendorCDR_20' ) start [2025-01-02 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159896', 'tblTempVendorCDR_20' ) end [2025-01-02 17:59:20] Production.INFO: ProcessCDR(1,14159896,1,1,2) [2025-01-02 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159896', 'tblTempUsageDetail_20' ) start [2025-01-02 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159896', 'tblTempUsageDetail_20' ) end [2025-01-02 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 17:59:25] Production.INFO: ==31491== Releasing lock... [2025-01-02 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 17:59:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:00:05 [end_date_ymd] => 2025-01-02 18:00:05 [RateCDR] => 1 ) [2025-01-02 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:00:05' and `end` < '2025-01-02 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:00:19] Production.INFO: count ==4181 [2025-01-02 18:00:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:00:05 - End Time 2025-01-02 18:00:05 [2025-01-02 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159902', 'tblTempUsageDetail_20' ) start [2025-01-02 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159902', 'tblTempUsageDetail_20' ) end [2025-01-02 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159902', 'tblTempVendorCDR_20' ) start [2025-01-02 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159902', 'tblTempVendorCDR_20' ) end [2025-01-02 18:00:20] Production.INFO: ProcessCDR(1,14159902,1,1,2) [2025-01-02 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159902', 'tblTempUsageDetail_20' ) start [2025-01-02 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159902', 'tblTempUsageDetail_20' ) end [2025-01-02 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:00:25] Production.INFO: ==31565== Releasing lock... [2025-01-02 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:00:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-02 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:01:05 [end_date_ymd] => 2025-01-02 18:01:05 [RateCDR] => 1 ) [2025-01-02 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:01:05' and `end` < '2025-01-02 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:01:19] Production.INFO: count ==4122 [2025-01-02 18:01:21] Production.ERROR: pbx CDR StartTime 2025-01-02 15:01:05 - End Time 2025-01-02 18:01:05 [2025-01-02 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159907', 'tblTempUsageDetail_20' ) start [2025-01-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159907', 'tblTempUsageDetail_20' ) end [2025-01-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159907', 'tblTempVendorCDR_20' ) start [2025-01-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159907', 'tblTempVendorCDR_20' ) end [2025-01-02 18:01:21] Production.INFO: ProcessCDR(1,14159907,1,1,2) [2025-01-02 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159907', 'tblTempUsageDetail_20' ) start [2025-01-02 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159907', 'tblTempUsageDetail_20' ) end [2025-01-02 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:01:25] Production.INFO: ==31651== Releasing lock... [2025-01-02 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:01:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-02 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:02:05 [end_date_ymd] => 2025-01-02 18:02:05 [RateCDR] => 1 ) [2025-01-02 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:02:05' and `end` < '2025-01-02 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:02:18] Production.INFO: count ==4101 [2025-01-02 18:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:02:05 - End Time 2025-01-02 18:02:05 [2025-01-02 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159912', 'tblTempUsageDetail_20' ) start [2025-01-02 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159912', 'tblTempUsageDetail_20' ) end [2025-01-02 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159912', 'tblTempVendorCDR_20' ) start [2025-01-02 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159912', 'tblTempVendorCDR_20' ) end [2025-01-02 18:02:20] Production.INFO: ProcessCDR(1,14159912,1,1,2) [2025-01-02 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159912', 'tblTempUsageDetail_20' ) start [2025-01-02 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159912', 'tblTempUsageDetail_20' ) end [2025-01-02 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:02:24] Production.INFO: ==31722== Releasing lock... [2025-01-02 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:02:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-02 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:03:05 [end_date_ymd] => 2025-01-02 18:03:05 [RateCDR] => 1 ) [2025-01-02 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:03:05' and `end` < '2025-01-02 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:03:19] Production.INFO: count ==4085 [2025-01-02 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-02 15:03:05 - End Time 2025-01-02 18:03:05 [2025-01-02 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159917', 'tblTempUsageDetail_20' ) start [2025-01-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159917', 'tblTempUsageDetail_20' ) end [2025-01-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159917', 'tblTempVendorCDR_20' ) start [2025-01-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159917', 'tblTempVendorCDR_20' ) end [2025-01-02 18:03:21] Production.INFO: ProcessCDR(1,14159917,1,1,2) [2025-01-02 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159917', 'tblTempUsageDetail_20' ) start [2025-01-02 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159917', 'tblTempUsageDetail_20' ) end [2025-01-02 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:03:25] Production.INFO: ==31793== Releasing lock... [2025-01-02 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:03:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-02 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:04:04 [end_date_ymd] => 2025-01-02 18:04:04 [RateCDR] => 1 ) [2025-01-02 18:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:04:04' and `end` < '2025-01-02 18:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:04:18] Production.INFO: count ==4081 [2025-01-02 18:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:04:04 - End Time 2025-01-02 18:04:04 [2025-01-02 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159922', 'tblTempUsageDetail_20' ) start [2025-01-02 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159922', 'tblTempUsageDetail_20' ) end [2025-01-02 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159922', 'tblTempVendorCDR_20' ) start [2025-01-02 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159922', 'tblTempVendorCDR_20' ) end [2025-01-02 18:04:20] Production.INFO: ProcessCDR(1,14159922,1,1,2) [2025-01-02 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159922', 'tblTempUsageDetail_20' ) start [2025-01-02 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159922', 'tblTempUsageDetail_20' ) end [2025-01-02 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:04:23] Production.INFO: ==31863== Releasing lock... [2025-01-02 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:04:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-02 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:05:05 [end_date_ymd] => 2025-01-02 18:05:05 [RateCDR] => 1 ) [2025-01-02 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:05:05' and `end` < '2025-01-02 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:05:18] Production.INFO: count ==4082 [2025-01-02 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:05:05 - End Time 2025-01-02 18:05:05 [2025-01-02 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159927', 'tblTempUsageDetail_20' ) start [2025-01-02 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159927', 'tblTempUsageDetail_20' ) end [2025-01-02 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159927', 'tblTempVendorCDR_20' ) start [2025-01-02 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159927', 'tblTempVendorCDR_20' ) end [2025-01-02 18:05:20] Production.INFO: ProcessCDR(1,14159927,1,1,2) [2025-01-02 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159927', 'tblTempUsageDetail_20' ) start [2025-01-02 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159927', 'tblTempUsageDetail_20' ) end [2025-01-02 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:05:24] Production.INFO: ==31937== Releasing lock... [2025-01-02 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:05:24] Production.INFO: 58.5 MB #Memory Used# [2025-01-02 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:06:05 [end_date_ymd] => 2025-01-02 18:06:05 [RateCDR] => 1 ) [2025-01-02 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:06:05' and `end` < '2025-01-02 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:06:19] Production.INFO: count ==4097 [2025-01-02 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:06:05 - End Time 2025-01-02 18:06:05 [2025-01-02 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159932', 'tblTempUsageDetail_20' ) start [2025-01-02 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159932', 'tblTempUsageDetail_20' ) end [2025-01-02 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159932', 'tblTempVendorCDR_20' ) start [2025-01-02 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159932', 'tblTempVendorCDR_20' ) end [2025-01-02 18:06:20] Production.INFO: ProcessCDR(1,14159932,1,1,2) [2025-01-02 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159932', 'tblTempUsageDetail_20' ) start [2025-01-02 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159932', 'tblTempUsageDetail_20' ) end [2025-01-02 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:06:25] Production.INFO: ==32006== Releasing lock... [2025-01-02 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:06:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-02 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:07:05 [end_date_ymd] => 2025-01-02 18:07:05 [RateCDR] => 1 ) [2025-01-02 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:07:05' and `end` < '2025-01-02 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:07:19] Production.INFO: count ==4067 [2025-01-02 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:07:05 - End Time 2025-01-02 18:07:05 [2025-01-02 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159937', 'tblTempUsageDetail_20' ) start [2025-01-02 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159937', 'tblTempUsageDetail_20' ) end [2025-01-02 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159937', 'tblTempVendorCDR_20' ) start [2025-01-02 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159937', 'tblTempVendorCDR_20' ) end [2025-01-02 18:07:21] Production.INFO: ProcessCDR(1,14159937,1,1,2) [2025-01-02 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159937', 'tblTempUsageDetail_20' ) start [2025-01-02 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159937', 'tblTempUsageDetail_20' ) end [2025-01-02 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:07:25] Production.INFO: ==32076== Releasing lock... [2025-01-02 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:07:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-02 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:08:05 [end_date_ymd] => 2025-01-02 18:08:05 [RateCDR] => 1 ) [2025-01-02 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:08:05' and `end` < '2025-01-02 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:08:18] Production.INFO: count ==4035 [2025-01-02 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:08:05 - End Time 2025-01-02 18:08:05 [2025-01-02 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159942', 'tblTempUsageDetail_20' ) start [2025-01-02 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159942', 'tblTempUsageDetail_20' ) end [2025-01-02 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159942', 'tblTempVendorCDR_20' ) start [2025-01-02 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159942', 'tblTempVendorCDR_20' ) end [2025-01-02 18:08:20] Production.INFO: ProcessCDR(1,14159942,1,1,2) [2025-01-02 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159942', 'tblTempUsageDetail_20' ) start [2025-01-02 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159942', 'tblTempUsageDetail_20' ) end [2025-01-02 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:08:24] Production.INFO: ==32146== Releasing lock... [2025-01-02 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:08:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-02 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:09:04 [end_date_ymd] => 2025-01-02 18:09:04 [RateCDR] => 1 ) [2025-01-02 18:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:09:04' and `end` < '2025-01-02 18:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:09:17] Production.INFO: count ==4028 [2025-01-02 18:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 15:09:04 - End Time 2025-01-02 18:09:04 [2025-01-02 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159947', 'tblTempUsageDetail_20' ) start [2025-01-02 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159947', 'tblTempUsageDetail_20' ) end [2025-01-02 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159947', 'tblTempVendorCDR_20' ) start [2025-01-02 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159947', 'tblTempVendorCDR_20' ) end [2025-01-02 18:09:19] Production.INFO: ProcessCDR(1,14159947,1,1,2) [2025-01-02 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159947', 'tblTempUsageDetail_20' ) start [2025-01-02 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159947', 'tblTempUsageDetail_20' ) end [2025-01-02 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:09:23] Production.INFO: ==32217== Releasing lock... [2025-01-02 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:09:23] Production.INFO: 58.25 MB #Memory Used# [2025-01-02 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:10:05 [end_date_ymd] => 2025-01-02 18:10:05 [RateCDR] => 1 ) [2025-01-02 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:10:05' and `end` < '2025-01-02 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:10:21] Production.INFO: count ==3999 [2025-01-02 18:10:22] Production.ERROR: pbx CDR StartTime 2025-01-02 15:10:05 - End Time 2025-01-02 18:10:05 [2025-01-02 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159953', 'tblTempUsageDetail_20' ) start [2025-01-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159953', 'tblTempUsageDetail_20' ) end [2025-01-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159953', 'tblTempVendorCDR_20' ) start [2025-01-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159953', 'tblTempVendorCDR_20' ) end [2025-01-02 18:10:22] Production.INFO: ProcessCDR(1,14159953,1,1,2) [2025-01-02 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159953', 'tblTempUsageDetail_20' ) start [2025-01-02 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159953', 'tblTempUsageDetail_20' ) end [2025-01-02 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:10:27] Production.INFO: ==32295== Releasing lock... [2025-01-02 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:10:27] Production.INFO: 58 MB #Memory Used# [2025-01-02 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:11:04 [end_date_ymd] => 2025-01-02 18:11:04 [RateCDR] => 1 ) [2025-01-02 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:11:04' and `end` < '2025-01-02 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:11:18] Production.INFO: count ==3954 [2025-01-02 18:11:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:11:04 - End Time 2025-01-02 18:11:04 [2025-01-02 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159958', 'tblTempUsageDetail_20' ) start [2025-01-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159958', 'tblTempUsageDetail_20' ) end [2025-01-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159958', 'tblTempVendorCDR_20' ) start [2025-01-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159958', 'tblTempVendorCDR_20' ) end [2025-01-02 18:11:19] Production.INFO: ProcessCDR(1,14159958,1,1,2) [2025-01-02 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159958', 'tblTempUsageDetail_20' ) start [2025-01-02 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159958', 'tblTempUsageDetail_20' ) end [2025-01-02 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:11:24] Production.INFO: ==32410== Releasing lock... [2025-01-02 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:11:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-02 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:12:05 [end_date_ymd] => 2025-01-02 18:12:05 [RateCDR] => 1 ) [2025-01-02 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:12:05' and `end` < '2025-01-02 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:12:18] Production.INFO: count ==3944 [2025-01-02 18:12:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:12:05 - End Time 2025-01-02 18:12:05 [2025-01-02 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159963', 'tblTempUsageDetail_20' ) start [2025-01-02 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159963', 'tblTempUsageDetail_20' ) end [2025-01-02 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159963', 'tblTempVendorCDR_20' ) start [2025-01-02 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159963', 'tblTempVendorCDR_20' ) end [2025-01-02 18:12:20] Production.INFO: ProcessCDR(1,14159963,1,1,2) [2025-01-02 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159963', 'tblTempUsageDetail_20' ) start [2025-01-02 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159963', 'tblTempUsageDetail_20' ) end [2025-01-02 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:12:24] Production.INFO: ==32481== Releasing lock... [2025-01-02 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:12:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-02 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:13:05 [end_date_ymd] => 2025-01-02 18:13:05 [RateCDR] => 1 ) [2025-01-02 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:13:05' and `end` < '2025-01-02 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:13:18] Production.INFO: count ==3933 [2025-01-02 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:13:05 - End Time 2025-01-02 18:13:05 [2025-01-02 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159968', 'tblTempUsageDetail_20' ) start [2025-01-02 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159968', 'tblTempUsageDetail_20' ) end [2025-01-02 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159968', 'tblTempVendorCDR_20' ) start [2025-01-02 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159968', 'tblTempVendorCDR_20' ) end [2025-01-02 18:13:20] Production.INFO: ProcessCDR(1,14159968,1,1,2) [2025-01-02 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159968', 'tblTempUsageDetail_20' ) start [2025-01-02 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159968', 'tblTempUsageDetail_20' ) end [2025-01-02 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:13:24] Production.INFO: ==32552== Releasing lock... [2025-01-02 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:13:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-02 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:14:05 [end_date_ymd] => 2025-01-02 18:14:05 [RateCDR] => 1 ) [2025-01-02 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:14:05' and `end` < '2025-01-02 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:14:19] Production.INFO: count ==3910 [2025-01-02 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:14:05 - End Time 2025-01-02 18:14:05 [2025-01-02 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159973', 'tblTempUsageDetail_20' ) start [2025-01-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159973', 'tblTempUsageDetail_20' ) end [2025-01-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159973', 'tblTempVendorCDR_20' ) start [2025-01-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159973', 'tblTempVendorCDR_20' ) end [2025-01-02 18:14:20] Production.INFO: ProcessCDR(1,14159973,1,1,2) [2025-01-02 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159973', 'tblTempUsageDetail_20' ) start [2025-01-02 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159973', 'tblTempUsageDetail_20' ) end [2025-01-02 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:14:25] Production.INFO: ==32624== Releasing lock... [2025-01-02 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:14:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-02 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:15:05 [end_date_ymd] => 2025-01-02 18:15:05 [RateCDR] => 1 ) [2025-01-02 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:15:05' and `end` < '2025-01-02 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:15:19] Production.INFO: count ==3898 [2025-01-02 18:15:21] Production.ERROR: pbx CDR StartTime 2025-01-02 15:15:05 - End Time 2025-01-02 18:15:05 [2025-01-02 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159978', 'tblTempUsageDetail_20' ) start [2025-01-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159978', 'tblTempUsageDetail_20' ) end [2025-01-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159978', 'tblTempVendorCDR_20' ) start [2025-01-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159978', 'tblTempVendorCDR_20' ) end [2025-01-02 18:15:21] Production.INFO: ProcessCDR(1,14159978,1,1,2) [2025-01-02 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159978', 'tblTempUsageDetail_20' ) start [2025-01-02 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159978', 'tblTempUsageDetail_20' ) end [2025-01-02 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:15:25] Production.INFO: ==32700== Releasing lock... [2025-01-02 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:15:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-02 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:16:04 [end_date_ymd] => 2025-01-02 18:16:04 [RateCDR] => 1 ) [2025-01-02 18:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:16:04' and `end` < '2025-01-02 18:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:16:18] Production.INFO: count ==3881 [2025-01-02 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:16:04 - End Time 2025-01-02 18:16:04 [2025-01-02 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159983', 'tblTempUsageDetail_20' ) start [2025-01-02 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159983', 'tblTempUsageDetail_20' ) end [2025-01-02 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159983', 'tblTempVendorCDR_20' ) start [2025-01-02 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159983', 'tblTempVendorCDR_20' ) end [2025-01-02 18:16:19] Production.INFO: ProcessCDR(1,14159983,1,1,2) [2025-01-02 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159983', 'tblTempUsageDetail_20' ) start [2025-01-02 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159983', 'tblTempUsageDetail_20' ) end [2025-01-02 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:16:24] Production.INFO: ==301== Releasing lock... [2025-01-02 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:16:24] Production.INFO: 57 MB #Memory Used# [2025-01-02 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:17:05 [end_date_ymd] => 2025-01-02 18:17:05 [RateCDR] => 1 ) [2025-01-02 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:17:05' and `end` < '2025-01-02 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:17:18] Production.INFO: count ==3856 [2025-01-02 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:17:05 - End Time 2025-01-02 18:17:05 [2025-01-02 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159988', 'tblTempUsageDetail_20' ) start [2025-01-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159988', 'tblTempUsageDetail_20' ) end [2025-01-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159988', 'tblTempVendorCDR_20' ) start [2025-01-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159988', 'tblTempVendorCDR_20' ) end [2025-01-02 18:17:20] Production.INFO: ProcessCDR(1,14159988,1,1,2) [2025-01-02 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159988', 'tblTempUsageDetail_20' ) start [2025-01-02 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159988', 'tblTempUsageDetail_20' ) end [2025-01-02 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:17:24] Production.INFO: ==392== Releasing lock... [2025-01-02 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:17:24] Production.INFO: 57 MB #Memory Used# [2025-01-02 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:18:04 [end_date_ymd] => 2025-01-02 18:18:04 [RateCDR] => 1 ) [2025-01-02 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:18:04' and `end` < '2025-01-02 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:18:18] Production.INFO: count ==3852 [2025-01-02 18:18:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:18:04 - End Time 2025-01-02 18:18:04 [2025-01-02 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159993', 'tblTempUsageDetail_20' ) start [2025-01-02 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159993', 'tblTempUsageDetail_20' ) end [2025-01-02 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159993', 'tblTempVendorCDR_20' ) start [2025-01-02 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159993', 'tblTempVendorCDR_20' ) end [2025-01-02 18:18:19] Production.INFO: ProcessCDR(1,14159993,1,1,2) [2025-01-02 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159993', 'tblTempUsageDetail_20' ) start [2025-01-02 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159993', 'tblTempUsageDetail_20' ) end [2025-01-02 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:18:24] Production.INFO: ==462== Releasing lock... [2025-01-02 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:18:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-02 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:19:05 [end_date_ymd] => 2025-01-02 18:19:05 [RateCDR] => 1 ) [2025-01-02 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:19:05' and `end` < '2025-01-02 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:19:19] Production.INFO: count ==3839 [2025-01-02 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:19:05 - End Time 2025-01-02 18:19:05 [2025-01-02 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159998', 'tblTempUsageDetail_20' ) start [2025-01-02 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14159998', 'tblTempUsageDetail_20' ) end [2025-01-02 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159998', 'tblTempVendorCDR_20' ) start [2025-01-02 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14159998', 'tblTempVendorCDR_20' ) end [2025-01-02 18:19:20] Production.INFO: ProcessCDR(1,14159998,1,1,2) [2025-01-02 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14159998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14159998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14159998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14159998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159998', 'tblTempUsageDetail_20' ) start [2025-01-02 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14159998', 'tblTempUsageDetail_20' ) end [2025-01-02 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:19:25] Production.INFO: ==536== Releasing lock... [2025-01-02 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:19:25] Production.INFO: 57 MB #Memory Used# [2025-01-02 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:20:06 [end_date_ymd] => 2025-01-02 18:20:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 15:20:06' and `end` < '2025-01-02 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-01-02 18:20:19] Production.INFO: count ==3826 [2025-01-02 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:20:06 - End Time 2025-01-02 18:20:06 [2025-01-02 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160004', 'tblTempUsageDetail_20' ) start [2025-01-02 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160004', 'tblTempUsageDetail_20' ) end [2025-01-02 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160004', 'tblTempVendorCDR_20' ) start [2025-01-02 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160004', 'tblTempVendorCDR_20' ) end [2025-01-02 18:20:20] Production.INFO: ProcessCDR(1,14160004,1,1,2) [2025-01-02 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160004', 'tblTempUsageDetail_20' ) start [2025-01-02 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160004', 'tblTempUsageDetail_20' ) end [2025-01-02 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:20:25] Production.INFO: ==616== Releasing lock... [2025-01-02 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:20:25] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:21:04 [end_date_ymd] => 2025-01-02 18:21:04 [RateCDR] => 1 ) [2025-01-02 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:21:04' and `end` < '2025-01-02 18:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:21:19] Production.INFO: count ==3821 [2025-01-02 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:21:04 - End Time 2025-01-02 18:21:04 [2025-01-02 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160009', 'tblTempUsageDetail_20' ) start [2025-01-02 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160009', 'tblTempUsageDetail_20' ) end [2025-01-02 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160009', 'tblTempVendorCDR_20' ) start [2025-01-02 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160009', 'tblTempVendorCDR_20' ) end [2025-01-02 18:21:20] Production.INFO: ProcessCDR(1,14160009,1,1,2) [2025-01-02 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160009', 'tblTempUsageDetail_20' ) start [2025-01-02 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160009', 'tblTempUsageDetail_20' ) end [2025-01-02 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:21:25] Production.INFO: ==715== Releasing lock... [2025-01-02 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:21:25] Production.INFO: 57 MB #Memory Used# [2025-01-02 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:22:05 [end_date_ymd] => 2025-01-02 18:22:05 [RateCDR] => 1 ) [2025-01-02 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:22:05' and `end` < '2025-01-02 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:22:19] Production.INFO: count ==3821 [2025-01-02 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:22:05 - End Time 2025-01-02 18:22:05 [2025-01-02 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160014', 'tblTempUsageDetail_20' ) start [2025-01-02 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160014', 'tblTempUsageDetail_20' ) end [2025-01-02 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160014', 'tblTempVendorCDR_20' ) start [2025-01-02 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160014', 'tblTempVendorCDR_20' ) end [2025-01-02 18:22:20] Production.INFO: ProcessCDR(1,14160014,1,1,2) [2025-01-02 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160014', 'tblTempUsageDetail_20' ) start [2025-01-02 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160014', 'tblTempUsageDetail_20' ) end [2025-01-02 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:22:25] Production.INFO: ==789== Releasing lock... [2025-01-02 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:22:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-02 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:23:04 [end_date_ymd] => 2025-01-02 18:23:04 [RateCDR] => 1 ) [2025-01-02 18:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:23:04' and `end` < '2025-01-02 18:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:23:18] Production.INFO: count ==3825 [2025-01-02 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:23:04 - End Time 2025-01-02 18:23:04 [2025-01-02 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160019', 'tblTempUsageDetail_20' ) start [2025-01-02 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160019', 'tblTempUsageDetail_20' ) end [2025-01-02 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160019', 'tblTempVendorCDR_20' ) start [2025-01-02 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160019', 'tblTempVendorCDR_20' ) end [2025-01-02 18:23:20] Production.INFO: ProcessCDR(1,14160019,1,1,2) [2025-01-02 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160019', 'tblTempUsageDetail_20' ) start [2025-01-02 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160019', 'tblTempUsageDetail_20' ) end [2025-01-02 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:23:24] Production.INFO: ==859== Releasing lock... [2025-01-02 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:23:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:24:05 [end_date_ymd] => 2025-01-02 18:24:05 [RateCDR] => 1 ) [2025-01-02 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:24:05' and `end` < '2025-01-02 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:24:19] Production.INFO: count ==3822 [2025-01-02 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:24:05 - End Time 2025-01-02 18:24:05 [2025-01-02 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160024', 'tblTempUsageDetail_20' ) start [2025-01-02 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160024', 'tblTempUsageDetail_20' ) end [2025-01-02 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160024', 'tblTempVendorCDR_20' ) start [2025-01-02 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160024', 'tblTempVendorCDR_20' ) end [2025-01-02 18:24:20] Production.INFO: ProcessCDR(1,14160024,1,1,2) [2025-01-02 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160024', 'tblTempUsageDetail_20' ) start [2025-01-02 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160024', 'tblTempUsageDetail_20' ) end [2025-01-02 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:24:25] Production.INFO: ==939== Releasing lock... [2025-01-02 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:24:25] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:25:05 [end_date_ymd] => 2025-01-02 18:25:05 [RateCDR] => 1 ) [2025-01-02 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:25:05' and `end` < '2025-01-02 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:25:18] Production.INFO: count ==3821 [2025-01-02 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:25:05 - End Time 2025-01-02 18:25:05 [2025-01-02 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160029', 'tblTempUsageDetail_20' ) start [2025-01-02 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160029', 'tblTempUsageDetail_20' ) end [2025-01-02 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160029', 'tblTempVendorCDR_20' ) start [2025-01-02 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160029', 'tblTempVendorCDR_20' ) end [2025-01-02 18:25:20] Production.INFO: ProcessCDR(1,14160029,1,1,2) [2025-01-02 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160029', 'tblTempUsageDetail_20' ) start [2025-01-02 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160029', 'tblTempUsageDetail_20' ) end [2025-01-02 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:25:24] Production.INFO: ==1011== Releasing lock... [2025-01-02 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:25:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:26:05 [end_date_ymd] => 2025-01-02 18:26:05 [RateCDR] => 1 ) [2025-01-02 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:26:05' and `end` < '2025-01-02 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:26:18] Production.INFO: count ==3820 [2025-01-02 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:26:05 - End Time 2025-01-02 18:26:05 [2025-01-02 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160034', 'tblTempUsageDetail_20' ) start [2025-01-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160034', 'tblTempUsageDetail_20' ) end [2025-01-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160034', 'tblTempVendorCDR_20' ) start [2025-01-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160034', 'tblTempVendorCDR_20' ) end [2025-01-02 18:26:19] Production.INFO: ProcessCDR(1,14160034,1,1,2) [2025-01-02 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160034', 'tblTempUsageDetail_20' ) start [2025-01-02 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160034', 'tblTempUsageDetail_20' ) end [2025-01-02 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:26:24] Production.INFO: ==1080== Releasing lock... [2025-01-02 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:26:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:27:05 [end_date_ymd] => 2025-01-02 18:27:05 [RateCDR] => 1 ) [2025-01-02 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:27:05' and `end` < '2025-01-02 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:27:21] Production.INFO: count ==3817 [2025-01-02 18:27:22] Production.ERROR: pbx CDR StartTime 2025-01-02 15:27:05 - End Time 2025-01-02 18:27:05 [2025-01-02 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160039', 'tblTempUsageDetail_20' ) start [2025-01-02 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160039', 'tblTempUsageDetail_20' ) end [2025-01-02 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160039', 'tblTempVendorCDR_20' ) start [2025-01-02 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160039', 'tblTempVendorCDR_20' ) end [2025-01-02 18:27:22] Production.INFO: ProcessCDR(1,14160039,1,1,2) [2025-01-02 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160039', 'tblTempUsageDetail_20' ) start [2025-01-02 18:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160039', 'tblTempUsageDetail_20' ) end [2025-01-02 18:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:27:27] Production.INFO: ==1201== Releasing lock... [2025-01-02 18:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:27:27] Production.INFO: 56.75 MB #Memory Used# [2025-01-02 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:28:04 [end_date_ymd] => 2025-01-02 18:28:04 [RateCDR] => 1 ) [2025-01-02 18:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:28:04' and `end` < '2025-01-02 18:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:28:18] Production.INFO: count ==3811 [2025-01-02 18:28:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:28:04 - End Time 2025-01-02 18:28:04 [2025-01-02 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160044', 'tblTempUsageDetail_20' ) start [2025-01-02 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160044', 'tblTempUsageDetail_20' ) end [2025-01-02 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160044', 'tblTempVendorCDR_20' ) start [2025-01-02 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160044', 'tblTempVendorCDR_20' ) end [2025-01-02 18:28:20] Production.INFO: ProcessCDR(1,14160044,1,1,2) [2025-01-02 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160044', 'tblTempUsageDetail_20' ) start [2025-01-02 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160044', 'tblTempUsageDetail_20' ) end [2025-01-02 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:28:24] Production.INFO: ==1284== Releasing lock... [2025-01-02 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:28:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:29:04 [end_date_ymd] => 2025-01-02 18:29:04 [RateCDR] => 1 ) [2025-01-02 18:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:29:04' and `end` < '2025-01-02 18:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:29:18] Production.INFO: count ==3808 [2025-01-02 18:29:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:29:04 - End Time 2025-01-02 18:29:04 [2025-01-02 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160049', 'tblTempUsageDetail_20' ) start [2025-01-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160049', 'tblTempUsageDetail_20' ) end [2025-01-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160049', 'tblTempVendorCDR_20' ) start [2025-01-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160049', 'tblTempVendorCDR_20' ) end [2025-01-02 18:29:19] Production.INFO: ProcessCDR(1,14160049,1,1,2) [2025-01-02 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160049', 'tblTempUsageDetail_20' ) start [2025-01-02 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160049', 'tblTempUsageDetail_20' ) end [2025-01-02 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:29:24] Production.INFO: ==1355== Releasing lock... [2025-01-02 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:29:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:30:06 [end_date_ymd] => 2025-01-02 18:30:06 [RateCDR] => 1 ) [2025-01-02 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:30:06' and `end` < '2025-01-02 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:30:19] Production.INFO: count ==3794 [2025-01-02 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:30:06 - End Time 2025-01-02 18:30:06 [2025-01-02 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160055', 'tblTempUsageDetail_20' ) start [2025-01-02 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160055', 'tblTempUsageDetail_20' ) end [2025-01-02 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160055', 'tblTempVendorCDR_20' ) start [2025-01-02 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160055', 'tblTempVendorCDR_20' ) end [2025-01-02 18:30:20] Production.INFO: ProcessCDR(1,14160055,1,1,2) [2025-01-02 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160055', 'tblTempUsageDetail_20' ) start [2025-01-02 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160055', 'tblTempUsageDetail_20' ) end [2025-01-02 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:30:25] Production.INFO: ==1430== Releasing lock... [2025-01-02 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:30:25] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:31:04 [end_date_ymd] => 2025-01-02 18:31:04 [RateCDR] => 1 ) [2025-01-02 18:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:31:04' and `end` < '2025-01-02 18:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:31:18] Production.INFO: count ==3724 [2025-01-02 18:31:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:31:04 - End Time 2025-01-02 18:31:04 [2025-01-02 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160060', 'tblTempUsageDetail_20' ) start [2025-01-02 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160060', 'tblTempUsageDetail_20' ) end [2025-01-02 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160060', 'tblTempVendorCDR_20' ) start [2025-01-02 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160060', 'tblTempVendorCDR_20' ) end [2025-01-02 18:31:19] Production.INFO: ProcessCDR(1,14160060,1,1,2) [2025-01-02 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160060', 'tblTempUsageDetail_20' ) start [2025-01-02 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160060', 'tblTempUsageDetail_20' ) end [2025-01-02 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:31:23] Production.INFO: ==1535== Releasing lock... [2025-01-02 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:31:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:32:05 [end_date_ymd] => 2025-01-02 18:32:05 [RateCDR] => 1 ) [2025-01-02 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:32:05' and `end` < '2025-01-02 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:32:18] Production.INFO: count ==3699 [2025-01-02 18:32:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:32:05 - End Time 2025-01-02 18:32:05 [2025-01-02 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160065', 'tblTempUsageDetail_20' ) start [2025-01-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160065', 'tblTempUsageDetail_20' ) end [2025-01-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160065', 'tblTempVendorCDR_20' ) start [2025-01-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160065', 'tblTempVendorCDR_20' ) end [2025-01-02 18:32:19] Production.INFO: ProcessCDR(1,14160065,1,1,2) [2025-01-02 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160065', 'tblTempUsageDetail_20' ) start [2025-01-02 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160065', 'tblTempUsageDetail_20' ) end [2025-01-02 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:32:24] Production.INFO: ==1613== Releasing lock... [2025-01-02 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:32:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:33:04 [end_date_ymd] => 2025-01-02 18:33:04 [RateCDR] => 1 ) [2025-01-02 18:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:33:04' and `end` < '2025-01-02 18:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:33:19] Production.INFO: count ==3690 [2025-01-02 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:33:04 - End Time 2025-01-02 18:33:04 [2025-01-02 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160070', 'tblTempUsageDetail_20' ) start [2025-01-02 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160070', 'tblTempUsageDetail_20' ) end [2025-01-02 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160070', 'tblTempVendorCDR_20' ) start [2025-01-02 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160070', 'tblTempVendorCDR_20' ) end [2025-01-02 18:33:20] Production.INFO: ProcessCDR(1,14160070,1,1,2) [2025-01-02 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160070', 'tblTempUsageDetail_20' ) start [2025-01-02 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160070', 'tblTempUsageDetail_20' ) end [2025-01-02 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:33:23] Production.INFO: ==1687== Releasing lock... [2025-01-02 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:33:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-02 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:34:04 [end_date_ymd] => 2025-01-02 18:34:04 [RateCDR] => 1 ) [2025-01-02 18:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:34:04' and `end` < '2025-01-02 18:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:34:17] Production.INFO: count ==3658 [2025-01-02 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:34:04 - End Time 2025-01-02 18:34:04 [2025-01-02 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160075', 'tblTempUsageDetail_20' ) start [2025-01-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160075', 'tblTempUsageDetail_20' ) end [2025-01-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160075', 'tblTempVendorCDR_20' ) start [2025-01-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160075', 'tblTempVendorCDR_20' ) end [2025-01-02 18:34:19] Production.INFO: ProcessCDR(1,14160075,1,1,2) [2025-01-02 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160075', 'tblTempUsageDetail_20' ) start [2025-01-02 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160075', 'tblTempUsageDetail_20' ) end [2025-01-02 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:34:23] Production.INFO: ==1769== Releasing lock... [2025-01-02 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:34:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:35:05 [end_date_ymd] => 2025-01-02 18:35:05 [RateCDR] => 1 ) [2025-01-02 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:35:05' and `end` < '2025-01-02 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:35:18] Production.INFO: count ==3650 [2025-01-02 18:35:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:35:05 - End Time 2025-01-02 18:35:05 [2025-01-02 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160080', 'tblTempUsageDetail_20' ) start [2025-01-02 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160080', 'tblTempUsageDetail_20' ) end [2025-01-02 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160080', 'tblTempVendorCDR_20' ) start [2025-01-02 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160080', 'tblTempVendorCDR_20' ) end [2025-01-02 18:35:19] Production.INFO: ProcessCDR(1,14160080,1,1,2) [2025-01-02 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160080', 'tblTempUsageDetail_20' ) start [2025-01-02 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160080', 'tblTempUsageDetail_20' ) end [2025-01-02 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:35:24] Production.INFO: ==1843== Releasing lock... [2025-01-02 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:35:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:36:04 [end_date_ymd] => 2025-01-02 18:36:04 [RateCDR] => 1 ) [2025-01-02 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:36:04' and `end` < '2025-01-02 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:36:19] Production.INFO: count ==3636 [2025-01-02 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:36:04 - End Time 2025-01-02 18:36:04 [2025-01-02 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160085', 'tblTempUsageDetail_20' ) start [2025-01-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160085', 'tblTempUsageDetail_20' ) end [2025-01-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160085', 'tblTempVendorCDR_20' ) start [2025-01-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160085', 'tblTempVendorCDR_20' ) end [2025-01-02 18:36:20] Production.INFO: ProcessCDR(1,14160085,1,1,2) [2025-01-02 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160085', 'tblTempUsageDetail_20' ) start [2025-01-02 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160085', 'tblTempUsageDetail_20' ) end [2025-01-02 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:36:23] Production.INFO: ==1915== Releasing lock... [2025-01-02 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:36:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-02 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:37:05 [end_date_ymd] => 2025-01-02 18:37:05 [RateCDR] => 1 ) [2025-01-02 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:37:05' and `end` < '2025-01-02 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:37:18] Production.INFO: count ==3617 [2025-01-02 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:37:05 - End Time 2025-01-02 18:37:05 [2025-01-02 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160090', 'tblTempUsageDetail_20' ) start [2025-01-02 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160090', 'tblTempUsageDetail_20' ) end [2025-01-02 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160090', 'tblTempVendorCDR_20' ) start [2025-01-02 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160090', 'tblTempVendorCDR_20' ) end [2025-01-02 18:37:20] Production.INFO: ProcessCDR(1,14160090,1,1,2) [2025-01-02 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160090', 'tblTempUsageDetail_20' ) start [2025-01-02 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160090', 'tblTempUsageDetail_20' ) end [2025-01-02 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:37:24] Production.INFO: ==1992== Releasing lock... [2025-01-02 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:37:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-02 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:38:04 [end_date_ymd] => 2025-01-02 18:38:04 [RateCDR] => 1 ) [2025-01-02 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:38:04' and `end` < '2025-01-02 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:38:18] Production.INFO: count ==3605 [2025-01-02 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:38:04 - End Time 2025-01-02 18:38:04 [2025-01-02 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160095', 'tblTempUsageDetail_20' ) start [2025-01-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160095', 'tblTempUsageDetail_20' ) end [2025-01-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160095', 'tblTempVendorCDR_20' ) start [2025-01-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160095', 'tblTempVendorCDR_20' ) end [2025-01-02 18:38:20] Production.INFO: ProcessCDR(1,14160095,1,1,2) [2025-01-02 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160095', 'tblTempUsageDetail_20' ) start [2025-01-02 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160095', 'tblTempUsageDetail_20' ) end [2025-01-02 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:38:23] Production.INFO: ==2066== Releasing lock... [2025-01-02 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:38:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-02 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:39:05 [end_date_ymd] => 2025-01-02 18:39:05 [RateCDR] => 1 ) [2025-01-02 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:39:05' and `end` < '2025-01-02 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:39:18] Production.INFO: count ==3574 [2025-01-02 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:39:05 - End Time 2025-01-02 18:39:05 [2025-01-02 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160100', 'tblTempUsageDetail_20' ) start [2025-01-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160100', 'tblTempUsageDetail_20' ) end [2025-01-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160100', 'tblTempVendorCDR_20' ) start [2025-01-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160100', 'tblTempVendorCDR_20' ) end [2025-01-02 18:39:19] Production.INFO: ProcessCDR(1,14160100,1,1,2) [2025-01-02 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160100', 'tblTempUsageDetail_20' ) start [2025-01-02 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160100', 'tblTempUsageDetail_20' ) end [2025-01-02 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:39:22] Production.INFO: ==2135== Releasing lock... [2025-01-02 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:39:22] Production.INFO: 55 MB #Memory Used# [2025-01-02 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:40:05 [end_date_ymd] => 2025-01-02 18:40:05 [RateCDR] => 1 ) [2025-01-02 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:40:05' and `end` < '2025-01-02 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:40:19] Production.INFO: count ==3556 [2025-01-02 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:40:05 - End Time 2025-01-02 18:40:05 [2025-01-02 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160105', 'tblTempUsageDetail_20' ) start [2025-01-02 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160105', 'tblTempUsageDetail_20' ) end [2025-01-02 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160105', 'tblTempVendorCDR_20' ) start [2025-01-02 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160105', 'tblTempVendorCDR_20' ) end [2025-01-02 18:40:20] Production.INFO: ProcessCDR(1,14160105,1,1,2) [2025-01-02 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160105', 'tblTempUsageDetail_20' ) start [2025-01-02 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160105', 'tblTempUsageDetail_20' ) end [2025-01-02 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:40:25] Production.INFO: ==2210== Releasing lock... [2025-01-02 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:40:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-02 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:41:05 [end_date_ymd] => 2025-01-02 18:41:05 [RateCDR] => 1 ) [2025-01-02 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:41:05' and `end` < '2025-01-02 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:41:18] Production.INFO: count ==3516 [2025-01-02 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:41:05 - End Time 2025-01-02 18:41:05 [2025-01-02 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160111', 'tblTempUsageDetail_20' ) start [2025-01-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160111', 'tblTempUsageDetail_20' ) end [2025-01-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160111', 'tblTempVendorCDR_20' ) start [2025-01-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160111', 'tblTempVendorCDR_20' ) end [2025-01-02 18:41:19] Production.INFO: ProcessCDR(1,14160111,1,1,2) [2025-01-02 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160111', 'tblTempUsageDetail_20' ) start [2025-01-02 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160111', 'tblTempUsageDetail_20' ) end [2025-01-02 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:41:22] Production.INFO: ==2283== Releasing lock... [2025-01-02 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:41:22] Production.INFO: 54.5 MB #Memory Used# [2025-01-02 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:42:05 [end_date_ymd] => 2025-01-02 18:42:05 [RateCDR] => 1 ) [2025-01-02 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:42:05' and `end` < '2025-01-02 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:42:19] Production.INFO: count ==3508 [2025-01-02 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:42:05 - End Time 2025-01-02 18:42:05 [2025-01-02 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160116', 'tblTempUsageDetail_20' ) start [2025-01-02 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160116', 'tblTempUsageDetail_20' ) end [2025-01-02 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160116', 'tblTempVendorCDR_20' ) start [2025-01-02 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160116', 'tblTempVendorCDR_20' ) end [2025-01-02 18:42:20] Production.INFO: ProcessCDR(1,14160116,1,1,2) [2025-01-02 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160116', 'tblTempUsageDetail_20' ) start [2025-01-02 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160116', 'tblTempUsageDetail_20' ) end [2025-01-02 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:42:25] Production.INFO: ==2353== Releasing lock... [2025-01-02 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:42:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-02 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:43:04 [end_date_ymd] => 2025-01-02 18:43:04 [RateCDR] => 1 ) [2025-01-02 18:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:43:04' and `end` < '2025-01-02 18:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:43:18] Production.INFO: count ==3493 [2025-01-02 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:43:04 - End Time 2025-01-02 18:43:04 [2025-01-02 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160121', 'tblTempUsageDetail_20' ) start [2025-01-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160121', 'tblTempUsageDetail_20' ) end [2025-01-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160121', 'tblTempVendorCDR_20' ) start [2025-01-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160121', 'tblTempVendorCDR_20' ) end [2025-01-02 18:43:19] Production.INFO: ProcessCDR(1,14160121,1,1,2) [2025-01-02 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160121', 'tblTempUsageDetail_20' ) start [2025-01-02 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160121', 'tblTempUsageDetail_20' ) end [2025-01-02 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:43:24] Production.INFO: ==2464== Releasing lock... [2025-01-02 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:43:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-02 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:44:04 [end_date_ymd] => 2025-01-02 18:44:04 [RateCDR] => 1 ) [2025-01-02 18:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:44:04' and `end` < '2025-01-02 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:44:17] Production.INFO: count ==3491 [2025-01-02 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:44:04 - End Time 2025-01-02 18:44:04 [2025-01-02 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160126', 'tblTempUsageDetail_20' ) start [2025-01-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160126', 'tblTempUsageDetail_20' ) end [2025-01-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160126', 'tblTempVendorCDR_20' ) start [2025-01-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160126', 'tblTempVendorCDR_20' ) end [2025-01-02 18:44:19] Production.INFO: ProcessCDR(1,14160126,1,1,2) [2025-01-02 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160126', 'tblTempUsageDetail_20' ) start [2025-01-02 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160126', 'tblTempUsageDetail_20' ) end [2025-01-02 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:44:24] Production.INFO: ==2535== Releasing lock... [2025-01-02 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:44:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-02 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:45:05 [end_date_ymd] => 2025-01-02 18:45:05 [RateCDR] => 1 ) [2025-01-02 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:45:05' and `end` < '2025-01-02 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:45:18] Production.INFO: count ==3475 [2025-01-02 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:45:05 - End Time 2025-01-02 18:45:05 [2025-01-02 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160131', 'tblTempUsageDetail_20' ) start [2025-01-02 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160131', 'tblTempUsageDetail_20' ) end [2025-01-02 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160131', 'tblTempVendorCDR_20' ) start [2025-01-02 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160131', 'tblTempVendorCDR_20' ) end [2025-01-02 18:45:19] Production.INFO: ProcessCDR(1,14160131,1,1,2) [2025-01-02 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160131', 'tblTempUsageDetail_20' ) start [2025-01-02 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160131', 'tblTempUsageDetail_20' ) end [2025-01-02 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:45:24] Production.INFO: ==2605== Releasing lock... [2025-01-02 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:45:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-02 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:46:05 [end_date_ymd] => 2025-01-02 18:46:05 [RateCDR] => 1 ) [2025-01-02 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:46:05' and `end` < '2025-01-02 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:46:19] Production.INFO: count ==3445 [2025-01-02 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:46:05 - End Time 2025-01-02 18:46:05 [2025-01-02 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160136', 'tblTempUsageDetail_20' ) start [2025-01-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160136', 'tblTempUsageDetail_20' ) end [2025-01-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160136', 'tblTempVendorCDR_20' ) start [2025-01-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160136', 'tblTempVendorCDR_20' ) end [2025-01-02 18:46:20] Production.INFO: ProcessCDR(1,14160136,1,1,2) [2025-01-02 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160136', 'tblTempUsageDetail_20' ) start [2025-01-02 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160136', 'tblTempUsageDetail_20' ) end [2025-01-02 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:46:23] Production.INFO: ==2675== Releasing lock... [2025-01-02 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:46:23] Production.INFO: 54 MB #Memory Used# [2025-01-02 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:47:05 [end_date_ymd] => 2025-01-02 18:47:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 15:47:05' and `end` < '2025-01-02 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-01-02 18:47:19] Production.INFO: count ==3435 [2025-01-02 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:47:05 - End Time 2025-01-02 18:47:05 [2025-01-02 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160141', 'tblTempUsageDetail_20' ) start [2025-01-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160141', 'tblTempUsageDetail_20' ) end [2025-01-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160141', 'tblTempVendorCDR_20' ) start [2025-01-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160141', 'tblTempVendorCDR_20' ) end [2025-01-02 18:47:20] Production.INFO: ProcessCDR(1,14160141,1,1,2) [2025-01-02 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160141', 'tblTempUsageDetail_20' ) start [2025-01-02 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160141', 'tblTempUsageDetail_20' ) end [2025-01-02 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:47:23] Production.INFO: ==2747== Releasing lock... [2025-01-02 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:47:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-02 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:48:05 [end_date_ymd] => 2025-01-02 18:48:05 [RateCDR] => 1 ) [2025-01-02 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:48:05' and `end` < '2025-01-02 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:48:20] Production.INFO: count ==3427 [2025-01-02 18:48:21] Production.ERROR: pbx CDR StartTime 2025-01-02 15:48:05 - End Time 2025-01-02 18:48:05 [2025-01-02 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160146', 'tblTempUsageDetail_20' ) start [2025-01-02 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160146', 'tblTempUsageDetail_20' ) end [2025-01-02 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160146', 'tblTempVendorCDR_20' ) start [2025-01-02 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160146', 'tblTempVendorCDR_20' ) end [2025-01-02 18:48:21] Production.INFO: ProcessCDR(1,14160146,1,1,2) [2025-01-02 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160146', 'tblTempUsageDetail_20' ) start [2025-01-02 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160146', 'tblTempUsageDetail_20' ) end [2025-01-02 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:48:25] Production.INFO: ==2819== Releasing lock... [2025-01-02 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:48:25] Production.INFO: 54 MB #Memory Used# [2025-01-02 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:49:05 [end_date_ymd] => 2025-01-02 18:49:05 [RateCDR] => 1 ) [2025-01-02 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:49:05' and `end` < '2025-01-02 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:49:18] Production.INFO: count ==3425 [2025-01-02 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:49:05 - End Time 2025-01-02 18:49:05 [2025-01-02 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160151', 'tblTempUsageDetail_20' ) start [2025-01-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160151', 'tblTempUsageDetail_20' ) end [2025-01-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160151', 'tblTempVendorCDR_20' ) start [2025-01-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160151', 'tblTempVendorCDR_20' ) end [2025-01-02 18:49:20] Production.INFO: ProcessCDR(1,14160151,1,1,2) [2025-01-02 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160151', 'tblTempUsageDetail_20' ) start [2025-01-02 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160151', 'tblTempUsageDetail_20' ) end [2025-01-02 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:49:23] Production.INFO: ==2893== Releasing lock... [2025-01-02 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:49:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-02 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:50:05 [end_date_ymd] => 2025-01-02 18:50:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 15:50:05' and `end` < '2025-01-02 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-01-02 18:50:18] Production.INFO: count ==3415 [2025-01-02 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:50:05 - End Time 2025-01-02 18:50:05 [2025-01-02 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160157', 'tblTempUsageDetail_20' ) start [2025-01-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160157', 'tblTempUsageDetail_20' ) end [2025-01-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160157', 'tblTempVendorCDR_20' ) start [2025-01-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160157', 'tblTempVendorCDR_20' ) end [2025-01-02 18:50:19] Production.INFO: ProcessCDR(1,14160157,1,1,2) [2025-01-02 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160157', 'tblTempUsageDetail_20' ) start [2025-01-02 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160157', 'tblTempUsageDetail_20' ) end [2025-01-02 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:50:23] Production.INFO: ==2965== Releasing lock... [2025-01-02 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:50:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-02 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:51:05 [end_date_ymd] => 2025-01-02 18:51:05 [RateCDR] => 1 ) [2025-01-02 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:51:05' and `end` < '2025-01-02 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:51:19] Production.INFO: count ==3339 [2025-01-02 18:51:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:51:05 - End Time 2025-01-02 18:51:05 [2025-01-02 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160162', 'tblTempUsageDetail_20' ) start [2025-01-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160162', 'tblTempUsageDetail_20' ) end [2025-01-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160162', 'tblTempVendorCDR_20' ) start [2025-01-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160162', 'tblTempVendorCDR_20' ) end [2025-01-02 18:51:20] Production.INFO: ProcessCDR(1,14160162,1,1,2) [2025-01-02 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160162', 'tblTempUsageDetail_20' ) start [2025-01-02 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160162', 'tblTempUsageDetail_20' ) end [2025-01-02 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:51:25] Production.INFO: ==3045== Releasing lock... [2025-01-02 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:51:25] Production.INFO: 53 MB #Memory Used# [2025-01-02 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:52:05 [end_date_ymd] => 2025-01-02 18:52:05 [RateCDR] => 1 ) [2025-01-02 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:52:05' and `end` < '2025-01-02 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:52:18] Production.INFO: count ==3325 [2025-01-02 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:52:05 - End Time 2025-01-02 18:52:05 [2025-01-02 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160167', 'tblTempUsageDetail_20' ) start [2025-01-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160167', 'tblTempUsageDetail_20' ) end [2025-01-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160167', 'tblTempVendorCDR_20' ) start [2025-01-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160167', 'tblTempVendorCDR_20' ) end [2025-01-02 18:52:20] Production.INFO: ProcessCDR(1,14160167,1,1,2) [2025-01-02 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160167', 'tblTempUsageDetail_20' ) start [2025-01-02 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160167', 'tblTempUsageDetail_20' ) end [2025-01-02 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:52:24] Production.INFO: ==3119== Releasing lock... [2025-01-02 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:52:24] Production.INFO: 54 MB #Memory Used# [2025-01-02 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:53:04 [end_date_ymd] => 2025-01-02 18:53:04 [RateCDR] => 1 ) [2025-01-02 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:53:04' and `end` < '2025-01-02 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:53:18] Production.INFO: count ==3311 [2025-01-02 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:53:04 - End Time 2025-01-02 18:53:04 [2025-01-02 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160172', 'tblTempUsageDetail_20' ) start [2025-01-02 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160172', 'tblTempUsageDetail_20' ) end [2025-01-02 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160172', 'tblTempVendorCDR_20' ) start [2025-01-02 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160172', 'tblTempVendorCDR_20' ) end [2025-01-02 18:53:19] Production.INFO: ProcessCDR(1,14160172,1,1,2) [2025-01-02 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160172', 'tblTempUsageDetail_20' ) start [2025-01-02 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160172', 'tblTempUsageDetail_20' ) end [2025-01-02 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:53:22] Production.INFO: ==3191== Releasing lock... [2025-01-02 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:53:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-02 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:54:05 [end_date_ymd] => 2025-01-02 18:54:05 [RateCDR] => 1 ) [2025-01-02 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:54:05' and `end` < '2025-01-02 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:54:19] Production.INFO: count ==3300 [2025-01-02 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:54:05 - End Time 2025-01-02 18:54:05 [2025-01-02 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160177', 'tblTempUsageDetail_20' ) start [2025-01-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160177', 'tblTempUsageDetail_20' ) end [2025-01-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160177', 'tblTempVendorCDR_20' ) start [2025-01-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160177', 'tblTempVendorCDR_20' ) end [2025-01-02 18:54:20] Production.INFO: ProcessCDR(1,14160177,1,1,2) [2025-01-02 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160177', 'tblTempUsageDetail_20' ) start [2025-01-02 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160177', 'tblTempUsageDetail_20' ) end [2025-01-02 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:54:23] Production.INFO: ==3270== Releasing lock... [2025-01-02 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:54:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-02 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:55:05 [end_date_ymd] => 2025-01-02 18:55:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 15:55:05' and `end` < '2025-01-02 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-01-02 18:55:18] Production.INFO: count ==3288 [2025-01-02 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:55:05 - End Time 2025-01-02 18:55:05 [2025-01-02 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160182', 'tblTempUsageDetail_20' ) start [2025-01-02 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160182', 'tblTempUsageDetail_20' ) end [2025-01-02 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160182', 'tblTempVendorCDR_20' ) start [2025-01-02 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160182', 'tblTempVendorCDR_20' ) end [2025-01-02 18:55:19] Production.INFO: ProcessCDR(1,14160182,1,1,2) [2025-01-02 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160182', 'tblTempUsageDetail_20' ) start [2025-01-02 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160182', 'tblTempUsageDetail_20' ) end [2025-01-02 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:55:22] Production.INFO: ==3343== Releasing lock... [2025-01-02 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:55:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-02 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:56:05 [end_date_ymd] => 2025-01-02 18:56:05 [RateCDR] => 1 ) [2025-01-02 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:56:05' and `end` < '2025-01-02 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:56:18] Production.INFO: count ==3280 [2025-01-02 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:56:05 - End Time 2025-01-02 18:56:05 [2025-01-02 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160187', 'tblTempUsageDetail_20' ) start [2025-01-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160187', 'tblTempUsageDetail_20' ) end [2025-01-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160187', 'tblTempVendorCDR_20' ) start [2025-01-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160187', 'tblTempVendorCDR_20' ) end [2025-01-02 18:56:19] Production.INFO: ProcessCDR(1,14160187,1,1,2) [2025-01-02 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160187', 'tblTempUsageDetail_20' ) start [2025-01-02 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160187', 'tblTempUsageDetail_20' ) end [2025-01-02 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:56:22] Production.INFO: ==3414== Releasing lock... [2025-01-02 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:56:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-02 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:57:05 [end_date_ymd] => 2025-01-02 18:57:05 [RateCDR] => 1 ) [2025-01-02 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:57:05' and `end` < '2025-01-02 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:57:19] Production.INFO: count ==3275 [2025-01-02 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-02 15:57:05 - End Time 2025-01-02 18:57:05 [2025-01-02 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160192', 'tblTempUsageDetail_20' ) start [2025-01-02 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160192', 'tblTempUsageDetail_20' ) end [2025-01-02 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160192', 'tblTempVendorCDR_20' ) start [2025-01-02 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160192', 'tblTempVendorCDR_20' ) end [2025-01-02 18:57:20] Production.INFO: ProcessCDR(1,14160192,1,1,2) [2025-01-02 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160192', 'tblTempUsageDetail_20' ) start [2025-01-02 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160192', 'tblTempUsageDetail_20' ) end [2025-01-02 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:57:24] Production.INFO: ==3483== Releasing lock... [2025-01-02 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:57:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-02 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:58:05 [end_date_ymd] => 2025-01-02 18:58:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 15:58:05' and `end` < '2025-01-02 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-01-02 18:58:18] Production.INFO: count ==3274 [2025-01-02 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-02 15:58:05 - End Time 2025-01-02 18:58:05 [2025-01-02 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160197', 'tblTempUsageDetail_20' ) start [2025-01-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160197', 'tblTempUsageDetail_20' ) end [2025-01-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160197', 'tblTempVendorCDR_20' ) start [2025-01-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160197', 'tblTempVendorCDR_20' ) end [2025-01-02 18:58:19] Production.INFO: ProcessCDR(1,14160197,1,1,2) [2025-01-02 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160197', 'tblTempUsageDetail_20' ) start [2025-01-02 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160197', 'tblTempUsageDetail_20' ) end [2025-01-02 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:58:23] Production.INFO: ==3593== Releasing lock... [2025-01-02 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:58:23] Production.INFO: 52.75 MB #Memory Used# [2025-01-02 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 15:59:04 [end_date_ymd] => 2025-01-02 18:59:04 [RateCDR] => 1 ) [2025-01-02 18:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 15:59:04' and `end` < '2025-01-02 18:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 18:59:17] Production.INFO: count ==3261 [2025-01-02 18:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 15:59:04 - End Time 2025-01-02 18:59:04 [2025-01-02 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160202', 'tblTempUsageDetail_20' ) start [2025-01-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160202', 'tblTempUsageDetail_20' ) end [2025-01-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160202', 'tblTempVendorCDR_20' ) start [2025-01-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160202', 'tblTempVendorCDR_20' ) end [2025-01-02 18:59:18] Production.INFO: ProcessCDR(1,14160202,1,1,2) [2025-01-02 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160202', 'tblTempUsageDetail_20' ) start [2025-01-02 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160202', 'tblTempUsageDetail_20' ) end [2025-01-02 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 18:59:22] Production.INFO: ==3664== Releasing lock... [2025-01-02 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 18:59:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-02 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:00:05 [end_date_ymd] => 2025-01-02 19:00:05 [RateCDR] => 1 ) [2025-01-02 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:00:05' and `end` < '2025-01-02 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:00:19] Production.INFO: count ==3241 [2025-01-02 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:00:05 - End Time 2025-01-02 19:00:05 [2025-01-02 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160208', 'tblTempUsageDetail_20' ) start [2025-01-02 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160208', 'tblTempUsageDetail_20' ) end [2025-01-02 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160208', 'tblTempVendorCDR_20' ) start [2025-01-02 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160208', 'tblTempVendorCDR_20' ) end [2025-01-02 19:00:20] Production.INFO: ProcessCDR(1,14160208,1,1,2) [2025-01-02 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160208', 'tblTempUsageDetail_20' ) start [2025-01-02 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160208', 'tblTempUsageDetail_20' ) end [2025-01-02 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:00:25] Production.INFO: ==3740== Releasing lock... [2025-01-02 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:00:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-02 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:01:06 [end_date_ymd] => 2025-01-02 19:01:06 [RateCDR] => 1 ) [2025-01-02 19: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-01-02 16:01:06' and `end` < '2025-01-02 19: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-01-02 19:01:20] Production.INFO: count ==3217 [2025-01-02 19:01:21] Production.ERROR: pbx CDR StartTime 2025-01-02 16:01:06 - End Time 2025-01-02 19:01:06 [2025-01-02 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160213', 'tblTempUsageDetail_20' ) start [2025-01-02 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160213', 'tblTempUsageDetail_20' ) end [2025-01-02 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160213', 'tblTempVendorCDR_20' ) start [2025-01-02 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160213', 'tblTempVendorCDR_20' ) end [2025-01-02 19:01:21] Production.INFO: ProcessCDR(1,14160213,1,1,2) [2025-01-02 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160213', 'tblTempUsageDetail_20' ) start [2025-01-02 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160213', 'tblTempUsageDetail_20' ) end [2025-01-02 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:01:26] Production.INFO: ==3829== Releasing lock... [2025-01-02 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:01:26] Production.INFO: 52.25 MB #Memory Used# [2025-01-02 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:02:05 [end_date_ymd] => 2025-01-02 19:02:05 [RateCDR] => 1 ) [2025-01-02 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:02:05' and `end` < '2025-01-02 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:02:18] Production.INFO: count ==3205 [2025-01-02 19:02:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:02:05 - End Time 2025-01-02 19:02:05 [2025-01-02 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160218', 'tblTempUsageDetail_20' ) start [2025-01-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160218', 'tblTempUsageDetail_20' ) end [2025-01-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160218', 'tblTempVendorCDR_20' ) start [2025-01-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160218', 'tblTempVendorCDR_20' ) end [2025-01-02 19:02:20] Production.INFO: ProcessCDR(1,14160218,1,1,2) [2025-01-02 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160218', 'tblTempUsageDetail_20' ) start [2025-01-02 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160218', 'tblTempUsageDetail_20' ) end [2025-01-02 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:02:24] Production.INFO: ==3979== Releasing lock... [2025-01-02 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:02:24] Production.INFO: 52.25 MB #Memory Used# [2025-01-02 19:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:03:04 [end_date_ymd] => 2025-01-02 19:03:04 [RateCDR] => 1 ) [2025-01-02 19:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:03:04' and `end` < '2025-01-02 19:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:03:17] Production.INFO: count ==3180 [2025-01-02 19:03:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:03:04 - End Time 2025-01-02 19:03:04 [2025-01-02 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160223', 'tblTempUsageDetail_20' ) start [2025-01-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160223', 'tblTempUsageDetail_20' ) end [2025-01-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160223', 'tblTempVendorCDR_20' ) start [2025-01-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160223', 'tblTempVendorCDR_20' ) end [2025-01-02 19:03:18] Production.INFO: ProcessCDR(1,14160223,1,1,2) [2025-01-02 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160223', 'tblTempUsageDetail_20' ) start [2025-01-02 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160223', 'tblTempUsageDetail_20' ) end [2025-01-02 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:03:22] Production.INFO: ==4050== Releasing lock... [2025-01-02 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:03:22] Production.INFO: 51.75 MB #Memory Used# [2025-01-02 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:04:05 [end_date_ymd] => 2025-01-02 19:04:05 [RateCDR] => 1 ) [2025-01-02 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:04:05' and `end` < '2025-01-02 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:04:18] Production.INFO: count ==3170 [2025-01-02 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:04:05 - End Time 2025-01-02 19:04:05 [2025-01-02 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160228', 'tblTempUsageDetail_20' ) start [2025-01-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160228', 'tblTempUsageDetail_20' ) end [2025-01-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160228', 'tblTempVendorCDR_20' ) start [2025-01-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160228', 'tblTempVendorCDR_20' ) end [2025-01-02 19:04:19] Production.INFO: ProcessCDR(1,14160228,1,1,2) [2025-01-02 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160228', 'tblTempUsageDetail_20' ) start [2025-01-02 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160228', 'tblTempUsageDetail_20' ) end [2025-01-02 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:04:22] Production.INFO: ==4123== Releasing lock... [2025-01-02 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:04:22] Production.INFO: 51.75 MB #Memory Used# [2025-01-02 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:05:05 [end_date_ymd] => 2025-01-02 19:05:05 [RateCDR] => 1 ) [2025-01-02 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:05:05' and `end` < '2025-01-02 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:05:18] Production.INFO: count ==3155 [2025-01-02 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:05:05 - End Time 2025-01-02 19:05:05 [2025-01-02 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160233', 'tblTempUsageDetail_20' ) start [2025-01-02 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160233', 'tblTempUsageDetail_20' ) end [2025-01-02 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160233', 'tblTempVendorCDR_20' ) start [2025-01-02 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160233', 'tblTempVendorCDR_20' ) end [2025-01-02 19:05:19] Production.INFO: ProcessCDR(1,14160233,1,1,2) [2025-01-02 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160233', 'tblTempUsageDetail_20' ) start [2025-01-02 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160233', 'tblTempUsageDetail_20' ) end [2025-01-02 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:05:22] Production.INFO: ==4280== Releasing lock... [2025-01-02 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:05:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-02 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:06:05 [end_date_ymd] => 2025-01-02 19:06:05 [RateCDR] => 1 ) [2025-01-02 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:06:05' and `end` < '2025-01-02 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:06:19] Production.INFO: count ==3130 [2025-01-02 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:06:05 - End Time 2025-01-02 19:06:05 [2025-01-02 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160238', 'tblTempUsageDetail_20' ) start [2025-01-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160238', 'tblTempUsageDetail_20' ) end [2025-01-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160238', 'tblTempVendorCDR_20' ) start [2025-01-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160238', 'tblTempVendorCDR_20' ) end [2025-01-02 19:06:20] Production.INFO: ProcessCDR(1,14160238,1,1,2) [2025-01-02 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160238', 'tblTempUsageDetail_20' ) start [2025-01-02 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160238', 'tblTempUsageDetail_20' ) end [2025-01-02 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:06:24] Production.INFO: ==4350== Releasing lock... [2025-01-02 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:06:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-02 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:07:05 [end_date_ymd] => 2025-01-02 19:07:05 [RateCDR] => 1 ) [2025-01-02 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:07:05' and `end` < '2025-01-02 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:07:18] Production.INFO: count ==3111 [2025-01-02 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:07:05 - End Time 2025-01-02 19:07:05 [2025-01-02 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160243', 'tblTempUsageDetail_20' ) start [2025-01-02 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160243', 'tblTempUsageDetail_20' ) end [2025-01-02 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160243', 'tblTempVendorCDR_20' ) start [2025-01-02 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160243', 'tblTempVendorCDR_20' ) end [2025-01-02 19:07:19] Production.INFO: ProcessCDR(1,14160243,1,1,2) [2025-01-02 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160243', 'tblTempUsageDetail_20' ) start [2025-01-02 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160243', 'tblTempUsageDetail_20' ) end [2025-01-02 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:07:23] Production.INFO: ==4421== Releasing lock... [2025-01-02 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:07:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-02 19:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:08:04 [end_date_ymd] => 2025-01-02 19:08:04 [RateCDR] => 1 ) [2025-01-02 19:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:08:04' and `end` < '2025-01-02 19:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:08:17] Production.INFO: count ==3096 [2025-01-02 19:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:08:04 - End Time 2025-01-02 19:08:04 [2025-01-02 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160248', 'tblTempUsageDetail_20' ) start [2025-01-02 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160248', 'tblTempUsageDetail_20' ) end [2025-01-02 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160248', 'tblTempVendorCDR_20' ) start [2025-01-02 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160248', 'tblTempVendorCDR_20' ) end [2025-01-02 19:08:19] Production.INFO: ProcessCDR(1,14160248,1,1,2) [2025-01-02 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160248', 'tblTempUsageDetail_20' ) start [2025-01-02 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160248', 'tblTempUsageDetail_20' ) end [2025-01-02 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:08:22] Production.INFO: ==4570== Releasing lock... [2025-01-02 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:08:22] Production.INFO: 52 MB #Memory Used# [2025-01-02 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:09:05 [end_date_ymd] => 2025-01-02 19:09:05 [RateCDR] => 1 ) [2025-01-02 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:09:05' and `end` < '2025-01-02 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:09:18] Production.INFO: count ==3075 [2025-01-02 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:09:05 - End Time 2025-01-02 19:09:05 [2025-01-02 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160253', 'tblTempUsageDetail_20' ) start [2025-01-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160253', 'tblTempUsageDetail_20' ) end [2025-01-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160253', 'tblTempVendorCDR_20' ) start [2025-01-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160253', 'tblTempVendorCDR_20' ) end [2025-01-02 19:09:20] Production.INFO: ProcessCDR(1,14160253,1,1,2) [2025-01-02 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160253', 'tblTempUsageDetail_20' ) start [2025-01-02 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160253', 'tblTempUsageDetail_20' ) end [2025-01-02 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:09:24] Production.INFO: ==4650== Releasing lock... [2025-01-02 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:09:24] Production.INFO: 51 MB #Memory Used# [2025-01-02 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:10:05 [end_date_ymd] => 2025-01-02 19:10:05 [RateCDR] => 1 ) [2025-01-02 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:10:05' and `end` < '2025-01-02 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:10:18] Production.INFO: count ==3071 [2025-01-02 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:10:05 - End Time 2025-01-02 19:10:05 [2025-01-02 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160259', 'tblTempUsageDetail_20' ) start [2025-01-02 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160259', 'tblTempUsageDetail_20' ) end [2025-01-02 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160259', 'tblTempVendorCDR_20' ) start [2025-01-02 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160259', 'tblTempVendorCDR_20' ) end [2025-01-02 19:10:19] Production.INFO: ProcessCDR(1,14160259,1,1,2) [2025-01-02 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160259', 'tblTempUsageDetail_20' ) start [2025-01-02 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160259', 'tblTempUsageDetail_20' ) end [2025-01-02 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:10:23] Production.INFO: ==4722== Releasing lock... [2025-01-02 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:10:23] Production.INFO: 51 MB #Memory Used# [2025-01-02 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:11:04 [end_date_ymd] => 2025-01-02 19:11:04 [RateCDR] => 1 ) [2025-01-02 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:11:04' and `end` < '2025-01-02 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:11:17] Production.INFO: count ==3016 [2025-01-02 19:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:11:04 - End Time 2025-01-02 19:11:04 [2025-01-02 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160264', 'tblTempUsageDetail_20' ) start [2025-01-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160264', 'tblTempUsageDetail_20' ) end [2025-01-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160264', 'tblTempVendorCDR_20' ) start [2025-01-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160264', 'tblTempVendorCDR_20' ) end [2025-01-02 19:11:18] Production.INFO: ProcessCDR(1,14160264,1,1,2) [2025-01-02 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160264', 'tblTempUsageDetail_20' ) start [2025-01-02 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160264', 'tblTempUsageDetail_20' ) end [2025-01-02 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:11:22] Production.INFO: ==4795== Releasing lock... [2025-01-02 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:11:22] Production.INFO: 50.5 MB #Memory Used# [2025-01-02 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:12:05 [end_date_ymd] => 2025-01-02 19:12:05 [RateCDR] => 1 ) [2025-01-02 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:12:05' and `end` < '2025-01-02 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:12:18] Production.INFO: count ==2974 [2025-01-02 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:12:05 - End Time 2025-01-02 19:12:05 [2025-01-02 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160269', 'tblTempUsageDetail_20' ) start [2025-01-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160269', 'tblTempUsageDetail_20' ) end [2025-01-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160269', 'tblTempVendorCDR_20' ) start [2025-01-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160269', 'tblTempVendorCDR_20' ) end [2025-01-02 19:12:19] Production.INFO: ProcessCDR(1,14160269,1,1,2) [2025-01-02 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160269', 'tblTempUsageDetail_20' ) start [2025-01-02 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160269', 'tblTempUsageDetail_20' ) end [2025-01-02 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:12:23] Production.INFO: ==4942== Releasing lock... [2025-01-02 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:12:23] Production.INFO: 50 MB #Memory Used# [2025-01-02 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:13:05 [end_date_ymd] => 2025-01-02 19:13:05 [RateCDR] => 1 ) [2025-01-02 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:13:05' and `end` < '2025-01-02 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:13:20] Production.INFO: count ==2952 [2025-01-02 19:13:21] Production.ERROR: pbx CDR StartTime 2025-01-02 16:13:05 - End Time 2025-01-02 19:13:05 [2025-01-02 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160274', 'tblTempUsageDetail_20' ) start [2025-01-02 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160274', 'tblTempUsageDetail_20' ) end [2025-01-02 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160274', 'tblTempVendorCDR_20' ) start [2025-01-02 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160274', 'tblTempVendorCDR_20' ) end [2025-01-02 19:13:21] Production.INFO: ProcessCDR(1,14160274,1,1,2) [2025-01-02 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160274', 'tblTempUsageDetail_20' ) start [2025-01-02 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160274', 'tblTempUsageDetail_20' ) end [2025-01-02 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:13:24] Production.INFO: ==5014== Releasing lock... [2025-01-02 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:13:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-02 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:14:05 [end_date_ymd] => 2025-01-02 19:14:05 [RateCDR] => 1 ) [2025-01-02 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:14:05' and `end` < '2025-01-02 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:14:18] Production.INFO: count ==2929 [2025-01-02 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:14:05 - End Time 2025-01-02 19:14:05 [2025-01-02 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160279', 'tblTempUsageDetail_20' ) start [2025-01-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160279', 'tblTempUsageDetail_20' ) end [2025-01-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160279', 'tblTempVendorCDR_20' ) start [2025-01-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160279', 'tblTempVendorCDR_20' ) end [2025-01-02 19:14:19] Production.INFO: ProcessCDR(1,14160279,1,1,2) [2025-01-02 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160279', 'tblTempUsageDetail_20' ) start [2025-01-02 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160279', 'tblTempUsageDetail_20' ) end [2025-01-02 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:14:22] Production.INFO: ==5128== Releasing lock... [2025-01-02 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:14:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-02 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:15:04 [end_date_ymd] => 2025-01-02 19:15:04 [RateCDR] => 1 ) [2025-01-02 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:15:04' and `end` < '2025-01-02 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:15:17] Production.INFO: count ==2890 [2025-01-02 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:15:04 - End Time 2025-01-02 19:15:04 [2025-01-02 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160284', 'tblTempUsageDetail_20' ) start [2025-01-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160284', 'tblTempUsageDetail_20' ) end [2025-01-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160284', 'tblTempVendorCDR_20' ) start [2025-01-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160284', 'tblTempVendorCDR_20' ) end [2025-01-02 19:15:18] Production.INFO: ProcessCDR(1,14160284,1,1,2) [2025-01-02 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160284', 'tblTempUsageDetail_20' ) start [2025-01-02 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160284', 'tblTempUsageDetail_20' ) end [2025-01-02 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:15:23] Production.INFO: ==5276== Releasing lock... [2025-01-02 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:15:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-02 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:16:05 [end_date_ymd] => 2025-01-02 19:16:05 [RateCDR] => 1 ) [2025-01-02 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:16:05' and `end` < '2025-01-02 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:16:18] Production.INFO: count ==2872 [2025-01-02 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:16:05 - End Time 2025-01-02 19:16:05 [2025-01-02 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160289', 'tblTempUsageDetail_20' ) start [2025-01-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160289', 'tblTempUsageDetail_20' ) end [2025-01-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160289', 'tblTempVendorCDR_20' ) start [2025-01-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160289', 'tblTempVendorCDR_20' ) end [2025-01-02 19:16:19] Production.INFO: ProcessCDR(1,14160289,1,1,2) [2025-01-02 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160289', 'tblTempUsageDetail_20' ) start [2025-01-02 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160289', 'tblTempUsageDetail_20' ) end [2025-01-02 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:16:22] Production.INFO: ==5347== Releasing lock... [2025-01-02 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:16:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-02 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:17:05 [end_date_ymd] => 2025-01-02 19:17:05 [RateCDR] => 1 ) [2025-01-02 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:17:05' and `end` < '2025-01-02 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:17:18] Production.INFO: count ==2858 [2025-01-02 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:17:05 - End Time 2025-01-02 19:17:05 [2025-01-02 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160294', 'tblTempUsageDetail_20' ) start [2025-01-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160294', 'tblTempUsageDetail_20' ) end [2025-01-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160294', 'tblTempVendorCDR_20' ) start [2025-01-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160294', 'tblTempVendorCDR_20' ) end [2025-01-02 19:17:19] Production.INFO: ProcessCDR(1,14160294,1,1,2) [2025-01-02 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160294', 'tblTempUsageDetail_20' ) start [2025-01-02 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160294', 'tblTempUsageDetail_20' ) end [2025-01-02 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:17:22] Production.INFO: ==5418== Releasing lock... [2025-01-02 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:17:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-02 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:18:05 [end_date_ymd] => 2025-01-02 19:18:05 [RateCDR] => 1 ) [2025-01-02 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:18:05' and `end` < '2025-01-02 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:18:19] Production.INFO: count ==2841 [2025-01-02 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:18:05 - End Time 2025-01-02 19:18:05 [2025-01-02 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160299', 'tblTempUsageDetail_20' ) start [2025-01-02 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160299', 'tblTempUsageDetail_20' ) end [2025-01-02 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160299', 'tblTempVendorCDR_20' ) start [2025-01-02 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160299', 'tblTempVendorCDR_20' ) end [2025-01-02 19:18:20] Production.INFO: ProcessCDR(1,14160299,1,1,2) [2025-01-02 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160299', 'tblTempUsageDetail_20' ) start [2025-01-02 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160299', 'tblTempUsageDetail_20' ) end [2025-01-02 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:18:23] Production.INFO: ==5492== Releasing lock... [2025-01-02 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:18:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-02 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:19:05 [end_date_ymd] => 2025-01-02 19:19:05 [RateCDR] => 1 ) [2025-01-02 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:19:05' and `end` < '2025-01-02 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:19:18] Production.INFO: count ==2815 [2025-01-02 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:19:05 - End Time 2025-01-02 19:19:05 [2025-01-02 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160304', 'tblTempUsageDetail_20' ) start [2025-01-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160304', 'tblTempUsageDetail_20' ) end [2025-01-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160304', 'tblTempVendorCDR_20' ) start [2025-01-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160304', 'tblTempVendorCDR_20' ) end [2025-01-02 19:19:19] Production.INFO: ProcessCDR(1,14160304,1,1,2) [2025-01-02 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160304', 'tblTempUsageDetail_20' ) start [2025-01-02 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160304', 'tblTempUsageDetail_20' ) end [2025-01-02 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:19:23] Production.INFO: ==5563== Releasing lock... [2025-01-02 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:19:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:20:05 [end_date_ymd] => 2025-01-02 19:20:05 [RateCDR] => 1 ) [2025-01-02 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:20:05' and `end` < '2025-01-02 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:20:18] Production.INFO: count ==2809 [2025-01-02 19:20:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:20:05 - End Time 2025-01-02 19:20:05 [2025-01-02 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160309', 'tblTempUsageDetail_20' ) start [2025-01-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160309', 'tblTempUsageDetail_20' ) end [2025-01-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160309', 'tblTempVendorCDR_20' ) start [2025-01-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160309', 'tblTempVendorCDR_20' ) end [2025-01-02 19:20:19] Production.INFO: ProcessCDR(1,14160309,1,1,2) [2025-01-02 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160309', 'tblTempUsageDetail_20' ) start [2025-01-02 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160309', 'tblTempUsageDetail_20' ) end [2025-01-02 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:20:22] Production.INFO: ==5638== Releasing lock... [2025-01-02 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:20:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:21:05 [end_date_ymd] => 2025-01-02 19:21:05 [RateCDR] => 1 ) [2025-01-02 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:21:05' and `end` < '2025-01-02 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:21:19] Production.INFO: count ==2816 [2025-01-02 19:21:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:21:05 - End Time 2025-01-02 19:21:05 [2025-01-02 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160315', 'tblTempUsageDetail_20' ) start [2025-01-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160315', 'tblTempUsageDetail_20' ) end [2025-01-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160315', 'tblTempVendorCDR_20' ) start [2025-01-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160315', 'tblTempVendorCDR_20' ) end [2025-01-02 19:21:20] Production.INFO: ProcessCDR(1,14160315,1,1,2) [2025-01-02 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160315', 'tblTempUsageDetail_20' ) start [2025-01-02 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160315', 'tblTempUsageDetail_20' ) end [2025-01-02 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:21:23] Production.INFO: ==5709== Releasing lock... [2025-01-02 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:21:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:22:05 [end_date_ymd] => 2025-01-02 19:22:05 [RateCDR] => 1 ) [2025-01-02 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:22:05' and `end` < '2025-01-02 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:22:18] Production.INFO: count ==2810 [2025-01-02 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:22:05 - End Time 2025-01-02 19:22:05 [2025-01-02 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160320', 'tblTempUsageDetail_20' ) start [2025-01-02 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160320', 'tblTempUsageDetail_20' ) end [2025-01-02 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160320', 'tblTempVendorCDR_20' ) start [2025-01-02 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160320', 'tblTempVendorCDR_20' ) end [2025-01-02 19:22:19] Production.INFO: ProcessCDR(1,14160320,1,1,2) [2025-01-02 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160320', 'tblTempUsageDetail_20' ) start [2025-01-02 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160320', 'tblTempUsageDetail_20' ) end [2025-01-02 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:22:22] Production.INFO: ==5781== Releasing lock... [2025-01-02 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:22:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-02 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:23:04 [end_date_ymd] => 2025-01-02 19:23:04 [RateCDR] => 1 ) [2025-01-02 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:23:04' and `end` < '2025-01-02 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:23:18] Production.INFO: count ==2772 [2025-01-02 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:23:04 - End Time 2025-01-02 19:23:04 [2025-01-02 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160325', 'tblTempUsageDetail_20' ) start [2025-01-02 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160325', 'tblTempUsageDetail_20' ) end [2025-01-02 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160325', 'tblTempVendorCDR_20' ) start [2025-01-02 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160325', 'tblTempVendorCDR_20' ) end [2025-01-02 19:23:19] Production.INFO: ProcessCDR(1,14160325,1,1,2) [2025-01-02 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160325', 'tblTempUsageDetail_20' ) start [2025-01-02 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160325', 'tblTempUsageDetail_20' ) end [2025-01-02 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:23:22] Production.INFO: ==5850== Releasing lock... [2025-01-02 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:23:22] Production.INFO: 49 MB #Memory Used# [2025-01-02 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:24:05 [end_date_ymd] => 2025-01-02 19:24:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 16:24:05' and `end` < '2025-01-02 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-01-02 19:24:19] Production.INFO: count ==2749 [2025-01-02 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:24:05 - End Time 2025-01-02 19:24:05 [2025-01-02 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160330', 'tblTempUsageDetail_20' ) start [2025-01-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160330', 'tblTempUsageDetail_20' ) end [2025-01-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160330', 'tblTempVendorCDR_20' ) start [2025-01-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160330', 'tblTempVendorCDR_20' ) end [2025-01-02 19:24:19] Production.INFO: ProcessCDR(1,14160330,1,1,2) [2025-01-02 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160330', 'tblTempUsageDetail_20' ) start [2025-01-02 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160330', 'tblTempUsageDetail_20' ) end [2025-01-02 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:24:24] Production.INFO: ==5921== Releasing lock... [2025-01-02 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:24:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:25:05 [end_date_ymd] => 2025-01-02 19:25:05 [RateCDR] => 1 ) [2025-01-02 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:25:05' and `end` < '2025-01-02 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:25:19] Production.INFO: count ==2731 [2025-01-02 19:25:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:25:05 - End Time 2025-01-02 19:25:05 [2025-01-02 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160335', 'tblTempUsageDetail_20' ) start [2025-01-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160335', 'tblTempUsageDetail_20' ) end [2025-01-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160335', 'tblTempVendorCDR_20' ) start [2025-01-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160335', 'tblTempVendorCDR_20' ) end [2025-01-02 19:25:20] Production.INFO: ProcessCDR(1,14160335,1,1,2) [2025-01-02 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160335', 'tblTempUsageDetail_20' ) start [2025-01-02 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160335', 'tblTempUsageDetail_20' ) end [2025-01-02 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:25:23] Production.INFO: ==5991== Releasing lock... [2025-01-02 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:25:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-02 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:26:05 [end_date_ymd] => 2025-01-02 19:26:05 [RateCDR] => 1 ) [2025-01-02 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:26:05' and `end` < '2025-01-02 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:26:17] Production.INFO: count ==2711 [2025-01-02 19:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:26:05 - End Time 2025-01-02 19:26:05 [2025-01-02 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160340', 'tblTempUsageDetail_20' ) start [2025-01-02 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160340', 'tblTempUsageDetail_20' ) end [2025-01-02 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160340', 'tblTempVendorCDR_20' ) start [2025-01-02 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160340', 'tblTempVendorCDR_20' ) end [2025-01-02 19:26:18] Production.INFO: ProcessCDR(1,14160340,1,1,2) [2025-01-02 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160340', 'tblTempUsageDetail_20' ) start [2025-01-02 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160340', 'tblTempUsageDetail_20' ) end [2025-01-02 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:26:21] Production.INFO: ==6061== Releasing lock... [2025-01-02 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:26:21] Production.INFO: 48.5 MB #Memory Used# [2025-01-02 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:27:05 [end_date_ymd] => 2025-01-02 19:27:05 [RateCDR] => 1 ) [2025-01-02 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:27:05' and `end` < '2025-01-02 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:27:19] Production.INFO: count ==2706 [2025-01-02 19:27:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:27:05 - End Time 2025-01-02 19:27:05 [2025-01-02 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160345', 'tblTempUsageDetail_20' ) start [2025-01-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160345', 'tblTempUsageDetail_20' ) end [2025-01-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160345', 'tblTempVendorCDR_20' ) start [2025-01-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160345', 'tblTempVendorCDR_20' ) end [2025-01-02 19:27:20] Production.INFO: ProcessCDR(1,14160345,1,1,2) [2025-01-02 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160345', 'tblTempUsageDetail_20' ) start [2025-01-02 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160345', 'tblTempUsageDetail_20' ) end [2025-01-02 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:27:23] Production.INFO: ==6134== Releasing lock... [2025-01-02 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:27:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-02 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:28:04 [end_date_ymd] => 2025-01-02 19:28:04 [RateCDR] => 1 ) [2025-01-02 19:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:28:04' and `end` < '2025-01-02 19:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:28:18] Production.INFO: count ==2690 [2025-01-02 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:28:04 - End Time 2025-01-02 19:28:04 [2025-01-02 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160350', 'tblTempUsageDetail_20' ) start [2025-01-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160350', 'tblTempUsageDetail_20' ) end [2025-01-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160350', 'tblTempVendorCDR_20' ) start [2025-01-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160350', 'tblTempVendorCDR_20' ) end [2025-01-02 19:28:18] Production.INFO: ProcessCDR(1,14160350,1,1,2) [2025-01-02 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160350', 'tblTempUsageDetail_20' ) start [2025-01-02 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160350', 'tblTempUsageDetail_20' ) end [2025-01-02 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:28:22] Production.INFO: ==6204== Releasing lock... [2025-01-02 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:28:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-02 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:29:05 [end_date_ymd] => 2025-01-02 19:29:05 [RateCDR] => 1 ) [2025-01-02 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:29:05' and `end` < '2025-01-02 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:29:19] Production.INFO: count ==2680 [2025-01-02 19:29:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:29:05 - End Time 2025-01-02 19:29:05 [2025-01-02 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160355', 'tblTempUsageDetail_20' ) start [2025-01-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160355', 'tblTempUsageDetail_20' ) end [2025-01-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160355', 'tblTempVendorCDR_20' ) start [2025-01-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160355', 'tblTempVendorCDR_20' ) end [2025-01-02 19:29:20] Production.INFO: ProcessCDR(1,14160355,1,1,2) [2025-01-02 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160355', 'tblTempUsageDetail_20' ) start [2025-01-02 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160355', 'tblTempUsageDetail_20' ) end [2025-01-02 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:29:23] Production.INFO: ==6316== Releasing lock... [2025-01-02 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:29:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-02 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:30:05 [end_date_ymd] => 2025-01-02 19:30:05 [RateCDR] => 1 ) [2025-01-02 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:30:05' and `end` < '2025-01-02 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:30:18] Production.INFO: count ==2669 [2025-01-02 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:30:05 - End Time 2025-01-02 19:30:05 [2025-01-02 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160360', 'tblTempUsageDetail_20' ) start [2025-01-02 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160360', 'tblTempUsageDetail_20' ) end [2025-01-02 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160360', 'tblTempVendorCDR_20' ) start [2025-01-02 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160360', 'tblTempVendorCDR_20' ) end [2025-01-02 19:30:19] Production.INFO: ProcessCDR(1,14160360,1,1,2) [2025-01-02 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160360', 'tblTempUsageDetail_20' ) start [2025-01-02 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160360', 'tblTempUsageDetail_20' ) end [2025-01-02 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:30:22] Production.INFO: ==6387== Releasing lock... [2025-01-02 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:30:22] Production.INFO: 48 MB #Memory Used# [2025-01-02 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:31:05 [end_date_ymd] => 2025-01-02 19:31:05 [RateCDR] => 1 ) [2025-01-02 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:31:05' and `end` < '2025-01-02 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:31:19] Production.INFO: count ==2598 [2025-01-02 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:31:05 - End Time 2025-01-02 19:31:05 [2025-01-02 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160366', 'tblTempUsageDetail_20' ) start [2025-01-02 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160366', 'tblTempUsageDetail_20' ) end [2025-01-02 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160366', 'tblTempVendorCDR_20' ) start [2025-01-02 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160366', 'tblTempVendorCDR_20' ) end [2025-01-02 19:31:19] Production.INFO: ProcessCDR(1,14160366,1,1,2) [2025-01-02 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160366', 'tblTempUsageDetail_20' ) start [2025-01-02 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160366', 'tblTempUsageDetail_20' ) end [2025-01-02 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:31:22] Production.INFO: ==6464== Releasing lock... [2025-01-02 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:31:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-02 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:32:06 [end_date_ymd] => 2025-01-02 19:32:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 16:32:06' and `end` < '2025-01-02 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-01-02 19:32:19] Production.INFO: count ==2601 [2025-01-02 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:32:06 - End Time 2025-01-02 19:32:06 [2025-01-02 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160371', 'tblTempUsageDetail_20' ) start [2025-01-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160371', 'tblTempUsageDetail_20' ) end [2025-01-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160371', 'tblTempVendorCDR_20' ) start [2025-01-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160371', 'tblTempVendorCDR_20' ) end [2025-01-02 19:32:19] Production.INFO: ProcessCDR(1,14160371,1,1,2) [2025-01-02 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160371', 'tblTempUsageDetail_20' ) start [2025-01-02 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160371', 'tblTempUsageDetail_20' ) end [2025-01-02 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:32:22] Production.INFO: ==6540== Releasing lock... [2025-01-02 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:32:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-02 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:33:05 [end_date_ymd] => 2025-01-02 19:33:05 [RateCDR] => 1 ) [2025-01-02 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:33:05' and `end` < '2025-01-02 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:33:18] Production.INFO: count ==2585 [2025-01-02 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:33:05 - End Time 2025-01-02 19:33:05 [2025-01-02 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160376', 'tblTempUsageDetail_20' ) start [2025-01-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160376', 'tblTempUsageDetail_20' ) end [2025-01-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160376', 'tblTempVendorCDR_20' ) start [2025-01-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160376', 'tblTempVendorCDR_20' ) end [2025-01-02 19:33:18] Production.INFO: ProcessCDR(1,14160376,1,1,2) [2025-01-02 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160376', 'tblTempUsageDetail_20' ) start [2025-01-02 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160376', 'tblTempUsageDetail_20' ) end [2025-01-02 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:33:21] Production.INFO: ==6611== Releasing lock... [2025-01-02 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:33:21] Production.INFO: 47.5 MB #Memory Used# [2025-01-02 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:34:05 [end_date_ymd] => 2025-01-02 19:34:05 [RateCDR] => 1 ) [2025-01-02 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:34:05' and `end` < '2025-01-02 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:34:18] Production.INFO: count ==2557 [2025-01-02 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:34:05 - End Time 2025-01-02 19:34:05 [2025-01-02 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160381', 'tblTempUsageDetail_20' ) start [2025-01-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160381', 'tblTempUsageDetail_20' ) end [2025-01-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160381', 'tblTempVendorCDR_20' ) start [2025-01-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160381', 'tblTempVendorCDR_20' ) end [2025-01-02 19:34:19] Production.INFO: ProcessCDR(1,14160381,1,1,2) [2025-01-02 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160381', 'tblTempUsageDetail_20' ) start [2025-01-02 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160381', 'tblTempUsageDetail_20' ) end [2025-01-02 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:34:22] Production.INFO: ==6681== Releasing lock... [2025-01-02 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:34:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-02 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:35:05 [end_date_ymd] => 2025-01-02 19:35:05 [RateCDR] => 1 ) [2025-01-02 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:35:05' and `end` < '2025-01-02 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:35:17] Production.INFO: count ==2517 [2025-01-02 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:35:05 - End Time 2025-01-02 19:35:05 [2025-01-02 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160386', 'tblTempUsageDetail_20' ) start [2025-01-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160386', 'tblTempUsageDetail_20' ) end [2025-01-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160386', 'tblTempVendorCDR_20' ) start [2025-01-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160386', 'tblTempVendorCDR_20' ) end [2025-01-02 19:35:18] Production.INFO: ProcessCDR(1,14160386,1,1,2) [2025-01-02 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160386', 'tblTempUsageDetail_20' ) start [2025-01-02 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160386', 'tblTempUsageDetail_20' ) end [2025-01-02 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:35:21] Production.INFO: ==6751== Releasing lock... [2025-01-02 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:35:21] Production.INFO: 47 MB #Memory Used# [2025-01-02 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:36:05 [end_date_ymd] => 2025-01-02 19:36:05 [RateCDR] => 1 ) [2025-01-02 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:36:05' and `end` < '2025-01-02 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:36:18] Production.INFO: count ==2504 [2025-01-02 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:36:05 - End Time 2025-01-02 19:36:05 [2025-01-02 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160391', 'tblTempUsageDetail_20' ) start [2025-01-02 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160391', 'tblTempUsageDetail_20' ) end [2025-01-02 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160391', 'tblTempVendorCDR_20' ) start [2025-01-02 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160391', 'tblTempVendorCDR_20' ) end [2025-01-02 19:36:19] Production.INFO: ProcessCDR(1,14160391,1,1,2) [2025-01-02 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160391', 'tblTempUsageDetail_20' ) start [2025-01-02 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160391', 'tblTempUsageDetail_20' ) end [2025-01-02 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:36:22] Production.INFO: ==6821== Releasing lock... [2025-01-02 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:36:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-02 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:37:05 [end_date_ymd] => 2025-01-02 19:37:05 [RateCDR] => 1 ) [2025-01-02 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:37:05' and `end` < '2025-01-02 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:37:20] Production.INFO: count ==2487 [2025-01-02 19:37:21] Production.ERROR: pbx CDR StartTime 2025-01-02 16:37:05 - End Time 2025-01-02 19:37:05 [2025-01-02 19:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160396', 'tblTempUsageDetail_20' ) start [2025-01-02 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160396', 'tblTempUsageDetail_20' ) end [2025-01-02 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160396', 'tblTempVendorCDR_20' ) start [2025-01-02 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160396', 'tblTempVendorCDR_20' ) end [2025-01-02 19:37:21] Production.INFO: ProcessCDR(1,14160396,1,1,2) [2025-01-02 19:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160396', 'tblTempUsageDetail_20' ) start [2025-01-02 19:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160396', 'tblTempUsageDetail_20' ) end [2025-01-02 19:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:37:26] Production.INFO: ==6895== Releasing lock... [2025-01-02 19:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:37:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-02 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:38:05 [end_date_ymd] => 2025-01-02 19:38:05 [RateCDR] => 1 ) [2025-01-02 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:38:05' and `end` < '2025-01-02 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:38:18] Production.INFO: count ==2476 [2025-01-02 19:38:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:38:05 - End Time 2025-01-02 19:38:05 [2025-01-02 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160401', 'tblTempUsageDetail_20' ) start [2025-01-02 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160401', 'tblTempUsageDetail_20' ) end [2025-01-02 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160401', 'tblTempVendorCDR_20' ) start [2025-01-02 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160401', 'tblTempVendorCDR_20' ) end [2025-01-02 19:38:19] Production.INFO: ProcessCDR(1,14160401,1,1,2) [2025-01-02 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160401', 'tblTempUsageDetail_20' ) start [2025-01-02 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160401', 'tblTempUsageDetail_20' ) end [2025-01-02 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:38:22] Production.INFO: ==6966== Releasing lock... [2025-01-02 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:38:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-02 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:39:05 [end_date_ymd] => 2025-01-02 19:39:05 [RateCDR] => 1 ) [2025-01-02 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:39:05' and `end` < '2025-01-02 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:39:19] Production.INFO: count ==2478 [2025-01-02 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:39:05 - End Time 2025-01-02 19:39:05 [2025-01-02 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160406', 'tblTempUsageDetail_20' ) start [2025-01-02 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160406', 'tblTempUsageDetail_20' ) end [2025-01-02 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160406', 'tblTempVendorCDR_20' ) start [2025-01-02 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160406', 'tblTempVendorCDR_20' ) end [2025-01-02 19:39:19] Production.INFO: ProcessCDR(1,14160406,1,1,2) [2025-01-02 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160406', 'tblTempUsageDetail_20' ) start [2025-01-02 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160406', 'tblTempUsageDetail_20' ) end [2025-01-02 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:39:24] Production.INFO: ==7038== Releasing lock... [2025-01-02 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:39:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-02 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:40:06 [end_date_ymd] => 2025-01-02 19:40:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 16:40:06' and `end` < '2025-01-02 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-01-02 19:40:19] Production.INFO: count ==2462 [2025-01-02 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:40:06 - End Time 2025-01-02 19:40:06 [2025-01-02 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160412', 'tblTempUsageDetail_20' ) start [2025-01-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160412', 'tblTempUsageDetail_20' ) end [2025-01-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160412', 'tblTempVendorCDR_20' ) start [2025-01-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160412', 'tblTempVendorCDR_20' ) end [2025-01-02 19:40:19] Production.INFO: ProcessCDR(1,14160412,1,1,2) [2025-01-02 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160412', 'tblTempUsageDetail_20' ) start [2025-01-02 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160412', 'tblTempUsageDetail_20' ) end [2025-01-02 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:40:24] Production.INFO: ==7111== Releasing lock... [2025-01-02 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:40:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-02 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:41:04 [end_date_ymd] => 2025-01-02 19:41:04 [RateCDR] => 1 ) [2025-01-02 19:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:41:04' and `end` < '2025-01-02 19:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:41:18] Production.INFO: count ==2413 [2025-01-02 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:41:04 - End Time 2025-01-02 19:41:04 [2025-01-02 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160417', 'tblTempUsageDetail_20' ) start [2025-01-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160417', 'tblTempUsageDetail_20' ) end [2025-01-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160417', 'tblTempVendorCDR_20' ) start [2025-01-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160417', 'tblTempVendorCDR_20' ) end [2025-01-02 19:41:19] Production.INFO: ProcessCDR(1,14160417,1,1,2) [2025-01-02 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160417', 'tblTempUsageDetail_20' ) start [2025-01-02 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160417', 'tblTempUsageDetail_20' ) end [2025-01-02 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:41:23] Production.INFO: ==7184== Releasing lock... [2025-01-02 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:41:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-02 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:42:05 [end_date_ymd] => 2025-01-02 19:42:05 [RateCDR] => 1 ) [2025-01-02 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:42:05' and `end` < '2025-01-02 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:42:19] Production.INFO: count ==2374 [2025-01-02 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:42:05 - End Time 2025-01-02 19:42:05 [2025-01-02 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160422', 'tblTempUsageDetail_20' ) start [2025-01-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160422', 'tblTempUsageDetail_20' ) end [2025-01-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160422', 'tblTempVendorCDR_20' ) start [2025-01-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160422', 'tblTempVendorCDR_20' ) end [2025-01-02 19:42:20] Production.INFO: ProcessCDR(1,14160422,1,1,2) [2025-01-02 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160422', 'tblTempUsageDetail_20' ) start [2025-01-02 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160422', 'tblTempUsageDetail_20' ) end [2025-01-02 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:42:23] Production.INFO: ==7255== Releasing lock... [2025-01-02 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:42:23] Production.INFO: 46 MB #Memory Used# [2025-01-02 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:43:04 [end_date_ymd] => 2025-01-02 19:43:04 [RateCDR] => 1 ) [2025-01-02 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:43:04' and `end` < '2025-01-02 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:43:18] Production.INFO: count ==2359 [2025-01-02 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:43:04 - End Time 2025-01-02 19:43:04 [2025-01-02 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160427', 'tblTempUsageDetail_20' ) start [2025-01-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160427', 'tblTempUsageDetail_20' ) end [2025-01-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160427', 'tblTempVendorCDR_20' ) start [2025-01-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160427', 'tblTempVendorCDR_20' ) end [2025-01-02 19:43:19] Production.INFO: ProcessCDR(1,14160427,1,1,2) [2025-01-02 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160427', 'tblTempUsageDetail_20' ) start [2025-01-02 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160427', 'tblTempUsageDetail_20' ) end [2025-01-02 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:43:22] Production.INFO: ==7325== Releasing lock... [2025-01-02 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:43:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-02 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:44:05 [end_date_ymd] => 2025-01-02 19:44:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 16:44:05' and `end` < '2025-01-02 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-01-02 19:44:19] Production.INFO: count ==2339 [2025-01-02 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:44:05 - End Time 2025-01-02 19:44:05 [2025-01-02 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160432', 'tblTempUsageDetail_20' ) start [2025-01-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160432', 'tblTempUsageDetail_20' ) end [2025-01-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160432', 'tblTempVendorCDR_20' ) start [2025-01-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160432', 'tblTempVendorCDR_20' ) end [2025-01-02 19:44:19] Production.INFO: ProcessCDR(1,14160432,1,1,2) [2025-01-02 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160432', 'tblTempUsageDetail_20' ) start [2025-01-02 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160432', 'tblTempUsageDetail_20' ) end [2025-01-02 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:44:23] Production.INFO: ==7394== Releasing lock... [2025-01-02 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:44:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-02 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:45:05 [end_date_ymd] => 2025-01-02 19:45:05 [RateCDR] => 1 ) [2025-01-02 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:45:05' and `end` < '2025-01-02 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:45:18] Production.INFO: count ==2319 [2025-01-02 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:45:05 - End Time 2025-01-02 19:45:05 [2025-01-02 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160437', 'tblTempUsageDetail_20' ) start [2025-01-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160437', 'tblTempUsageDetail_20' ) end [2025-01-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160437', 'tblTempVendorCDR_20' ) start [2025-01-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160437', 'tblTempVendorCDR_20' ) end [2025-01-02 19:45:19] Production.INFO: ProcessCDR(1,14160437,1,1,2) [2025-01-02 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160437', 'tblTempUsageDetail_20' ) start [2025-01-02 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160437', 'tblTempUsageDetail_20' ) end [2025-01-02 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:45:22] Production.INFO: ==7514== Releasing lock... [2025-01-02 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:45:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-02 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:46:05 [end_date_ymd] => 2025-01-02 19:46:05 [RateCDR] => 1 ) [2025-01-02 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:46:05' and `end` < '2025-01-02 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:46:18] Production.INFO: count ==2297 [2025-01-02 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:46:05 - End Time 2025-01-02 19:46:05 [2025-01-02 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160442', 'tblTempUsageDetail_20' ) start [2025-01-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160442', 'tblTempUsageDetail_20' ) end [2025-01-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160442', 'tblTempVendorCDR_20' ) start [2025-01-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160442', 'tblTempVendorCDR_20' ) end [2025-01-02 19:46:19] Production.INFO: ProcessCDR(1,14160442,1,1,2) [2025-01-02 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160442', 'tblTempUsageDetail_20' ) start [2025-01-02 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160442', 'tblTempUsageDetail_20' ) end [2025-01-02 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:46:22] Production.INFO: ==7585== Releasing lock... [2025-01-02 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:46:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-02 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:47:05 [end_date_ymd] => 2025-01-02 19:47:05 [RateCDR] => 1 ) [2025-01-02 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:47:05' and `end` < '2025-01-02 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:47:18] Production.INFO: count ==2290 [2025-01-02 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:47:05 - End Time 2025-01-02 19:47:05 [2025-01-02 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160447', 'tblTempUsageDetail_20' ) start [2025-01-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160447', 'tblTempUsageDetail_20' ) end [2025-01-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160447', 'tblTempVendorCDR_20' ) start [2025-01-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160447', 'tblTempVendorCDR_20' ) end [2025-01-02 19:47:19] Production.INFO: ProcessCDR(1,14160447,1,1,2) [2025-01-02 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160447', 'tblTempUsageDetail_20' ) start [2025-01-02 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160447', 'tblTempUsageDetail_20' ) end [2025-01-02 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:47:23] Production.INFO: ==7655== Releasing lock... [2025-01-02 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:47:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-02 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:48:04 [end_date_ymd] => 2025-01-02 19:48:04 [RateCDR] => 1 ) [2025-01-02 19:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:48:04' and `end` < '2025-01-02 19:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:48:18] Production.INFO: count ==2278 [2025-01-02 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:48:04 - End Time 2025-01-02 19:48:04 [2025-01-02 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160452', 'tblTempUsageDetail_20' ) start [2025-01-02 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160452', 'tblTempUsageDetail_20' ) end [2025-01-02 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160452', 'tblTempVendorCDR_20' ) start [2025-01-02 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160452', 'tblTempVendorCDR_20' ) end [2025-01-02 19:48:19] Production.INFO: ProcessCDR(1,14160452,1,1,2) [2025-01-02 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160452', 'tblTempUsageDetail_20' ) start [2025-01-02 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160452', 'tblTempUsageDetail_20' ) end [2025-01-02 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:48:22] Production.INFO: ==7724== Releasing lock... [2025-01-02 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:48:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-02 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:49:05 [end_date_ymd] => 2025-01-02 19:49:05 [RateCDR] => 1 ) [2025-01-02 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:49:05' and `end` < '2025-01-02 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:49:19] Production.INFO: count ==2251 [2025-01-02 19:49:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:49:05 - End Time 2025-01-02 19:49:05 [2025-01-02 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160457', 'tblTempUsageDetail_20' ) start [2025-01-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160457', 'tblTempUsageDetail_20' ) end [2025-01-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160457', 'tblTempVendorCDR_20' ) start [2025-01-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160457', 'tblTempVendorCDR_20' ) end [2025-01-02 19:49:20] Production.INFO: ProcessCDR(1,14160457,1,1,2) [2025-01-02 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160457', 'tblTempUsageDetail_20' ) start [2025-01-02 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160457', 'tblTempUsageDetail_20' ) end [2025-01-02 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:49:23] Production.INFO: ==7799== Releasing lock... [2025-01-02 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:49:23] Production.INFO: 45 MB #Memory Used# [2025-01-02 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:50:05 [end_date_ymd] => 2025-01-02 19:50:05 [RateCDR] => 1 ) [2025-01-02 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:50:05' and `end` < '2025-01-02 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:50:19] Production.INFO: count ==2247 [2025-01-02 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:50:05 - End Time 2025-01-02 19:50:05 [2025-01-02 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160463', 'tblTempUsageDetail_20' ) start [2025-01-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160463', 'tblTempUsageDetail_20' ) end [2025-01-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160463', 'tblTempVendorCDR_20' ) start [2025-01-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160463', 'tblTempVendorCDR_20' ) end [2025-01-02 19:50:19] Production.INFO: ProcessCDR(1,14160463,1,1,2) [2025-01-02 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160463', 'tblTempUsageDetail_20' ) start [2025-01-02 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160463', 'tblTempUsageDetail_20' ) end [2025-01-02 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:50:22] Production.INFO: ==7872== Releasing lock... [2025-01-02 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:50:22] Production.INFO: 45 MB #Memory Used# [2025-01-02 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:51:05 [end_date_ymd] => 2025-01-02 19:51:05 [RateCDR] => 1 ) [2025-01-02 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:51:05' and `end` < '2025-01-02 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:51:18] Production.INFO: count ==2223 [2025-01-02 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 16:51:05 - End Time 2025-01-02 19:51:05 [2025-01-02 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160468', 'tblTempUsageDetail_20' ) start [2025-01-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160468', 'tblTempUsageDetail_20' ) end [2025-01-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160468', 'tblTempVendorCDR_20' ) start [2025-01-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160468', 'tblTempVendorCDR_20' ) end [2025-01-02 19:51:18] Production.INFO: ProcessCDR(1,14160468,1,1,2) [2025-01-02 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160468', 'tblTempUsageDetail_20' ) start [2025-01-02 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160468', 'tblTempUsageDetail_20' ) end [2025-01-02 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:51:23] Production.INFO: ==7949== Releasing lock... [2025-01-02 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:51:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:52:05 [end_date_ymd] => 2025-01-02 19:52:05 [RateCDR] => 1 ) [2025-01-02 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:52:05' and `end` < '2025-01-02 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:52:19] Production.INFO: count ==2218 [2025-01-02 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:52:05 - End Time 2025-01-02 19:52:05 [2025-01-02 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160473', 'tblTempUsageDetail_20' ) start [2025-01-02 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160473', 'tblTempUsageDetail_20' ) end [2025-01-02 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160473', 'tblTempVendorCDR_20' ) start [2025-01-02 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160473', 'tblTempVendorCDR_20' ) end [2025-01-02 19:52:19] Production.INFO: ProcessCDR(1,14160473,1,1,2) [2025-01-02 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160473', 'tblTempUsageDetail_20' ) start [2025-01-02 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160473', 'tblTempUsageDetail_20' ) end [2025-01-02 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:52:22] Production.INFO: ==8026== Releasing lock... [2025-01-02 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:52:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:53:05 [end_date_ymd] => 2025-01-02 19:53:05 [RateCDR] => 1 ) [2025-01-02 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:53:05' and `end` < '2025-01-02 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:53:19] Production.INFO: count ==2225 [2025-01-02 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:53:05 - End Time 2025-01-02 19:53:05 [2025-01-02 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160478', 'tblTempUsageDetail_20' ) start [2025-01-02 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160478', 'tblTempUsageDetail_20' ) end [2025-01-02 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160478', 'tblTempVendorCDR_20' ) start [2025-01-02 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160478', 'tblTempVendorCDR_20' ) end [2025-01-02 19:53:19] Production.INFO: ProcessCDR(1,14160478,1,1,2) [2025-01-02 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160478', 'tblTempUsageDetail_20' ) start [2025-01-02 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160478', 'tblTempUsageDetail_20' ) end [2025-01-02 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:53:24] Production.INFO: ==8103== Releasing lock... [2025-01-02 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:53:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:54:05 [end_date_ymd] => 2025-01-02 19:54:05 [RateCDR] => 1 ) [2025-01-02 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:54:05' and `end` < '2025-01-02 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:54:20] Production.INFO: count ==2228 [2025-01-02 19:54:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:54:05 - End Time 2025-01-02 19:54:05 [2025-01-02 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160483', 'tblTempUsageDetail_20' ) start [2025-01-02 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160483', 'tblTempUsageDetail_20' ) end [2025-01-02 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160483', 'tblTempVendorCDR_20' ) start [2025-01-02 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160483', 'tblTempVendorCDR_20' ) end [2025-01-02 19:54:20] Production.INFO: ProcessCDR(1,14160483,1,1,2) [2025-01-02 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160483', 'tblTempUsageDetail_20' ) start [2025-01-02 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160483', 'tblTempUsageDetail_20' ) end [2025-01-02 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:54:23] Production.INFO: ==8181== Releasing lock... [2025-01-02 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:54:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:55:05 [end_date_ymd] => 2025-01-02 19:55:05 [RateCDR] => 1 ) [2025-01-02 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:55:05' and `end` < '2025-01-02 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:55:18] Production.INFO: count ==2221 [2025-01-02 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:55:05 - End Time 2025-01-02 19:55:05 [2025-01-02 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160488', 'tblTempUsageDetail_20' ) start [2025-01-02 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160488', 'tblTempUsageDetail_20' ) end [2025-01-02 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160488', 'tblTempVendorCDR_20' ) start [2025-01-02 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160488', 'tblTempVendorCDR_20' ) end [2025-01-02 19:55:19] Production.INFO: ProcessCDR(1,14160488,1,1,2) [2025-01-02 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160488', 'tblTempUsageDetail_20' ) start [2025-01-02 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160488', 'tblTempUsageDetail_20' ) end [2025-01-02 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:55:23] Production.INFO: ==8256== Releasing lock... [2025-01-02 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:55:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:56:06 [end_date_ymd] => 2025-01-02 19:56:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 16:56:06' and `end` < '2025-01-02 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-01-02 19:56:19] Production.INFO: count ==2208 [2025-01-02 19:56:20] Production.ERROR: pbx CDR StartTime 2025-01-02 16:56:06 - End Time 2025-01-02 19:56:06 [2025-01-02 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160493', 'tblTempUsageDetail_20' ) start [2025-01-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160493', 'tblTempUsageDetail_20' ) end [2025-01-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160493', 'tblTempVendorCDR_20' ) start [2025-01-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160493', 'tblTempVendorCDR_20' ) end [2025-01-02 19:56:20] Production.INFO: ProcessCDR(1,14160493,1,1,2) [2025-01-02 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160493', 'tblTempUsageDetail_20' ) start [2025-01-02 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160493', 'tblTempUsageDetail_20' ) end [2025-01-02 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:56:23] Production.INFO: ==8331== Releasing lock... [2025-01-02 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:56:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:57:05 [end_date_ymd] => 2025-01-02 19:57:05 [RateCDR] => 1 ) [2025-01-02 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:57:05' and `end` < '2025-01-02 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:57:18] Production.INFO: count ==2206 [2025-01-02 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:57:05 - End Time 2025-01-02 19:57:05 [2025-01-02 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160498', 'tblTempUsageDetail_20' ) start [2025-01-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160498', 'tblTempUsageDetail_20' ) end [2025-01-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160498', 'tblTempVendorCDR_20' ) start [2025-01-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160498', 'tblTempVendorCDR_20' ) end [2025-01-02 19:57:19] Production.INFO: ProcessCDR(1,14160498,1,1,2) [2025-01-02 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160498', 'tblTempUsageDetail_20' ) start [2025-01-02 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160498', 'tblTempUsageDetail_20' ) end [2025-01-02 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:57:22] Production.INFO: ==8408== Releasing lock... [2025-01-02 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:58:05 [end_date_ymd] => 2025-01-02 19:58:05 [RateCDR] => 1 ) [2025-01-02 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:58:05' and `end` < '2025-01-02 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:58:18] Production.INFO: count ==2194 [2025-01-02 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:58:05 - End Time 2025-01-02 19:58:05 [2025-01-02 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160503', 'tblTempUsageDetail_20' ) start [2025-01-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160503', 'tblTempUsageDetail_20' ) end [2025-01-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160503', 'tblTempVendorCDR_20' ) start [2025-01-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160503', 'tblTempVendorCDR_20' ) end [2025-01-02 19:58:19] Production.INFO: ProcessCDR(1,14160503,1,1,2) [2025-01-02 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160503', 'tblTempUsageDetail_20' ) start [2025-01-02 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160503', 'tblTempUsageDetail_20' ) end [2025-01-02 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:58:23] Production.INFO: ==8489== Releasing lock... [2025-01-02 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:58:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-02 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 16:59:04 [end_date_ymd] => 2025-01-02 19:59:04 [RateCDR] => 1 ) [2025-01-02 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 16:59:04' and `end` < '2025-01-02 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 19:59:18] Production.INFO: count ==2184 [2025-01-02 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-02 16:59:04 - End Time 2025-01-02 19:59:04 [2025-01-02 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160508', 'tblTempUsageDetail_20' ) start [2025-01-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160508', 'tblTempUsageDetail_20' ) end [2025-01-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160508', 'tblTempVendorCDR_20' ) start [2025-01-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160508', 'tblTempVendorCDR_20' ) end [2025-01-02 19:59:19] Production.INFO: ProcessCDR(1,14160508,1,1,2) [2025-01-02 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160508', 'tblTempUsageDetail_20' ) start [2025-01-02 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160508', 'tblTempUsageDetail_20' ) end [2025-01-02 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 19:59:22] Production.INFO: ==8568== Releasing lock... [2025-01-02 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 19:59:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-02 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:00:05 [end_date_ymd] => 2025-01-02 20:00:05 [RateCDR] => 1 ) [2025-01-02 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:00:05' and `end` < '2025-01-02 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:00:18] Production.INFO: count ==2172 [2025-01-02 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:00:05 - End Time 2025-01-02 20:00:05 [2025-01-02 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160513', 'tblTempUsageDetail_20' ) start [2025-01-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160513', 'tblTempUsageDetail_20' ) end [2025-01-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160513', 'tblTempVendorCDR_20' ) start [2025-01-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160513', 'tblTempVendorCDR_20' ) end [2025-01-02 20:00:19] Production.INFO: ProcessCDR(1,14160513,1,1,2) [2025-01-02 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160513', 'tblTempUsageDetail_20' ) start [2025-01-02 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160513', 'tblTempUsageDetail_20' ) end [2025-01-02 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:00:22] Production.INFO: ==8647== Releasing lock... [2025-01-02 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:00:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-02 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:01:05 [end_date_ymd] => 2025-01-02 20:01:05 [RateCDR] => 1 ) [2025-01-02 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:01:05' and `end` < '2025-01-02 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:01:18] Production.INFO: count ==2060 [2025-01-02 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:01:05 - End Time 2025-01-02 20:01:05 [2025-01-02 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160519', 'tblTempUsageDetail_20' ) start [2025-01-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160519', 'tblTempUsageDetail_20' ) end [2025-01-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160519', 'tblTempVendorCDR_20' ) start [2025-01-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160519', 'tblTempVendorCDR_20' ) end [2025-01-02 20:01:19] Production.INFO: ProcessCDR(1,14160519,1,1,2) [2025-01-02 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160519', 'tblTempUsageDetail_20' ) start [2025-01-02 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160519', 'tblTempUsageDetail_20' ) end [2025-01-02 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:01:23] Production.INFO: ==8818== Releasing lock... [2025-01-02 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:01:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-02 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:02:05 [end_date_ymd] => 2025-01-02 20:02:05 [RateCDR] => 1 ) [2025-01-02 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:02:05' and `end` < '2025-01-02 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:02:18] Production.INFO: count ==2040 [2025-01-02 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:02:05 - End Time 2025-01-02 20:02:05 [2025-01-02 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160524', 'tblTempUsageDetail_20' ) start [2025-01-02 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160524', 'tblTempUsageDetail_20' ) end [2025-01-02 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160524', 'tblTempVendorCDR_20' ) start [2025-01-02 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160524', 'tblTempVendorCDR_20' ) end [2025-01-02 20:02:18] Production.INFO: ProcessCDR(1,14160524,1,1,2) [2025-01-02 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160524', 'tblTempUsageDetail_20' ) start [2025-01-02 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160524', 'tblTempUsageDetail_20' ) end [2025-01-02 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:02:21] Production.INFO: ==8894== Releasing lock... [2025-01-02 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:02:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-02 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:03:05 [end_date_ymd] => 2025-01-02 20:03:05 [RateCDR] => 1 ) [2025-01-02 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:03:05' and `end` < '2025-01-02 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:03:18] Production.INFO: count ==2031 [2025-01-02 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:03:05 - End Time 2025-01-02 20:03:05 [2025-01-02 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160528', 'tblTempUsageDetail_20' ) start [2025-01-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160528', 'tblTempUsageDetail_20' ) end [2025-01-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160528', 'tblTempVendorCDR_20' ) start [2025-01-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160528', 'tblTempVendorCDR_20' ) end [2025-01-02 20:03:18] Production.INFO: ProcessCDR(1,14160528,1,1,2) [2025-01-02 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160528', 'tblTempUsageDetail_20' ) start [2025-01-02 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160528', 'tblTempUsageDetail_20' ) end [2025-01-02 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:03:23] Production.INFO: ==8972== Releasing lock... [2025-01-02 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:03:23] Production.INFO: 43 MB #Memory Used# [2025-01-02 20:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:04:04 [end_date_ymd] => 2025-01-02 20:04:04 [RateCDR] => 1 ) [2025-01-02 20:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:04:04' and `end` < '2025-01-02 20:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:04:18] Production.INFO: count ==2026 [2025-01-02 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:04:04 - End Time 2025-01-02 20:04:04 [2025-01-02 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160534', 'tblTempUsageDetail_20' ) start [2025-01-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160534', 'tblTempUsageDetail_20' ) end [2025-01-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160534', 'tblTempVendorCDR_20' ) start [2025-01-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160534', 'tblTempVendorCDR_20' ) end [2025-01-02 20:04:19] Production.INFO: ProcessCDR(1,14160534,1,1,2) [2025-01-02 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160534', 'tblTempUsageDetail_20' ) start [2025-01-02 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160534', 'tblTempUsageDetail_20' ) end [2025-01-02 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:04:22] Production.INFO: ==9054== Releasing lock... [2025-01-02 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:04:22] Production.INFO: 43 MB #Memory Used# [2025-01-02 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:05:05 [end_date_ymd] => 2025-01-02 20:05:05 [RateCDR] => 1 ) [2025-01-02 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:05:05' and `end` < '2025-01-02 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:05:18] Production.INFO: count ==2021 [2025-01-02 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:05:05 - End Time 2025-01-02 20:05:05 [2025-01-02 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160539', 'tblTempUsageDetail_20' ) start [2025-01-02 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160539', 'tblTempUsageDetail_20' ) end [2025-01-02 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160539', 'tblTempVendorCDR_20' ) start [2025-01-02 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160539', 'tblTempVendorCDR_20' ) end [2025-01-02 20:05:19] Production.INFO: ProcessCDR(1,14160539,1,1,2) [2025-01-02 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160539', 'tblTempUsageDetail_20' ) start [2025-01-02 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160539', 'tblTempUsageDetail_20' ) end [2025-01-02 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:05:23] Production.INFO: ==9132== Releasing lock... [2025-01-02 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:05:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-02 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:06:05 [end_date_ymd] => 2025-01-02 20:06:05 [RateCDR] => 1 ) [2025-01-02 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:06:05' and `end` < '2025-01-02 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:06:18] Production.INFO: count ==1980 [2025-01-02 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:06:05 - End Time 2025-01-02 20:06:05 [2025-01-02 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160544', 'tblTempUsageDetail_20' ) start [2025-01-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160544', 'tblTempUsageDetail_20' ) end [2025-01-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160544', 'tblTempVendorCDR_20' ) start [2025-01-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160544', 'tblTempVendorCDR_20' ) end [2025-01-02 20:06:19] Production.INFO: ProcessCDR(1,14160544,1,1,2) [2025-01-02 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160544', 'tblTempUsageDetail_20' ) start [2025-01-02 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160544', 'tblTempUsageDetail_20' ) end [2025-01-02 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:06:22] Production.INFO: ==9209== Releasing lock... [2025-01-02 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:06:22] Production.INFO: 43 MB #Memory Used# [2025-01-02 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:07:04 [end_date_ymd] => 2025-01-02 20:07:04 [RateCDR] => 1 ) [2025-01-02 20:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:07:04' and `end` < '2025-01-02 20:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:07:18] Production.INFO: count ==1929 [2025-01-02 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:07:04 - End Time 2025-01-02 20:07:04 [2025-01-02 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160549', 'tblTempUsageDetail_20' ) start [2025-01-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160549', 'tblTempUsageDetail_20' ) end [2025-01-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160549', 'tblTempVendorCDR_20' ) start [2025-01-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160549', 'tblTempVendorCDR_20' ) end [2025-01-02 20:07:18] Production.INFO: ProcessCDR(1,14160549,1,1,2) [2025-01-02 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160549', 'tblTempUsageDetail_20' ) start [2025-01-02 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160549', 'tblTempUsageDetail_20' ) end [2025-01-02 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:07:21] Production.INFO: ==9288== Releasing lock... [2025-01-02 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:07:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-02 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:08:05 [end_date_ymd] => 2025-01-02 20:08:05 [RateCDR] => 1 ) [2025-01-02 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:08:05' and `end` < '2025-01-02 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:08:18] Production.INFO: count ==1922 [2025-01-02 20:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:08:05 - End Time 2025-01-02 20:08:05 [2025-01-02 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160554', 'tblTempUsageDetail_20' ) start [2025-01-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160554', 'tblTempUsageDetail_20' ) end [2025-01-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160554', 'tblTempVendorCDR_20' ) start [2025-01-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160554', 'tblTempVendorCDR_20' ) end [2025-01-02 20:08:19] Production.INFO: ProcessCDR(1,14160554,1,1,2) [2025-01-02 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160554', 'tblTempUsageDetail_20' ) start [2025-01-02 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160554', 'tblTempUsageDetail_20' ) end [2025-01-02 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:08:22] Production.INFO: ==9372== Releasing lock... [2025-01-02 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:08:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-02 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:09:04 [end_date_ymd] => 2025-01-02 20:09:04 [RateCDR] => 1 ) [2025-01-02 20:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:09:04' and `end` < '2025-01-02 20:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:09:17] Production.INFO: count ==1912 [2025-01-02 20:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:09:04 - End Time 2025-01-02 20:09:04 [2025-01-02 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160559', 'tblTempUsageDetail_20' ) start [2025-01-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160559', 'tblTempUsageDetail_20' ) end [2025-01-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160559', 'tblTempVendorCDR_20' ) start [2025-01-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160559', 'tblTempVendorCDR_20' ) end [2025-01-02 20:09:18] Production.INFO: ProcessCDR(1,14160559,1,1,2) [2025-01-02 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160559', 'tblTempUsageDetail_20' ) start [2025-01-02 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160559', 'tblTempUsageDetail_20' ) end [2025-01-02 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:09:21] Production.INFO: ==9452== Releasing lock... [2025-01-02 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:09:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-02 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:10:06 [end_date_ymd] => 2025-01-02 20:10:06 [RateCDR] => 1 ) [2025-01-02 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:10:06' and `end` < '2025-01-02 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:10:19] Production.INFO: count ==1910 [2025-01-02 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:10:06 - End Time 2025-01-02 20:10:06 [2025-01-02 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160565', 'tblTempUsageDetail_20' ) start [2025-01-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160565', 'tblTempUsageDetail_20' ) end [2025-01-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160565', 'tblTempVendorCDR_20' ) start [2025-01-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160565', 'tblTempVendorCDR_20' ) end [2025-01-02 20:10:19] Production.INFO: ProcessCDR(1,14160565,1,1,2) [2025-01-02 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160565', 'tblTempUsageDetail_20' ) start [2025-01-02 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160565', 'tblTempUsageDetail_20' ) end [2025-01-02 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:10:22] Production.INFO: ==9537== Releasing lock... [2025-01-02 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:10:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-02 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:11:05 [end_date_ymd] => 2025-01-02 20:11:05 [RateCDR] => 1 ) [2025-01-02 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:11:05' and `end` < '2025-01-02 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:11:18] Production.INFO: count ==1784 [2025-01-02 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:11:05 - End Time 2025-01-02 20:11:05 [2025-01-02 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160570', 'tblTempUsageDetail_20' ) start [2025-01-02 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160570', 'tblTempUsageDetail_20' ) end [2025-01-02 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160570', 'tblTempVendorCDR_20' ) start [2025-01-02 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160570', 'tblTempVendorCDR_20' ) end [2025-01-02 20:11:18] Production.INFO: ProcessCDR(1,14160570,1,1,2) [2025-01-02 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160570', 'tblTempUsageDetail_20' ) start [2025-01-02 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160570', 'tblTempUsageDetail_20' ) end [2025-01-02 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:11:21] Production.INFO: ==9614== Releasing lock... [2025-01-02 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:11:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:12:05 [end_date_ymd] => 2025-01-02 20:12:05 [RateCDR] => 1 ) [2025-01-02 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:12:05' and `end` < '2025-01-02 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:12:18] Production.INFO: count ==1781 [2025-01-02 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:12:05 - End Time 2025-01-02 20:12:05 [2025-01-02 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160575', 'tblTempUsageDetail_20' ) start [2025-01-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160575', 'tblTempUsageDetail_20' ) end [2025-01-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160575', 'tblTempVendorCDR_20' ) start [2025-01-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160575', 'tblTempVendorCDR_20' ) end [2025-01-02 20:12:18] Production.INFO: ProcessCDR(1,14160575,1,1,2) [2025-01-02 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160575', 'tblTempUsageDetail_20' ) start [2025-01-02 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160575', 'tblTempUsageDetail_20' ) end [2025-01-02 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:12:21] Production.INFO: ==9697== Releasing lock... [2025-01-02 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:12:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:13:04 [end_date_ymd] => 2025-01-02 20:13:04 [RateCDR] => 1 ) [2025-01-02 20:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:13:04' and `end` < '2025-01-02 20:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:13:17] Production.INFO: count ==1776 [2025-01-02 20:13:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:13:04 - End Time 2025-01-02 20:13:04 [2025-01-02 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160580', 'tblTempUsageDetail_20' ) start [2025-01-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160580', 'tblTempUsageDetail_20' ) end [2025-01-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160580', 'tblTempVendorCDR_20' ) start [2025-01-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160580', 'tblTempVendorCDR_20' ) end [2025-01-02 20:13:17] Production.INFO: ProcessCDR(1,14160580,1,1,2) [2025-01-02 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160580', 'tblTempUsageDetail_20' ) start [2025-01-02 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160580', 'tblTempUsageDetail_20' ) end [2025-01-02 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:13:21] Production.INFO: ==9774== Releasing lock... [2025-01-02 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:13:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:14:05 [end_date_ymd] => 2025-01-02 20:14:05 [RateCDR] => 1 ) [2025-01-02 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:14:05' and `end` < '2025-01-02 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:14:18] Production.INFO: count ==1773 [2025-01-02 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:14:05 - End Time 2025-01-02 20:14:05 [2025-01-02 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160585', 'tblTempUsageDetail_20' ) start [2025-01-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160585', 'tblTempUsageDetail_20' ) end [2025-01-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160585', 'tblTempVendorCDR_20' ) start [2025-01-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160585', 'tblTempVendorCDR_20' ) end [2025-01-02 20:14:19] Production.INFO: ProcessCDR(1,14160585,1,1,2) [2025-01-02 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160585', 'tblTempUsageDetail_20' ) start [2025-01-02 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160585', 'tblTempUsageDetail_20' ) end [2025-01-02 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:14:22] Production.INFO: ==9850== Releasing lock... [2025-01-02 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:14:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:15:05 [end_date_ymd] => 2025-01-02 20:15:05 [RateCDR] => 1 ) [2025-01-02 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:15:05' and `end` < '2025-01-02 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:15:19] Production.INFO: count ==1772 [2025-01-02 20:15:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:15:05 - End Time 2025-01-02 20:15:05 [2025-01-02 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160590', 'tblTempUsageDetail_20' ) start [2025-01-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160590', 'tblTempUsageDetail_20' ) end [2025-01-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160590', 'tblTempVendorCDR_20' ) start [2025-01-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160590', 'tblTempVendorCDR_20' ) end [2025-01-02 20:15:19] Production.INFO: ProcessCDR(1,14160590,1,1,2) [2025-01-02 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160590', 'tblTempUsageDetail_20' ) start [2025-01-02 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160590', 'tblTempUsageDetail_20' ) end [2025-01-02 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:15:22] Production.INFO: ==9924== Releasing lock... [2025-01-02 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:15:22] Production.INFO: 41 MB #Memory Used# [2025-01-02 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:16:05 [end_date_ymd] => 2025-01-02 20:16:05 [RateCDR] => 1 ) [2025-01-02 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:16:05' and `end` < '2025-01-02 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:16:18] Production.INFO: count ==1759 [2025-01-02 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:16:05 - End Time 2025-01-02 20:16:05 [2025-01-02 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160595', 'tblTempUsageDetail_20' ) start [2025-01-02 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160595', 'tblTempUsageDetail_20' ) end [2025-01-02 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160595', 'tblTempVendorCDR_20' ) start [2025-01-02 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160595', 'tblTempVendorCDR_20' ) end [2025-01-02 20:16:18] Production.INFO: ProcessCDR(1,14160595,1,1,2) [2025-01-02 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160595', 'tblTempUsageDetail_20' ) start [2025-01-02 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160595', 'tblTempUsageDetail_20' ) end [2025-01-02 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:16:21] Production.INFO: ==10035== Releasing lock... [2025-01-02 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:16:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:17:05 [end_date_ymd] => 2025-01-02 20:17:05 [RateCDR] => 1 ) [2025-01-02 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:17:05' and `end` < '2025-01-02 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:17:18] Production.INFO: count ==1751 [2025-01-02 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:17:05 - End Time 2025-01-02 20:17:05 [2025-01-02 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160600', 'tblTempUsageDetail_20' ) start [2025-01-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160600', 'tblTempUsageDetail_20' ) end [2025-01-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160600', 'tblTempVendorCDR_20' ) start [2025-01-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160600', 'tblTempVendorCDR_20' ) end [2025-01-02 20:17:18] Production.INFO: ProcessCDR(1,14160600,1,1,2) [2025-01-02 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160600', 'tblTempUsageDetail_20' ) start [2025-01-02 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160600', 'tblTempUsageDetail_20' ) end [2025-01-02 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:17:21] Production.INFO: ==10123== Releasing lock... [2025-01-02 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:17:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:18:05 [end_date_ymd] => 2025-01-02 20:18:05 [RateCDR] => 1 ) [2025-01-02 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:18:05' and `end` < '2025-01-02 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:18:17] Production.INFO: count ==1737 [2025-01-02 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:18:05 - End Time 2025-01-02 20:18:05 [2025-01-02 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160605', 'tblTempUsageDetail_20' ) start [2025-01-02 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160605', 'tblTempUsageDetail_20' ) end [2025-01-02 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160605', 'tblTempVendorCDR_20' ) start [2025-01-02 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160605', 'tblTempVendorCDR_20' ) end [2025-01-02 20:18:18] Production.INFO: ProcessCDR(1,14160605,1,1,2) [2025-01-02 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160605', 'tblTempUsageDetail_20' ) start [2025-01-02 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160605', 'tblTempUsageDetail_20' ) end [2025-01-02 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:18:21] Production.INFO: ==10199== Releasing lock... [2025-01-02 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:18:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-02 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:19:05 [end_date_ymd] => 2025-01-02 20:19:05 [RateCDR] => 1 ) [2025-01-02 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:19:05' and `end` < '2025-01-02 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:19:18] Production.INFO: count ==1721 [2025-01-02 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:19:05 - End Time 2025-01-02 20:19:05 [2025-01-02 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160610', 'tblTempUsageDetail_20' ) start [2025-01-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160610', 'tblTempUsageDetail_20' ) end [2025-01-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160610', 'tblTempVendorCDR_20' ) start [2025-01-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160610', 'tblTempVendorCDR_20' ) end [2025-01-02 20:19:18] Production.INFO: ProcessCDR(1,14160610,1,1,2) [2025-01-02 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160610', 'tblTempUsageDetail_20' ) start [2025-01-02 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160610', 'tblTempUsageDetail_20' ) end [2025-01-02 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:19:23] Production.INFO: ==10273== Releasing lock... [2025-01-02 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:19:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-02 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:20:05 [end_date_ymd] => 2025-01-02 20:20:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:20:05' and `end` < '2025-01-02 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-01-02 20:20:18] Production.INFO: count ==1692 [2025-01-02 20:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:20:05 - End Time 2025-01-02 20:20:05 [2025-01-02 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160615', 'tblTempUsageDetail_20' ) start [2025-01-02 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160615', 'tblTempUsageDetail_20' ) end [2025-01-02 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160615', 'tblTempVendorCDR_20' ) start [2025-01-02 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160615', 'tblTempVendorCDR_20' ) end [2025-01-02 20:20:18] Production.INFO: ProcessCDR(1,14160615,1,1,2) [2025-01-02 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160615', 'tblTempUsageDetail_20' ) start [2025-01-02 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160615', 'tblTempUsageDetail_20' ) end [2025-01-02 20:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:20:21] Production.INFO: ==10351== Releasing lock... [2025-01-02 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:20:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-02 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:21:04 [end_date_ymd] => 2025-01-02 20:21:04 [RateCDR] => 1 ) [2025-01-02 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:21:04' and `end` < '2025-01-02 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:21:17] Production.INFO: count ==1648 [2025-01-02 20:21:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:21:04 - End Time 2025-01-02 20:21:04 [2025-01-02 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160621', 'tblTempUsageDetail_20' ) start [2025-01-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160621', 'tblTempUsageDetail_20' ) end [2025-01-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160621', 'tblTempVendorCDR_20' ) start [2025-01-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160621', 'tblTempVendorCDR_20' ) end [2025-01-02 20:21:17] Production.INFO: ProcessCDR(1,14160621,1,1,2) [2025-01-02 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160621', 'tblTempUsageDetail_20' ) start [2025-01-02 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160621', 'tblTempUsageDetail_20' ) end [2025-01-02 20:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:21:20] Production.INFO: ==10428== Releasing lock... [2025-01-02 20:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:21:20] Production.INFO: 40.75 MB #Memory Used# [2025-01-02 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:22:05 [end_date_ymd] => 2025-01-02 20:22:05 [RateCDR] => 1 ) [2025-01-02 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:22:05' and `end` < '2025-01-02 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:22:18] Production.INFO: count ==1642 [2025-01-02 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:22:05 - End Time 2025-01-02 20:22:05 [2025-01-02 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160626', 'tblTempUsageDetail_20' ) start [2025-01-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160626', 'tblTempUsageDetail_20' ) end [2025-01-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160626', 'tblTempVendorCDR_20' ) start [2025-01-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160626', 'tblTempVendorCDR_20' ) end [2025-01-02 20:22:19] Production.INFO: ProcessCDR(1,14160626,1,1,2) [2025-01-02 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160626', 'tblTempUsageDetail_20' ) start [2025-01-02 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160626', 'tblTempUsageDetail_20' ) end [2025-01-02 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:22:22] Production.INFO: ==10505== Releasing lock... [2025-01-02 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-02 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:23:05 [end_date_ymd] => 2025-01-02 20:23:05 [RateCDR] => 1 ) [2025-01-02 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:23:05' and `end` < '2025-01-02 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:23:18] Production.INFO: count ==1636 [2025-01-02 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:23:05 - End Time 2025-01-02 20:23:05 [2025-01-02 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160631', 'tblTempUsageDetail_20' ) start [2025-01-02 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160631', 'tblTempUsageDetail_20' ) end [2025-01-02 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160631', 'tblTempVendorCDR_20' ) start [2025-01-02 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160631', 'tblTempVendorCDR_20' ) end [2025-01-02 20:23:18] Production.INFO: ProcessCDR(1,14160631,1,1,2) [2025-01-02 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160631', 'tblTempUsageDetail_20' ) start [2025-01-02 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160631', 'tblTempUsageDetail_20' ) end [2025-01-02 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:23:21] Production.INFO: ==10593== Releasing lock... [2025-01-02 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:23:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-02 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:24:06 [end_date_ymd] => 2025-01-02 20:24:06 [RateCDR] => 1 ) [2025-01-02 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:24:06' and `end` < '2025-01-02 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:24:18] Production.INFO: count ==1628 [2025-01-02 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:24:06 - End Time 2025-01-02 20:24:06 [2025-01-02 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160636', 'tblTempUsageDetail_20' ) start [2025-01-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160636', 'tblTempUsageDetail_20' ) end [2025-01-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160636', 'tblTempVendorCDR_20' ) start [2025-01-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160636', 'tblTempVendorCDR_20' ) end [2025-01-02 20:24:19] Production.INFO: ProcessCDR(1,14160636,1,1,2) [2025-01-02 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160636', 'tblTempUsageDetail_20' ) start [2025-01-02 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160636', 'tblTempUsageDetail_20' ) end [2025-01-02 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:24:22] Production.INFO: ==10670== Releasing lock... [2025-01-02 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:24:22] Production.INFO: 40 MB #Memory Used# [2025-01-02 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:25:05 [end_date_ymd] => 2025-01-02 20:25:05 [RateCDR] => 1 ) [2025-01-02 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:25:05' and `end` < '2025-01-02 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:25:17] Production.INFO: count ==1625 [2025-01-02 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:25:05 - End Time 2025-01-02 20:25:05 [2025-01-02 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160641', 'tblTempUsageDetail_20' ) start [2025-01-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160641', 'tblTempUsageDetail_20' ) end [2025-01-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160641', 'tblTempVendorCDR_20' ) start [2025-01-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160641', 'tblTempVendorCDR_20' ) end [2025-01-02 20:25:18] Production.INFO: ProcessCDR(1,14160641,1,1,2) [2025-01-02 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160641', 'tblTempUsageDetail_20' ) start [2025-01-02 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160641', 'tblTempUsageDetail_20' ) end [2025-01-02 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:25:22] Production.INFO: ==10752== Releasing lock... [2025-01-02 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:25:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-02 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:26:05 [end_date_ymd] => 2025-01-02 20:26:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:26:05' and `end` < '2025-01-02 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-01-02 20:26:18] Production.INFO: count ==1618 [2025-01-02 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:26:05 - End Time 2025-01-02 20:26:05 [2025-01-02 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160646', 'tblTempUsageDetail_20' ) start [2025-01-02 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160646', 'tblTempUsageDetail_20' ) end [2025-01-02 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160646', 'tblTempVendorCDR_20' ) start [2025-01-02 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160646', 'tblTempVendorCDR_20' ) end [2025-01-02 20:26:18] Production.INFO: ProcessCDR(1,14160646,1,1,2) [2025-01-02 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160646', 'tblTempUsageDetail_20' ) start [2025-01-02 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160646', 'tblTempUsageDetail_20' ) end [2025-01-02 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:26:21] Production.INFO: ==10839== Releasing lock... [2025-01-02 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:26:21] Production.INFO: 40 MB #Memory Used# [2025-01-02 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:27:05 [end_date_ymd] => 2025-01-02 20:27:05 [RateCDR] => 1 ) [2025-01-02 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:27:05' and `end` < '2025-01-02 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:27:18] Production.INFO: count ==1616 [2025-01-02 20:27:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:27:05 - End Time 2025-01-02 20:27:05 [2025-01-02 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160651', 'tblTempUsageDetail_20' ) start [2025-01-02 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160651', 'tblTempUsageDetail_20' ) end [2025-01-02 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160651', 'tblTempVendorCDR_20' ) start [2025-01-02 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160651', 'tblTempVendorCDR_20' ) end [2025-01-02 20:27:19] Production.INFO: ProcessCDR(1,14160651,1,1,2) [2025-01-02 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160651', 'tblTempUsageDetail_20' ) start [2025-01-02 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160651', 'tblTempUsageDetail_20' ) end [2025-01-02 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:27:22] Production.INFO: ==10923== Releasing lock... [2025-01-02 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:27:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-02 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:28:05 [end_date_ymd] => 2025-01-02 20:28:05 [RateCDR] => 1 ) [2025-01-02 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:28:05' and `end` < '2025-01-02 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:28:18] Production.INFO: count ==1610 [2025-01-02 20:28:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:28:05 - End Time 2025-01-02 20:28:05 [2025-01-02 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160656', 'tblTempUsageDetail_20' ) start [2025-01-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160656', 'tblTempUsageDetail_20' ) end [2025-01-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160656', 'tblTempVendorCDR_20' ) start [2025-01-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160656', 'tblTempVendorCDR_20' ) end [2025-01-02 20:28:19] Production.INFO: ProcessCDR(1,14160656,1,1,2) [2025-01-02 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160656', 'tblTempUsageDetail_20' ) start [2025-01-02 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160656', 'tblTempUsageDetail_20' ) end [2025-01-02 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:28:22] Production.INFO: ==11003== Releasing lock... [2025-01-02 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:28:22] Production.INFO: 40 MB #Memory Used# [2025-01-02 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:29:05 [end_date_ymd] => 2025-01-02 20:29:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:29:05' and `end` < '2025-01-02 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-01-02 20:29:19] Production.INFO: count ==1610 [2025-01-02 20:29:20] Production.ERROR: pbx CDR StartTime 2025-01-02 17:29:05 - End Time 2025-01-02 20:29:05 [2025-01-02 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160661', 'tblTempUsageDetail_20' ) start [2025-01-02 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160661', 'tblTempUsageDetail_20' ) end [2025-01-02 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160661', 'tblTempVendorCDR_20' ) start [2025-01-02 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160661', 'tblTempVendorCDR_20' ) end [2025-01-02 20:29:20] Production.INFO: ProcessCDR(1,14160661,1,1,2) [2025-01-02 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160661', 'tblTempUsageDetail_20' ) start [2025-01-02 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160661', 'tblTempUsageDetail_20' ) end [2025-01-02 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:29:23] Production.INFO: ==11084== Releasing lock... [2025-01-02 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:29:23] Production.INFO: 40 MB #Memory Used# [2025-01-02 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:30:06 [end_date_ymd] => 2025-01-02 20:30:06 [RateCDR] => 1 ) [2025-01-02 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:30:06' and `end` < '2025-01-02 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:30:18] Production.INFO: count ==1600 [2025-01-02 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:30:06 - End Time 2025-01-02 20:30:06 [2025-01-02 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160666', 'tblTempUsageDetail_20' ) start [2025-01-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160666', 'tblTempUsageDetail_20' ) end [2025-01-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160666', 'tblTempVendorCDR_20' ) start [2025-01-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160666', 'tblTempVendorCDR_20' ) end [2025-01-02 20:30:19] Production.INFO: ProcessCDR(1,14160666,1,1,2) [2025-01-02 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160666', 'tblTempUsageDetail_20' ) start [2025-01-02 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160666', 'tblTempUsageDetail_20' ) end [2025-01-02 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:30:22] Production.INFO: ==11165== Releasing lock... [2025-01-02 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:30:22] Production.INFO: 40 MB #Memory Used# [2025-01-02 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:31:04 [end_date_ymd] => 2025-01-02 20:31:04 [RateCDR] => 1 ) [2025-01-02 20:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:31:04' and `end` < '2025-01-02 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:31:17] Production.INFO: count ==1544 [2025-01-02 20:31:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:31:04 - End Time 2025-01-02 20:31:04 [2025-01-02 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160672', 'tblTempUsageDetail_20' ) start [2025-01-02 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160672', 'tblTempUsageDetail_20' ) end [2025-01-02 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160672', 'tblTempVendorCDR_20' ) start [2025-01-02 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160672', 'tblTempVendorCDR_20' ) end [2025-01-02 20:31:17] Production.INFO: ProcessCDR(1,14160672,1,1,2) [2025-01-02 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160672', 'tblTempUsageDetail_20' ) start [2025-01-02 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160672', 'tblTempUsageDetail_20' ) end [2025-01-02 20:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:31:21] Production.INFO: ==11243== Releasing lock... [2025-01-02 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:31:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-02 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:32:05 [end_date_ymd] => 2025-01-02 20:32:05 [RateCDR] => 1 ) [2025-01-02 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:32:05' and `end` < '2025-01-02 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:32:18] Production.INFO: count ==1536 [2025-01-02 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:32:05 - End Time 2025-01-02 20:32:05 [2025-01-02 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160675', 'tblTempUsageDetail_20' ) start [2025-01-02 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160675', 'tblTempUsageDetail_20' ) end [2025-01-02 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160675', 'tblTempVendorCDR_20' ) start [2025-01-02 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160675', 'tblTempVendorCDR_20' ) end [2025-01-02 20:32:18] Production.INFO: ProcessCDR(1,14160675,1,1,2) [2025-01-02 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160675', 'tblTempUsageDetail_20' ) start [2025-01-02 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160675', 'tblTempUsageDetail_20' ) end [2025-01-02 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:32:21] Production.INFO: ==11358== Releasing lock... [2025-01-02 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:32:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-02 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:33:05 [end_date_ymd] => 2025-01-02 20:33:05 [RateCDR] => 1 ) [2025-01-02 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:33:05' and `end` < '2025-01-02 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:33:19] Production.INFO: count ==1522 [2025-01-02 20:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:33:05 - End Time 2025-01-02 20:33:05 [2025-01-02 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160682', 'tblTempUsageDetail_20' ) start [2025-01-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160682', 'tblTempUsageDetail_20' ) end [2025-01-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160682', 'tblTempVendorCDR_20' ) start [2025-01-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160682', 'tblTempVendorCDR_20' ) end [2025-01-02 20:33:19] Production.INFO: ProcessCDR(1,14160682,1,1,2) [2025-01-02 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160682', 'tblTempUsageDetail_20' ) start [2025-01-02 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160682', 'tblTempUsageDetail_20' ) end [2025-01-02 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:33:22] Production.INFO: ==11435== Releasing lock... [2025-01-02 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-02 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:34:05 [end_date_ymd] => 2025-01-02 20:34:05 [RateCDR] => 1 ) [2025-01-02 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:34:05' and `end` < '2025-01-02 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:34:18] Production.INFO: count ==1510 [2025-01-02 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:34:05 - End Time 2025-01-02 20:34:05 [2025-01-02 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160687', 'tblTempUsageDetail_20' ) start [2025-01-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160687', 'tblTempUsageDetail_20' ) end [2025-01-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160687', 'tblTempVendorCDR_20' ) start [2025-01-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160687', 'tblTempVendorCDR_20' ) end [2025-01-02 20:34:19] Production.INFO: ProcessCDR(1,14160687,1,1,2) [2025-01-02 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160687', 'tblTempUsageDetail_20' ) start [2025-01-02 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160687', 'tblTempUsageDetail_20' ) end [2025-01-02 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:34:22] Production.INFO: ==11510== Releasing lock... [2025-01-02 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:34:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-02 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:35:05 [end_date_ymd] => 2025-01-02 20:35:05 [RateCDR] => 1 ) [2025-01-02 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:35:05' and `end` < '2025-01-02 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:35:19] Production.INFO: count ==1506 [2025-01-02 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:35:05 - End Time 2025-01-02 20:35:05 [2025-01-02 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160692', 'tblTempUsageDetail_20' ) start [2025-01-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160692', 'tblTempUsageDetail_20' ) end [2025-01-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160692', 'tblTempVendorCDR_20' ) start [2025-01-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160692', 'tblTempVendorCDR_20' ) end [2025-01-02 20:35:19] Production.INFO: ProcessCDR(1,14160692,1,1,2) [2025-01-02 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160692', 'tblTempUsageDetail_20' ) start [2025-01-02 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160692', 'tblTempUsageDetail_20' ) end [2025-01-02 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:35:22] Production.INFO: ==11589== Releasing lock... [2025-01-02 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-02 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:36:05 [end_date_ymd] => 2025-01-02 20:36:05 [RateCDR] => 1 ) [2025-01-02 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:36:05' and `end` < '2025-01-02 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:36:17] Production.INFO: count ==1498 [2025-01-02 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:36:05 - End Time 2025-01-02 20:36:05 [2025-01-02 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160697', 'tblTempUsageDetail_20' ) start [2025-01-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160697', 'tblTempUsageDetail_20' ) end [2025-01-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160697', 'tblTempVendorCDR_20' ) start [2025-01-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160697', 'tblTempVendorCDR_20' ) end [2025-01-02 20:36:18] Production.INFO: ProcessCDR(1,14160697,1,1,2) [2025-01-02 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160697', 'tblTempUsageDetail_20' ) start [2025-01-02 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160697', 'tblTempUsageDetail_20' ) end [2025-01-02 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:36:21] Production.INFO: ==11672== Releasing lock... [2025-01-02 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:36:21] Production.INFO: 39 MB #Memory Used# [2025-01-02 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:37:05 [end_date_ymd] => 2025-01-02 20:37:05 [RateCDR] => 1 ) [2025-01-02 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:37:05' and `end` < '2025-01-02 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:37:18] Production.INFO: count ==1493 [2025-01-02 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:37:05 - End Time 2025-01-02 20:37:05 [2025-01-02 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160702', 'tblTempUsageDetail_20' ) start [2025-01-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160702', 'tblTempUsageDetail_20' ) end [2025-01-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160702', 'tblTempVendorCDR_20' ) start [2025-01-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160702', 'tblTempVendorCDR_20' ) end [2025-01-02 20:37:18] Production.INFO: ProcessCDR(1,14160702,1,1,2) [2025-01-02 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160702', 'tblTempUsageDetail_20' ) start [2025-01-02 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160702', 'tblTempUsageDetail_20' ) end [2025-01-02 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:37:22] Production.INFO: ==11749== Releasing lock... [2025-01-02 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-02 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:38:04 [end_date_ymd] => 2025-01-02 20:38:04 [RateCDR] => 1 ) [2025-01-02 20:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:38:04' and `end` < '2025-01-02 20:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:38:17] Production.INFO: count ==1477 [2025-01-02 20:38:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:38:04 - End Time 2025-01-02 20:38:04 [2025-01-02 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160707', 'tblTempUsageDetail_20' ) start [2025-01-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160707', 'tblTempUsageDetail_20' ) end [2025-01-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160707', 'tblTempVendorCDR_20' ) start [2025-01-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160707', 'tblTempVendorCDR_20' ) end [2025-01-02 20:38:17] Production.INFO: ProcessCDR(1,14160707,1,1,2) [2025-01-02 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160707', 'tblTempUsageDetail_20' ) start [2025-01-02 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160707', 'tblTempUsageDetail_20' ) end [2025-01-02 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:38:21] Production.INFO: ==11833== Releasing lock... [2025-01-02 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:38:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-02 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:39:05 [end_date_ymd] => 2025-01-02 20:39:05 [RateCDR] => 1 ) [2025-01-02 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:39:05' and `end` < '2025-01-02 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:39:19] Production.INFO: count ==1473 [2025-01-02 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:39:05 - End Time 2025-01-02 20:39:05 [2025-01-02 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160712', 'tblTempUsageDetail_20' ) start [2025-01-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160712', 'tblTempUsageDetail_20' ) end [2025-01-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160712', 'tblTempVendorCDR_20' ) start [2025-01-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160712', 'tblTempVendorCDR_20' ) end [2025-01-02 20:39:19] Production.INFO: ProcessCDR(1,14160712,1,1,2) [2025-01-02 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160712', 'tblTempUsageDetail_20' ) start [2025-01-02 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160712', 'tblTempUsageDetail_20' ) end [2025-01-02 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:39:22] Production.INFO: ==11921== Releasing lock... [2025-01-02 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:39:22] Production.INFO: 39 MB #Memory Used# [2025-01-02 20:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:40:04 [end_date_ymd] => 2025-01-02 20:40:04 [RateCDR] => 1 ) [2025-01-02 20:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:40:04' and `end` < '2025-01-02 20:40:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:40:17] Production.INFO: count ==1474 [2025-01-02 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:40:04 - End Time 2025-01-02 20:40:04 [2025-01-02 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160717', 'tblTempUsageDetail_20' ) start [2025-01-02 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160717', 'tblTempUsageDetail_20' ) end [2025-01-02 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160717', 'tblTempVendorCDR_20' ) start [2025-01-02 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160717', 'tblTempVendorCDR_20' ) end [2025-01-02 20:40:18] Production.INFO: ProcessCDR(1,14160717,1,1,2) [2025-01-02 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160717', 'tblTempUsageDetail_20' ) start [2025-01-02 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160717', 'tblTempUsageDetail_20' ) end [2025-01-02 20:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:40:21] Production.INFO: ==12012== Releasing lock... [2025-01-02 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:40:21] Production.INFO: 39 MB #Memory Used# [2025-01-02 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:41:04 [end_date_ymd] => 2025-01-02 20:41:04 [RateCDR] => 1 ) [2025-01-02 20:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:41:04' and `end` < '2025-01-02 20:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:41:17] Production.INFO: count ==1424 [2025-01-02 20:41:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:41:04 - End Time 2025-01-02 20:41:04 [2025-01-02 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160723', 'tblTempUsageDetail_20' ) start [2025-01-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160723', 'tblTempUsageDetail_20' ) end [2025-01-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160723', 'tblTempVendorCDR_20' ) start [2025-01-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160723', 'tblTempVendorCDR_20' ) end [2025-01-02 20:41:17] Production.INFO: ProcessCDR(1,14160723,1,1,2) [2025-01-02 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160723', 'tblTempUsageDetail_20' ) start [2025-01-02 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160723', 'tblTempUsageDetail_20' ) end [2025-01-02 20:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:41:20] Production.INFO: ==12101== Releasing lock... [2025-01-02 20:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:41:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-02 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:42:05 [end_date_ymd] => 2025-01-02 20:42:05 [RateCDR] => 1 ) [2025-01-02 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:42:05' and `end` < '2025-01-02 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:42:19] Production.INFO: count ==1418 [2025-01-02 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:42:05 - End Time 2025-01-02 20:42:05 [2025-01-02 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160728', 'tblTempUsageDetail_20' ) start [2025-01-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160728', 'tblTempUsageDetail_20' ) end [2025-01-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160728', 'tblTempVendorCDR_20' ) start [2025-01-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160728', 'tblTempVendorCDR_20' ) end [2025-01-02 20:42:19] Production.INFO: ProcessCDR(1,14160728,1,1,2) [2025-01-02 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160728', 'tblTempUsageDetail_20' ) start [2025-01-02 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160728', 'tblTempUsageDetail_20' ) end [2025-01-02 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:42:22] Production.INFO: ==12197== Releasing lock... [2025-01-02 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-02 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:43:05 [end_date_ymd] => 2025-01-02 20:43:05 [RateCDR] => 1 ) [2025-01-02 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:43:05' and `end` < '2025-01-02 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:43:18] Production.INFO: count ==1402 [2025-01-02 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:43:05 - End Time 2025-01-02 20:43:05 [2025-01-02 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160733', 'tblTempUsageDetail_20' ) start [2025-01-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160733', 'tblTempUsageDetail_20' ) end [2025-01-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160733', 'tblTempVendorCDR_20' ) start [2025-01-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160733', 'tblTempVendorCDR_20' ) end [2025-01-02 20:43:18] Production.INFO: ProcessCDR(1,14160733,1,1,2) [2025-01-02 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160733', 'tblTempUsageDetail_20' ) start [2025-01-02 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160733', 'tblTempUsageDetail_20' ) end [2025-01-02 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:43:22] Production.INFO: ==12290== Releasing lock... [2025-01-02 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:43:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-02 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:44:05 [end_date_ymd] => 2025-01-02 20:44:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:44:05' and `end` < '2025-01-02 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-01-02 20:44:18] Production.INFO: count ==1353 [2025-01-02 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:44:05 - End Time 2025-01-02 20:44:05 [2025-01-02 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160738', 'tblTempUsageDetail_20' ) start [2025-01-02 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160738', 'tblTempUsageDetail_20' ) end [2025-01-02 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160738', 'tblTempVendorCDR_20' ) start [2025-01-02 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160738', 'tblTempVendorCDR_20' ) end [2025-01-02 20:44:18] Production.INFO: ProcessCDR(1,14160738,1,1,2) [2025-01-02 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160738', 'tblTempUsageDetail_20' ) start [2025-01-02 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160738', 'tblTempUsageDetail_20' ) end [2025-01-02 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:44:21] Production.INFO: ==12379== Releasing lock... [2025-01-02 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:44:21] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:45:04 [end_date_ymd] => 2025-01-02 20:45:04 [RateCDR] => 1 ) [2025-01-02 20:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:45:04' and `end` < '2025-01-02 20:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:45:17] Production.INFO: count ==1347 [2025-01-02 20:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:45:04 - End Time 2025-01-02 20:45:04 [2025-01-02 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160743', 'tblTempUsageDetail_20' ) start [2025-01-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160743', 'tblTempUsageDetail_20' ) end [2025-01-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160743', 'tblTempVendorCDR_20' ) start [2025-01-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160743', 'tblTempVendorCDR_20' ) end [2025-01-02 20:45:17] Production.INFO: ProcessCDR(1,14160743,1,1,2) [2025-01-02 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160743', 'tblTempUsageDetail_20' ) start [2025-01-02 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160743', 'tblTempUsageDetail_20' ) end [2025-01-02 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:45:21] Production.INFO: ==12465== Releasing lock... [2025-01-02 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-02 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:46:05 [end_date_ymd] => 2025-01-02 20:46:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:46:05' and `end` < '2025-01-02 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-01-02 20:46:18] Production.INFO: count ==1343 [2025-01-02 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:46:05 - End Time 2025-01-02 20:46:05 [2025-01-02 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160748', 'tblTempUsageDetail_20' ) start [2025-01-02 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160748', 'tblTempUsageDetail_20' ) end [2025-01-02 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160748', 'tblTempVendorCDR_20' ) start [2025-01-02 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160748', 'tblTempVendorCDR_20' ) end [2025-01-02 20:46:19] Production.INFO: ProcessCDR(1,14160748,1,1,2) [2025-01-02 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160748', 'tblTempUsageDetail_20' ) start [2025-01-02 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160748', 'tblTempUsageDetail_20' ) end [2025-01-02 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:46:22] Production.INFO: ==12549== Releasing lock... [2025-01-02 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:46:22] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:47:04 [end_date_ymd] => 2025-01-02 20:47:04 [RateCDR] => 1 ) [2025-01-02 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:47:04' and `end` < '2025-01-02 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:47:17] Production.INFO: count ==1343 [2025-01-02 20:47:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:47:04 - End Time 2025-01-02 20:47:04 [2025-01-02 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160753', 'tblTempUsageDetail_20' ) start [2025-01-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160753', 'tblTempUsageDetail_20' ) end [2025-01-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160753', 'tblTempVendorCDR_20' ) start [2025-01-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160753', 'tblTempVendorCDR_20' ) end [2025-01-02 20:47:17] Production.INFO: ProcessCDR(1,14160753,1,1,2) [2025-01-02 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160753', 'tblTempUsageDetail_20' ) start [2025-01-02 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160753', 'tblTempUsageDetail_20' ) end [2025-01-02 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:47:21] Production.INFO: ==12671== Releasing lock... [2025-01-02 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:47:21] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:48:05 [end_date_ymd] => 2025-01-02 20:48:05 [RateCDR] => 1 ) [2025-01-02 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:48:05' and `end` < '2025-01-02 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:48:18] Production.INFO: count ==1337 [2025-01-02 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:48:05 - End Time 2025-01-02 20:48:05 [2025-01-02 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160758', 'tblTempUsageDetail_20' ) start [2025-01-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160758', 'tblTempUsageDetail_20' ) end [2025-01-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160758', 'tblTempVendorCDR_20' ) start [2025-01-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160758', 'tblTempVendorCDR_20' ) end [2025-01-02 20:48:19] Production.INFO: ProcessCDR(1,14160758,1,1,2) [2025-01-02 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160758', 'tblTempUsageDetail_20' ) start [2025-01-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160758', 'tblTempUsageDetail_20' ) end [2025-01-02 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:48:22] Production.INFO: ==12758== Releasing lock... [2025-01-02 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:48:22] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:49:05 [end_date_ymd] => 2025-01-02 20:49:05 [RateCDR] => 1 ) [2025-01-02 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:49:05' and `end` < '2025-01-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:49:18] Production.INFO: count ==1336 [2025-01-02 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:49:05 - End Time 2025-01-02 20:49:05 [2025-01-02 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160763', 'tblTempUsageDetail_20' ) start [2025-01-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160763', 'tblTempUsageDetail_20' ) end [2025-01-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160763', 'tblTempVendorCDR_20' ) start [2025-01-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160763', 'tblTempVendorCDR_20' ) end [2025-01-02 20:49:19] Production.INFO: ProcessCDR(1,14160763,1,1,2) [2025-01-02 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160763', 'tblTempUsageDetail_20' ) start [2025-01-02 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160763', 'tblTempUsageDetail_20' ) end [2025-01-02 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:49:22] Production.INFO: ==12851== Releasing lock... [2025-01-02 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:49:22] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:50:05 [end_date_ymd] => 2025-01-02 20:50:05 [RateCDR] => 1 ) [2025-01-02 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:50:05' and `end` < '2025-01-02 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:50:18] Production.INFO: count ==1337 [2025-01-02 20:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:50:05 - End Time 2025-01-02 20:50:05 [2025-01-02 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160768', 'tblTempUsageDetail_20' ) start [2025-01-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160768', 'tblTempUsageDetail_20' ) end [2025-01-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160768', 'tblTempVendorCDR_20' ) start [2025-01-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160768', 'tblTempVendorCDR_20' ) end [2025-01-02 20:50:18] Production.INFO: ProcessCDR(1,14160768,1,1,2) [2025-01-02 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160768', 'tblTempUsageDetail_20' ) start [2025-01-02 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160768', 'tblTempUsageDetail_20' ) end [2025-01-02 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:50:22] Production.INFO: ==12937== Releasing lock... [2025-01-02 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:50:22] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:51:05 [end_date_ymd] => 2025-01-02 20:51:05 [RateCDR] => 1 ) [2025-01-02 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:51:05' and `end` < '2025-01-02 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:51:18] Production.INFO: count ==1326 [2025-01-02 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:51:05 - End Time 2025-01-02 20:51:05 [2025-01-02 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160774', 'tblTempUsageDetail_20' ) start [2025-01-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160774', 'tblTempUsageDetail_20' ) end [2025-01-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160774', 'tblTempVendorCDR_20' ) start [2025-01-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160774', 'tblTempVendorCDR_20' ) end [2025-01-02 20:51:18] Production.INFO: ProcessCDR(1,14160774,1,1,2) [2025-01-02 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160774', 'tblTempUsageDetail_20' ) start [2025-01-02 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160774', 'tblTempUsageDetail_20' ) end [2025-01-02 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:51:21] Production.INFO: ==13029== Releasing lock... [2025-01-02 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-02 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:52:05 [end_date_ymd] => 2025-01-02 20:52:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:52:05' and `end` < '2025-01-02 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-01-02 20:52:19] Production.INFO: count ==1328 [2025-01-02 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:52:05 - End Time 2025-01-02 20:52:05 [2025-01-02 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160779', 'tblTempUsageDetail_20' ) start [2025-01-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160779', 'tblTempUsageDetail_20' ) end [2025-01-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160779', 'tblTempVendorCDR_20' ) start [2025-01-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160779', 'tblTempVendorCDR_20' ) end [2025-01-02 20:52:19] Production.INFO: ProcessCDR(1,14160779,1,1,2) [2025-01-02 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160779', 'tblTempUsageDetail_20' ) start [2025-01-02 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160779', 'tblTempUsageDetail_20' ) end [2025-01-02 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:52:22] Production.INFO: ==13116== Releasing lock... [2025-01-02 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:52:22] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:53:05 [end_date_ymd] => 2025-01-02 20:53:05 [RateCDR] => 1 ) [2025-01-02 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:53:05' and `end` < '2025-01-02 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:53:19] Production.INFO: count ==1325 [2025-01-02 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:53:05 - End Time 2025-01-02 20:53:05 [2025-01-02 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160784', 'tblTempUsageDetail_20' ) start [2025-01-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160784', 'tblTempUsageDetail_20' ) end [2025-01-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160784', 'tblTempVendorCDR_20' ) start [2025-01-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160784', 'tblTempVendorCDR_20' ) end [2025-01-02 20:53:19] Production.INFO: ProcessCDR(1,14160784,1,1,2) [2025-01-02 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160784', 'tblTempUsageDetail_20' ) start [2025-01-02 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160784', 'tblTempUsageDetail_20' ) end [2025-01-02 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:53:22] Production.INFO: ==13204== Releasing lock... [2025-01-02 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:53:22] Production.INFO: 38 MB #Memory Used# [2025-01-02 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:54:05 [end_date_ymd] => 2025-01-02 20:54:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 17:54:05' and `end` < '2025-01-02 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-01-02 20:54:18] Production.INFO: count ==1306 [2025-01-02 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:54:05 - End Time 2025-01-02 20:54:05 [2025-01-02 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160789', 'tblTempUsageDetail_20' ) start [2025-01-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160789', 'tblTempUsageDetail_20' ) end [2025-01-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160789', 'tblTempVendorCDR_20' ) start [2025-01-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160789', 'tblTempVendorCDR_20' ) end [2025-01-02 20:54:19] Production.INFO: ProcessCDR(1,14160789,1,1,2) [2025-01-02 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160789', 'tblTempUsageDetail_20' ) start [2025-01-02 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160789', 'tblTempUsageDetail_20' ) end [2025-01-02 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:54:22] Production.INFO: ==13286== Releasing lock... [2025-01-02 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-02 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:55:05 [end_date_ymd] => 2025-01-02 20:55:05 [RateCDR] => 1 ) [2025-01-02 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:55:05' and `end` < '2025-01-02 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:55:18] Production.INFO: count ==1300 [2025-01-02 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:55:05 - End Time 2025-01-02 20:55:05 [2025-01-02 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160794', 'tblTempUsageDetail_20' ) start [2025-01-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160794', 'tblTempUsageDetail_20' ) end [2025-01-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160794', 'tblTempVendorCDR_20' ) start [2025-01-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160794', 'tblTempVendorCDR_20' ) end [2025-01-02 20:55:18] Production.INFO: ProcessCDR(1,14160794,1,1,2) [2025-01-02 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160794', 'tblTempUsageDetail_20' ) start [2025-01-02 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160794', 'tblTempUsageDetail_20' ) end [2025-01-02 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:55:21] Production.INFO: ==13372== Releasing lock... [2025-01-02 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:55:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-02 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:56:06 [end_date_ymd] => 2025-01-02 20:56:06 [RateCDR] => 1 ) [2025-01-02 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:56:06' and `end` < '2025-01-02 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:56:20] Production.INFO: count ==1299 [2025-01-02 20:56:20] Production.ERROR: pbx CDR StartTime 2025-01-02 17:56:06 - End Time 2025-01-02 20:56:06 [2025-01-02 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160799', 'tblTempUsageDetail_20' ) start [2025-01-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160799', 'tblTempUsageDetail_20' ) end [2025-01-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160799', 'tblTempVendorCDR_20' ) start [2025-01-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160799', 'tblTempVendorCDR_20' ) end [2025-01-02 20:56:20] Production.INFO: ProcessCDR(1,14160799,1,1,2) [2025-01-02 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160799', 'tblTempUsageDetail_20' ) start [2025-01-02 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160799', 'tblTempUsageDetail_20' ) end [2025-01-02 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:56:25] Production.INFO: ==13458== Releasing lock... [2025-01-02 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:56:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-02 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:57:04 [end_date_ymd] => 2025-01-02 20:57:04 [RateCDR] => 1 ) [2025-01-02 20:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:57:04' and `end` < '2025-01-02 20:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:57:17] Production.INFO: count ==1293 [2025-01-02 20:57:17] Production.ERROR: pbx CDR StartTime 2025-01-02 17:57:04 - End Time 2025-01-02 20:57:04 [2025-01-02 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160804', 'tblTempUsageDetail_20' ) start [2025-01-02 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160804', 'tblTempUsageDetail_20' ) end [2025-01-02 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160804', 'tblTempVendorCDR_20' ) start [2025-01-02 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160804', 'tblTempVendorCDR_20' ) end [2025-01-02 20:57:17] Production.INFO: ProcessCDR(1,14160804,1,1,2) [2025-01-02 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160804', 'tblTempUsageDetail_20' ) start [2025-01-02 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160804', 'tblTempUsageDetail_20' ) end [2025-01-02 20:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:57:20] Production.INFO: ==13542== Releasing lock... [2025-01-02 20:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:57:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-02 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:58:05 [end_date_ymd] => 2025-01-02 20:58:05 [RateCDR] => 1 ) [2025-01-02 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:58:05' and `end` < '2025-01-02 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:58:19] Production.INFO: count ==1290 [2025-01-02 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-02 17:58:05 - End Time 2025-01-02 20:58:05 [2025-01-02 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160809', 'tblTempUsageDetail_20' ) start [2025-01-02 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160809', 'tblTempUsageDetail_20' ) end [2025-01-02 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160809', 'tblTempVendorCDR_20' ) start [2025-01-02 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160809', 'tblTempVendorCDR_20' ) end [2025-01-02 20:58:19] Production.INFO: ProcessCDR(1,14160809,1,1,2) [2025-01-02 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160809', 'tblTempUsageDetail_20' ) start [2025-01-02 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160809', 'tblTempUsageDetail_20' ) end [2025-01-02 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:58:23] Production.INFO: ==13620== Releasing lock... [2025-01-02 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:58:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-02 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 17:59:04 [end_date_ymd] => 2025-01-02 20:59:04 [RateCDR] => 1 ) [2025-01-02 20:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 17:59:04' and `end` < '2025-01-02 20:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 20:59:17] Production.INFO: count ==1282 [2025-01-02 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 17:59:04 - End Time 2025-01-02 20:59:04 [2025-01-02 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160814', 'tblTempUsageDetail_20' ) start [2025-01-02 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160814', 'tblTempUsageDetail_20' ) end [2025-01-02 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160814', 'tblTempVendorCDR_20' ) start [2025-01-02 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160814', 'tblTempVendorCDR_20' ) end [2025-01-02 20:59:18] Production.INFO: ProcessCDR(1,14160814,1,1,2) [2025-01-02 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160814', 'tblTempUsageDetail_20' ) start [2025-01-02 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160814', 'tblTempUsageDetail_20' ) end [2025-01-02 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 20:59:21] Production.INFO: ==13701== Releasing lock... [2025-01-02 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 20:59:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-02 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:00:06 [end_date_ymd] => 2025-01-02 21:00:06 [RateCDR] => 1 ) [2025-01-02 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:00:06' and `end` < '2025-01-02 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:00:19] Production.INFO: count ==1274 [2025-01-02 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:00:06 - End Time 2025-01-02 21:00:06 [2025-01-02 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160820', 'tblTempUsageDetail_20' ) start [2025-01-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160820', 'tblTempUsageDetail_20' ) end [2025-01-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160820', 'tblTempVendorCDR_20' ) start [2025-01-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160820', 'tblTempVendorCDR_20' ) end [2025-01-02 21:00:19] Production.INFO: ProcessCDR(1,14160820,1,1,2) [2025-01-02 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160820', 'tblTempUsageDetail_20' ) start [2025-01-02 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160820', 'tblTempUsageDetail_20' ) end [2025-01-02 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:00:22] Production.INFO: ==13782== Releasing lock... [2025-01-02 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-02 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:01:05 [end_date_ymd] => 2025-01-02 21:01:05 [RateCDR] => 1 ) [2025-01-02 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:01:05' and `end` < '2025-01-02 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:01:18] Production.INFO: count ==1242 [2025-01-02 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:01:05 - End Time 2025-01-02 21:01:05 [2025-01-02 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160825', 'tblTempUsageDetail_20' ) start [2025-01-02 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160825', 'tblTempUsageDetail_20' ) end [2025-01-02 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160825', 'tblTempVendorCDR_20' ) start [2025-01-02 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160825', 'tblTempVendorCDR_20' ) end [2025-01-02 21:01:18] Production.INFO: ProcessCDR(1,14160825,1,1,2) [2025-01-02 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160825', 'tblTempUsageDetail_20' ) start [2025-01-02 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160825', 'tblTempUsageDetail_20' ) end [2025-01-02 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:01:21] Production.INFO: ==13873== Releasing lock... [2025-01-02 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:01:21] Production.INFO: 37 MB #Memory Used# [2025-01-02 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:02:05 [end_date_ymd] => 2025-01-02 21:02:05 [RateCDR] => 1 ) [2025-01-02 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:02:05' and `end` < '2025-01-02 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:02:19] Production.INFO: count ==1240 [2025-01-02 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:02:05 - End Time 2025-01-02 21:02:05 [2025-01-02 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160830', 'tblTempUsageDetail_20' ) start [2025-01-02 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160830', 'tblTempUsageDetail_20' ) end [2025-01-02 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160830', 'tblTempVendorCDR_20' ) start [2025-01-02 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160830', 'tblTempVendorCDR_20' ) end [2025-01-02 21:02:19] Production.INFO: ProcessCDR(1,14160830,1,1,2) [2025-01-02 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160830', 'tblTempUsageDetail_20' ) start [2025-01-02 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160830', 'tblTempUsageDetail_20' ) end [2025-01-02 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:02:22] Production.INFO: ==13952== Releasing lock... [2025-01-02 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:02:22] Production.INFO: 37 MB #Memory Used# [2025-01-02 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:03:05 [end_date_ymd] => 2025-01-02 21:03:05 [RateCDR] => 1 ) [2025-01-02 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:03:05' and `end` < '2025-01-02 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:03:18] Production.INFO: count ==1235 [2025-01-02 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:03:05 - End Time 2025-01-02 21:03:05 [2025-01-02 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160835', 'tblTempUsageDetail_20' ) start [2025-01-02 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160835', 'tblTempUsageDetail_20' ) end [2025-01-02 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160835', 'tblTempVendorCDR_20' ) start [2025-01-02 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160835', 'tblTempVendorCDR_20' ) end [2025-01-02 21:03:18] Production.INFO: ProcessCDR(1,14160835,1,1,2) [2025-01-02 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160835', 'tblTempUsageDetail_20' ) start [2025-01-02 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160835', 'tblTempUsageDetail_20' ) end [2025-01-02 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:03:21] Production.INFO: ==14064== Releasing lock... [2025-01-02 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:03:21] Production.INFO: 37 MB #Memory Used# [2025-01-02 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:04:05 [end_date_ymd] => 2025-01-02 21:04:05 [RateCDR] => 1 ) [2025-01-02 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:04:05' and `end` < '2025-01-02 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:04:17] Production.INFO: count ==1230 [2025-01-02 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:04:05 - End Time 2025-01-02 21:04:05 [2025-01-02 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160840', 'tblTempUsageDetail_20' ) start [2025-01-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160840', 'tblTempUsageDetail_20' ) end [2025-01-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160840', 'tblTempVendorCDR_20' ) start [2025-01-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160840', 'tblTempVendorCDR_20' ) end [2025-01-02 21:04:18] Production.INFO: ProcessCDR(1,14160840,1,1,2) [2025-01-02 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160840', 'tblTempUsageDetail_20' ) start [2025-01-02 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160840', 'tblTempUsageDetail_20' ) end [2025-01-02 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:04:21] Production.INFO: ==14139== Releasing lock... [2025-01-02 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:04:21] Production.INFO: 37 MB #Memory Used# [2025-01-02 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:05:05 [end_date_ymd] => 2025-01-02 21:05:05 [RateCDR] => 1 ) [2025-01-02 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:05:05' and `end` < '2025-01-02 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:05:18] Production.INFO: count ==1192 [2025-01-02 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:05:05 - End Time 2025-01-02 21:05:05 [2025-01-02 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160845', 'tblTempUsageDetail_20' ) start [2025-01-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160845', 'tblTempUsageDetail_20' ) end [2025-01-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160845', 'tblTempVendorCDR_20' ) start [2025-01-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160845', 'tblTempVendorCDR_20' ) end [2025-01-02 21:05:18] Production.INFO: ProcessCDR(1,14160845,1,1,2) [2025-01-02 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160845', 'tblTempUsageDetail_20' ) start [2025-01-02 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160845', 'tblTempUsageDetail_20' ) end [2025-01-02 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:05:21] Production.INFO: ==14211== Releasing lock... [2025-01-02 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:05:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-02 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:06:05 [end_date_ymd] => 2025-01-02 21:06:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:06:05' and `end` < '2025-01-02 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-01-02 21:06:18] Production.INFO: count ==1193 [2025-01-02 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:06:05 - End Time 2025-01-02 21:06:05 [2025-01-02 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160850', 'tblTempUsageDetail_20' ) start [2025-01-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160850', 'tblTempUsageDetail_20' ) end [2025-01-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160850', 'tblTempVendorCDR_20' ) start [2025-01-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160850', 'tblTempVendorCDR_20' ) end [2025-01-02 21:06:18] Production.INFO: ProcessCDR(1,14160850,1,1,2) [2025-01-02 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160850', 'tblTempUsageDetail_20' ) start [2025-01-02 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160850', 'tblTempUsageDetail_20' ) end [2025-01-02 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:06:21] Production.INFO: ==14286== Releasing lock... [2025-01-02 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:06:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-02 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:07:05 [end_date_ymd] => 2025-01-02 21:07:05 [RateCDR] => 1 ) [2025-01-02 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:07:05' and `end` < '2025-01-02 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:07:18] Production.INFO: count ==1192 [2025-01-02 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:07:05 - End Time 2025-01-02 21:07:05 [2025-01-02 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160855', 'tblTempUsageDetail_20' ) start [2025-01-02 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160855', 'tblTempUsageDetail_20' ) end [2025-01-02 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160855', 'tblTempVendorCDR_20' ) start [2025-01-02 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160855', 'tblTempVendorCDR_20' ) end [2025-01-02 21:07:18] Production.INFO: ProcessCDR(1,14160855,1,1,2) [2025-01-02 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160855', 'tblTempUsageDetail_20' ) start [2025-01-02 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160855', 'tblTempUsageDetail_20' ) end [2025-01-02 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:07:22] Production.INFO: ==14359== Releasing lock... [2025-01-02 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-02 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:08:06 [end_date_ymd] => 2025-01-02 21:08:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:08:06' and `end` < '2025-01-02 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-01-02 21:08:19] Production.INFO: count ==1188 [2025-01-02 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:08:06 - End Time 2025-01-02 21:08:06 [2025-01-02 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160860', 'tblTempUsageDetail_20' ) start [2025-01-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160860', 'tblTempUsageDetail_20' ) end [2025-01-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160860', 'tblTempVendorCDR_20' ) start [2025-01-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160860', 'tblTempVendorCDR_20' ) end [2025-01-02 21:08:19] Production.INFO: ProcessCDR(1,14160860,1,1,2) [2025-01-02 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160860', 'tblTempUsageDetail_20' ) start [2025-01-02 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160860', 'tblTempUsageDetail_20' ) end [2025-01-02 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:08:23] Production.INFO: ==14430== Releasing lock... [2025-01-02 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:08:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-02 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:09:05 [end_date_ymd] => 2025-01-02 21:09:05 [RateCDR] => 1 ) [2025-01-02 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:09:05' and `end` < '2025-01-02 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:09:17] Production.INFO: count ==1184 [2025-01-02 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:09:05 - End Time 2025-01-02 21:09:05 [2025-01-02 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160865', 'tblTempUsageDetail_20' ) start [2025-01-02 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160865', 'tblTempUsageDetail_20' ) end [2025-01-02 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160865', 'tblTempVendorCDR_20' ) start [2025-01-02 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160865', 'tblTempVendorCDR_20' ) end [2025-01-02 21:09:18] Production.INFO: ProcessCDR(1,14160865,1,1,2) [2025-01-02 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160865', 'tblTempUsageDetail_20' ) start [2025-01-02 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160865', 'tblTempUsageDetail_20' ) end [2025-01-02 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:09:21] Production.INFO: ==14500== Releasing lock... [2025-01-02 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:09:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-02 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:10:06 [end_date_ymd] => 2025-01-02 21:10:06 [RateCDR] => 1 ) [2025-01-02 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:10:06' and `end` < '2025-01-02 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:10:19] Production.INFO: count ==1179 [2025-01-02 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:10:06 - End Time 2025-01-02 21:10:06 [2025-01-02 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160871', 'tblTempUsageDetail_20' ) start [2025-01-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160871', 'tblTempUsageDetail_20' ) end [2025-01-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160871', 'tblTempVendorCDR_20' ) start [2025-01-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160871', 'tblTempVendorCDR_20' ) end [2025-01-02 21:10:19] Production.INFO: ProcessCDR(1,14160871,1,1,2) [2025-01-02 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160871', 'tblTempUsageDetail_20' ) start [2025-01-02 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160871', 'tblTempUsageDetail_20' ) end [2025-01-02 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:10:22] Production.INFO: ==14572== Releasing lock... [2025-01-02 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:10:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-02 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:11:05 [end_date_ymd] => 2025-01-02 21:11:05 [RateCDR] => 1 ) [2025-01-02 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:11:05' and `end` < '2025-01-02 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:11:18] Production.INFO: count ==1151 [2025-01-02 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:11:05 - End Time 2025-01-02 21:11:05 [2025-01-02 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160876', 'tblTempUsageDetail_20' ) start [2025-01-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160876', 'tblTempUsageDetail_20' ) end [2025-01-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160876', 'tblTempVendorCDR_20' ) start [2025-01-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160876', 'tblTempVendorCDR_20' ) end [2025-01-02 21:11:18] Production.INFO: ProcessCDR(1,14160876,1,1,2) [2025-01-02 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160876', 'tblTempUsageDetail_20' ) start [2025-01-02 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160876', 'tblTempUsageDetail_20' ) end [2025-01-02 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:11:22] Production.INFO: ==14645== Releasing lock... [2025-01-02 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:11:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:12:05 [end_date_ymd] => 2025-01-02 21:12:05 [RateCDR] => 1 ) [2025-01-02 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:12:05' and `end` < '2025-01-02 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:12:18] Production.INFO: count ==1149 [2025-01-02 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:12:05 - End Time 2025-01-02 21:12:05 [2025-01-02 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160881', 'tblTempUsageDetail_20' ) start [2025-01-02 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160881', 'tblTempUsageDetail_20' ) end [2025-01-02 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160881', 'tblTempVendorCDR_20' ) start [2025-01-02 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160881', 'tblTempVendorCDR_20' ) end [2025-01-02 21:12:18] Production.INFO: ProcessCDR(1,14160881,1,1,2) [2025-01-02 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160881', 'tblTempUsageDetail_20' ) start [2025-01-02 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160881', 'tblTempUsageDetail_20' ) end [2025-01-02 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:12:21] Production.INFO: ==14715== Releasing lock... [2025-01-02 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:13:04 [end_date_ymd] => 2025-01-02 21:13:04 [RateCDR] => 1 ) [2025-01-02 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:13:04' and `end` < '2025-01-02 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:13:18] Production.INFO: count ==1145 [2025-01-02 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:13:04 - End Time 2025-01-02 21:13:04 [2025-01-02 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160886', 'tblTempUsageDetail_20' ) start [2025-01-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160886', 'tblTempUsageDetail_20' ) end [2025-01-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160886', 'tblTempVendorCDR_20' ) start [2025-01-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160886', 'tblTempVendorCDR_20' ) end [2025-01-02 21:13:18] Production.INFO: ProcessCDR(1,14160886,1,1,2) [2025-01-02 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160886', 'tblTempUsageDetail_20' ) start [2025-01-02 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160886', 'tblTempUsageDetail_20' ) end [2025-01-02 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:13:21] Production.INFO: ==14787== Releasing lock... [2025-01-02 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:13:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:14:04 [end_date_ymd] => 2025-01-02 21:14:04 [RateCDR] => 1 ) [2025-01-02 21:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:14:04' and `end` < '2025-01-02 21:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:14:17] Production.INFO: count ==1149 [2025-01-02 21:14:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:14:04 - End Time 2025-01-02 21:14:04 [2025-01-02 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160891', 'tblTempUsageDetail_20' ) start [2025-01-02 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160891', 'tblTempUsageDetail_20' ) end [2025-01-02 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160891', 'tblTempVendorCDR_20' ) start [2025-01-02 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160891', 'tblTempVendorCDR_20' ) end [2025-01-02 21:14:17] Production.INFO: ProcessCDR(1,14160891,1,1,2) [2025-01-02 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160891', 'tblTempUsageDetail_20' ) start [2025-01-02 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160891', 'tblTempUsageDetail_20' ) end [2025-01-02 21:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:14:20] Production.INFO: ==14861== Releasing lock... [2025-01-02 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:14:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:15:06 [end_date_ymd] => 2025-01-02 21:15:06 [RateCDR] => 1 ) [2025-01-02 21:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:15:06' and `end` < '2025-01-02 21:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:15:18] Production.INFO: count ==1145 [2025-01-02 21:15:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:15:06 - End Time 2025-01-02 21:15:06 [2025-01-02 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160896', 'tblTempUsageDetail_20' ) start [2025-01-02 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160896', 'tblTempUsageDetail_20' ) end [2025-01-02 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160896', 'tblTempVendorCDR_20' ) start [2025-01-02 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160896', 'tblTempVendorCDR_20' ) end [2025-01-02 21:15:19] Production.INFO: ProcessCDR(1,14160896,1,1,2) [2025-01-02 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160896', 'tblTempUsageDetail_20' ) start [2025-01-02 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160896', 'tblTempUsageDetail_20' ) end [2025-01-02 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:15:23] Production.INFO: ==14931== Releasing lock... [2025-01-02 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:15:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:16:05 [end_date_ymd] => 2025-01-02 21:16:05 [RateCDR] => 1 ) [2025-01-02 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:16:05' and `end` < '2025-01-02 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:16:18] Production.INFO: count ==1146 [2025-01-02 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:16:05 - End Time 2025-01-02 21:16:05 [2025-01-02 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160901', 'tblTempUsageDetail_20' ) start [2025-01-02 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160901', 'tblTempUsageDetail_20' ) end [2025-01-02 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160901', 'tblTempVendorCDR_20' ) start [2025-01-02 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160901', 'tblTempVendorCDR_20' ) end [2025-01-02 21:16:18] Production.INFO: ProcessCDR(1,14160901,1,1,2) [2025-01-02 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160901', 'tblTempUsageDetail_20' ) start [2025-01-02 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160901', 'tblTempUsageDetail_20' ) end [2025-01-02 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:16:21] Production.INFO: ==15004== Releasing lock... [2025-01-02 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:16:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:17:05 [end_date_ymd] => 2025-01-02 21:17:05 [RateCDR] => 1 ) [2025-01-02 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:17:05' and `end` < '2025-01-02 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:17:20] Production.INFO: count ==1142 [2025-01-02 21:17:20] Production.ERROR: pbx CDR StartTime 2025-01-02 18:17:05 - End Time 2025-01-02 21:17:05 [2025-01-02 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160906', 'tblTempUsageDetail_20' ) start [2025-01-02 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160906', 'tblTempUsageDetail_20' ) end [2025-01-02 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160906', 'tblTempVendorCDR_20' ) start [2025-01-02 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160906', 'tblTempVendorCDR_20' ) end [2025-01-02 21:17:20] Production.INFO: ProcessCDR(1,14160906,1,1,2) [2025-01-02 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160906', 'tblTempUsageDetail_20' ) start [2025-01-02 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160906', 'tblTempUsageDetail_20' ) end [2025-01-02 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:17:23] Production.INFO: ==15075== Releasing lock... [2025-01-02 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:17:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:18:05 [end_date_ymd] => 2025-01-02 21:18:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:18:05' and `end` < '2025-01-02 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-01-02 21:18:18] Production.INFO: count ==1136 [2025-01-02 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:18:05 - End Time 2025-01-02 21:18:05 [2025-01-02 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160911', 'tblTempUsageDetail_20' ) start [2025-01-02 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160911', 'tblTempUsageDetail_20' ) end [2025-01-02 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160911', 'tblTempVendorCDR_20' ) start [2025-01-02 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160911', 'tblTempVendorCDR_20' ) end [2025-01-02 21:18:18] Production.INFO: ProcessCDR(1,14160911,1,1,2) [2025-01-02 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160911', 'tblTempUsageDetail_20' ) start [2025-01-02 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160911', 'tblTempUsageDetail_20' ) end [2025-01-02 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:18:21] Production.INFO: ==15166== Releasing lock... [2025-01-02 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:18:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-02 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:19:05 [end_date_ymd] => 2025-01-02 21:19:05 [RateCDR] => 1 ) [2025-01-02 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:19:05' and `end` < '2025-01-02 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:19:18] Production.INFO: count ==1136 [2025-01-02 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:19:05 - End Time 2025-01-02 21:19:05 [2025-01-02 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160916', 'tblTempUsageDetail_20' ) start [2025-01-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160916', 'tblTempUsageDetail_20' ) end [2025-01-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160916', 'tblTempVendorCDR_20' ) start [2025-01-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160916', 'tblTempVendorCDR_20' ) end [2025-01-02 21:19:18] Production.INFO: ProcessCDR(1,14160916,1,1,2) [2025-01-02 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160916', 'tblTempUsageDetail_20' ) start [2025-01-02 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160916', 'tblTempUsageDetail_20' ) end [2025-01-02 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:19:22] Production.INFO: ==15278== Releasing lock... [2025-01-02 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:19:22] Production.INFO: 36 MB #Memory Used# [2025-01-02 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:20:05 [end_date_ymd] => 2025-01-02 21:20:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:20:05' and `end` < '2025-01-02 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-01-02 21:20:18] Production.INFO: count ==1127 [2025-01-02 21:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:20:05 - End Time 2025-01-02 21:20:05 [2025-01-02 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160922', 'tblTempUsageDetail_20' ) start [2025-01-02 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160922', 'tblTempUsageDetail_20' ) end [2025-01-02 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160922', 'tblTempVendorCDR_20' ) start [2025-01-02 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160922', 'tblTempVendorCDR_20' ) end [2025-01-02 21:20:18] Production.INFO: ProcessCDR(1,14160922,1,1,2) [2025-01-02 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160922', 'tblTempUsageDetail_20' ) start [2025-01-02 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160922', 'tblTempUsageDetail_20' ) end [2025-01-02 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:20:23] Production.INFO: ==15353== Releasing lock... [2025-01-02 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:20:23] Production.INFO: 36 MB #Memory Used# [2025-01-02 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:21:05 [end_date_ymd] => 2025-01-02 21:21:05 [RateCDR] => 1 ) [2025-01-02 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:21:05' and `end` < '2025-01-02 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:21:17] Production.INFO: count ==1068 [2025-01-02 21:21:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:21:05 - End Time 2025-01-02 21:21:05 [2025-01-02 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160927', 'tblTempUsageDetail_20' ) start [2025-01-02 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160927', 'tblTempUsageDetail_20' ) end [2025-01-02 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160927', 'tblTempVendorCDR_20' ) start [2025-01-02 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160927', 'tblTempVendorCDR_20' ) end [2025-01-02 21:21:17] Production.INFO: ProcessCDR(1,14160927,1,1,2) [2025-01-02 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160927', 'tblTempUsageDetail_20' ) start [2025-01-02 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160927', 'tblTempUsageDetail_20' ) end [2025-01-02 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:21:22] Production.INFO: ==15424== Releasing lock... [2025-01-02 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:21:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:22:05 [end_date_ymd] => 2025-01-02 21:22:05 [RateCDR] => 1 ) [2025-01-02 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:22:05' and `end` < '2025-01-02 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:22:18] Production.INFO: count ==1061 [2025-01-02 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:22:05 - End Time 2025-01-02 21:22:05 [2025-01-02 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160932', 'tblTempUsageDetail_20' ) start [2025-01-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160932', 'tblTempUsageDetail_20' ) end [2025-01-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160932', 'tblTempVendorCDR_20' ) start [2025-01-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160932', 'tblTempVendorCDR_20' ) end [2025-01-02 21:22:18] Production.INFO: ProcessCDR(1,14160932,1,1,2) [2025-01-02 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160932', 'tblTempUsageDetail_20' ) start [2025-01-02 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160932', 'tblTempUsageDetail_20' ) end [2025-01-02 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:22:22] Production.INFO: ==15497== Releasing lock... [2025-01-02 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:22:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:23:06 [end_date_ymd] => 2025-01-02 21:23:06 [RateCDR] => 1 ) [2025-01-02 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:23:06' and `end` < '2025-01-02 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:23:18] Production.INFO: count ==1055 [2025-01-02 21:23:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:23:06 - End Time 2025-01-02 21:23:06 [2025-01-02 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160937', 'tblTempUsageDetail_20' ) start [2025-01-02 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160937', 'tblTempUsageDetail_20' ) end [2025-01-02 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160937', 'tblTempVendorCDR_20' ) start [2025-01-02 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160937', 'tblTempVendorCDR_20' ) end [2025-01-02 21:23:19] Production.INFO: ProcessCDR(1,14160937,1,1,2) [2025-01-02 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160937', 'tblTempUsageDetail_20' ) start [2025-01-02 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160937', 'tblTempUsageDetail_20' ) end [2025-01-02 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:23:22] Production.INFO: ==15567== Releasing lock... [2025-01-02 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:23:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:24:05 [end_date_ymd] => 2025-01-02 21:24:05 [RateCDR] => 1 ) [2025-01-02 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:24:05' and `end` < '2025-01-02 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:24:19] Production.INFO: count ==1048 [2025-01-02 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:24:05 - End Time 2025-01-02 21:24:05 [2025-01-02 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160942', 'tblTempUsageDetail_20' ) start [2025-01-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160942', 'tblTempUsageDetail_20' ) end [2025-01-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160942', 'tblTempVendorCDR_20' ) start [2025-01-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160942', 'tblTempVendorCDR_20' ) end [2025-01-02 21:24:19] Production.INFO: ProcessCDR(1,14160942,1,1,2) [2025-01-02 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160942', 'tblTempUsageDetail_20' ) start [2025-01-02 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160942', 'tblTempUsageDetail_20' ) end [2025-01-02 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:24:22] Production.INFO: ==15636== Releasing lock... [2025-01-02 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:24:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:25:05 [end_date_ymd] => 2025-01-02 21:25:05 [RateCDR] => 1 ) [2025-01-02 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:25:05' and `end` < '2025-01-02 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:25:18] Production.INFO: count ==1037 [2025-01-02 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:25:05 - End Time 2025-01-02 21:25:05 [2025-01-02 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160947', 'tblTempUsageDetail_20' ) start [2025-01-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160947', 'tblTempUsageDetail_20' ) end [2025-01-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160947', 'tblTempVendorCDR_20' ) start [2025-01-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160947', 'tblTempVendorCDR_20' ) end [2025-01-02 21:25:18] Production.INFO: ProcessCDR(1,14160947,1,1,2) [2025-01-02 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160947', 'tblTempUsageDetail_20' ) start [2025-01-02 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160947', 'tblTempUsageDetail_20' ) end [2025-01-02 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:25:23] Production.INFO: ==15707== Releasing lock... [2025-01-02 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:25:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-02 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:26:04 [end_date_ymd] => 2025-01-02 21:26:04 [RateCDR] => 1 ) [2025-01-02 21:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:26:04' and `end` < '2025-01-02 21:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:26:17] Production.INFO: count ==1034 [2025-01-02 21:26:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:26:04 - End Time 2025-01-02 21:26:04 [2025-01-02 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160952', 'tblTempUsageDetail_20' ) start [2025-01-02 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160952', 'tblTempUsageDetail_20' ) end [2025-01-02 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160952', 'tblTempVendorCDR_20' ) start [2025-01-02 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160952', 'tblTempVendorCDR_20' ) end [2025-01-02 21:26:17] Production.INFO: ProcessCDR(1,14160952,1,1,2) [2025-01-02 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160952', 'tblTempUsageDetail_20' ) start [2025-01-02 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160952', 'tblTempUsageDetail_20' ) end [2025-01-02 21:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:26:20] Production.INFO: ==15777== Releasing lock... [2025-01-02 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:26:20] Production.INFO: 35.25 MB #Memory Used# [2025-01-02 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:27:05 [end_date_ymd] => 2025-01-02 21:27:05 [RateCDR] => 1 ) [2025-01-02 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:27:05' and `end` < '2025-01-02 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:27:18] Production.INFO: count ==1029 [2025-01-02 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:27:05 - End Time 2025-01-02 21:27:05 [2025-01-02 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160957', 'tblTempUsageDetail_20' ) start [2025-01-02 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160957', 'tblTempUsageDetail_20' ) end [2025-01-02 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160957', 'tblTempVendorCDR_20' ) start [2025-01-02 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160957', 'tblTempVendorCDR_20' ) end [2025-01-02 21:27:18] Production.INFO: ProcessCDR(1,14160957,1,1,2) [2025-01-02 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160957', 'tblTempUsageDetail_20' ) start [2025-01-02 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160957', 'tblTempUsageDetail_20' ) end [2025-01-02 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:27:21] Production.INFO: ==15849== Releasing lock... [2025-01-02 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:27:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-02 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:28:05 [end_date_ymd] => 2025-01-02 21:28:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:28:05' and `end` < '2025-01-02 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-01-02 21:28:18] Production.INFO: count ==1019 [2025-01-02 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:28:05 - End Time 2025-01-02 21:28:05 [2025-01-02 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160962', 'tblTempUsageDetail_20' ) start [2025-01-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160962', 'tblTempUsageDetail_20' ) end [2025-01-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160962', 'tblTempVendorCDR_20' ) start [2025-01-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160962', 'tblTempVendorCDR_20' ) end [2025-01-02 21:28:19] Production.INFO: ProcessCDR(1,14160962,1,1,2) [2025-01-02 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160962', 'tblTempUsageDetail_20' ) start [2025-01-02 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160962', 'tblTempUsageDetail_20' ) end [2025-01-02 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:28:22] Production.INFO: ==15918== Releasing lock... [2025-01-02 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:28:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-02 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:29:04 [end_date_ymd] => 2025-01-02 21:29:04 [RateCDR] => 1 ) [2025-01-02 21:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:29:04' and `end` < '2025-01-02 21:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:29:17] Production.INFO: count ==1018 [2025-01-02 21:29:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:29:04 - End Time 2025-01-02 21:29:04 [2025-01-02 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160967', 'tblTempUsageDetail_20' ) start [2025-01-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160967', 'tblTempUsageDetail_20' ) end [2025-01-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160967', 'tblTempVendorCDR_20' ) start [2025-01-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160967', 'tblTempVendorCDR_20' ) end [2025-01-02 21:29:17] Production.INFO: ProcessCDR(1,14160967,1,1,2) [2025-01-02 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160967', 'tblTempUsageDetail_20' ) start [2025-01-02 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160967', 'tblTempUsageDetail_20' ) end [2025-01-02 21:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:29:20] Production.INFO: ==15989== Releasing lock... [2025-01-02 21:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:29:20] Production.INFO: 35.25 MB #Memory Used# [2025-01-02 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:30:06 [end_date_ymd] => 2025-01-02 21:30:06 [RateCDR] => 1 ) [2025-01-02 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:30:06' and `end` < '2025-01-02 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:30:19] Production.INFO: count ==1008 [2025-01-02 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:30:06 - End Time 2025-01-02 21:30:06 [2025-01-02 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160973', 'tblTempUsageDetail_20' ) start [2025-01-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160973', 'tblTempUsageDetail_20' ) end [2025-01-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160973', 'tblTempVendorCDR_20' ) start [2025-01-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160973', 'tblTempVendorCDR_20' ) end [2025-01-02 21:30:19] Production.INFO: ProcessCDR(1,14160973,1,1,2) [2025-01-02 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160973', 'tblTempUsageDetail_20' ) start [2025-01-02 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160973', 'tblTempUsageDetail_20' ) end [2025-01-02 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:30:22] Production.INFO: ==16063== Releasing lock... [2025-01-02 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-02 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:31:05 [end_date_ymd] => 2025-01-02 21:31:05 [RateCDR] => 1 ) [2025-01-02 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:31:05' and `end` < '2025-01-02 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:31:18] Production.INFO: count ==966 [2025-01-02 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:31:05 - End Time 2025-01-02 21:31:05 [2025-01-02 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160978', 'tblTempUsageDetail_20' ) start [2025-01-02 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160978', 'tblTempUsageDetail_20' ) end [2025-01-02 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160978', 'tblTempVendorCDR_20' ) start [2025-01-02 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160978', 'tblTempVendorCDR_20' ) end [2025-01-02 21:31:18] Production.INFO: ProcessCDR(1,14160978,1,1,2) [2025-01-02 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160978', 'tblTempUsageDetail_20' ) start [2025-01-02 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160978', 'tblTempUsageDetail_20' ) end [2025-01-02 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:31:23] Production.INFO: ==16135== Releasing lock... [2025-01-02 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:31:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:32:06 [end_date_ymd] => 2025-01-02 21:32:06 [RateCDR] => 1 ) [2025-01-02 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:32:06' and `end` < '2025-01-02 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:32:18] Production.INFO: count ==963 [2025-01-02 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:32:06 - End Time 2025-01-02 21:32:06 [2025-01-02 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160983', 'tblTempUsageDetail_20' ) start [2025-01-02 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160983', 'tblTempUsageDetail_20' ) end [2025-01-02 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160983', 'tblTempVendorCDR_20' ) start [2025-01-02 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160983', 'tblTempVendorCDR_20' ) end [2025-01-02 21:32:18] Production.INFO: ProcessCDR(1,14160983,1,1,2) [2025-01-02 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160983', 'tblTempUsageDetail_20' ) start [2025-01-02 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160983', 'tblTempUsageDetail_20' ) end [2025-01-02 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:32:23] Production.INFO: ==16210== Releasing lock... [2025-01-02 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:32:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:33:05 [end_date_ymd] => 2025-01-02 21:33:05 [RateCDR] => 1 ) [2025-01-02 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:33:05' and `end` < '2025-01-02 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:33:17] Production.INFO: count ==958 [2025-01-02 21:33:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:33:05 - End Time 2025-01-02 21:33:05 [2025-01-02 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160988', 'tblTempUsageDetail_20' ) start [2025-01-02 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160988', 'tblTempUsageDetail_20' ) end [2025-01-02 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160988', 'tblTempVendorCDR_20' ) start [2025-01-02 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160988', 'tblTempVendorCDR_20' ) end [2025-01-02 21:33:17] Production.INFO: ProcessCDR(1,14160988,1,1,2) [2025-01-02 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160988', 'tblTempUsageDetail_20' ) start [2025-01-02 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160988', 'tblTempUsageDetail_20' ) end [2025-01-02 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:33:21] Production.INFO: ==16282== Releasing lock... [2025-01-02 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:33:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:34:05 [end_date_ymd] => 2025-01-02 21:34:05 [RateCDR] => 1 ) [2025-01-02 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:34:05' and `end` < '2025-01-02 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:34:17] Production.INFO: count ==955 [2025-01-02 21:34:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:34:05 - End Time 2025-01-02 21:34:05 [2025-01-02 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160993', 'tblTempUsageDetail_20' ) start [2025-01-02 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160993', 'tblTempUsageDetail_20' ) end [2025-01-02 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160993', 'tblTempVendorCDR_20' ) start [2025-01-02 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160993', 'tblTempVendorCDR_20' ) end [2025-01-02 21:34:17] Production.INFO: ProcessCDR(1,14160993,1,1,2) [2025-01-02 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160993', 'tblTempUsageDetail_20' ) start [2025-01-02 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160993', 'tblTempUsageDetail_20' ) end [2025-01-02 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:34:21] Production.INFO: ==16392== Releasing lock... [2025-01-02 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:34:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:35:05 [end_date_ymd] => 2025-01-02 21:35:05 [RateCDR] => 1 ) [2025-01-02 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:35:05' and `end` < '2025-01-02 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:35:17] Production.INFO: count ==955 [2025-01-02 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:35:05 - End Time 2025-01-02 21:35:05 [2025-01-02 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160998', 'tblTempUsageDetail_20' ) start [2025-01-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14160998', 'tblTempUsageDetail_20' ) end [2025-01-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160998', 'tblTempVendorCDR_20' ) start [2025-01-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14160998', 'tblTempVendorCDR_20' ) end [2025-01-02 21:35:18] Production.INFO: ProcessCDR(1,14160998,1,1,2) [2025-01-02 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14160998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14160998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14160998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14160998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160998', 'tblTempUsageDetail_20' ) start [2025-01-02 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14160998', 'tblTempUsageDetail_20' ) end [2025-01-02 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:35:21] Production.INFO: ==16461== Releasing lock... [2025-01-02 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:35:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:36:05 [end_date_ymd] => 2025-01-02 21:36:05 [RateCDR] => 1 ) [2025-01-02 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:36:05' and `end` < '2025-01-02 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:36:19] Production.INFO: count ==957 [2025-01-02 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:36:05 - End Time 2025-01-02 21:36:05 [2025-01-02 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161003', 'tblTempUsageDetail_20' ) start [2025-01-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161003', 'tblTempUsageDetail_20' ) end [2025-01-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161003', 'tblTempVendorCDR_20' ) start [2025-01-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161003', 'tblTempVendorCDR_20' ) end [2025-01-02 21:36:19] Production.INFO: ProcessCDR(1,14161003,1,1,2) [2025-01-02 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161003', 'tblTempUsageDetail_20' ) start [2025-01-02 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161003', 'tblTempUsageDetail_20' ) end [2025-01-02 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:36:24] Production.INFO: ==16532== Releasing lock... [2025-01-02 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:36:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:37:05 [end_date_ymd] => 2025-01-02 21:37:05 [RateCDR] => 1 ) [2025-01-02 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:37:05' and `end` < '2025-01-02 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:37:18] Production.INFO: count ==958 [2025-01-02 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:37:05 - End Time 2025-01-02 21:37:05 [2025-01-02 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161008', 'tblTempUsageDetail_20' ) start [2025-01-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161008', 'tblTempUsageDetail_20' ) end [2025-01-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161008', 'tblTempVendorCDR_20' ) start [2025-01-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161008', 'tblTempVendorCDR_20' ) end [2025-01-02 21:37:18] Production.INFO: ProcessCDR(1,14161008,1,1,2) [2025-01-02 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161008', 'tblTempUsageDetail_20' ) start [2025-01-02 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161008', 'tblTempUsageDetail_20' ) end [2025-01-02 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:37:21] Production.INFO: ==16607== Releasing lock... [2025-01-02 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:38:05 [end_date_ymd] => 2025-01-02 21:38:05 [RateCDR] => 1 ) [2025-01-02 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:38:05' and `end` < '2025-01-02 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-01-02 21:38:18] Production.INFO: count ==955 [2025-01-02 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:38:05 - End Time 2025-01-02 21:38:05 [2025-01-02 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161013', 'tblTempUsageDetail_20' ) start [2025-01-02 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161013', 'tblTempUsageDetail_20' ) end [2025-01-02 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161013', 'tblTempVendorCDR_20' ) start [2025-01-02 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161013', 'tblTempVendorCDR_20' ) end [2025-01-02 21:38:18] Production.INFO: ProcessCDR(1,14161013,1,1,2) [2025-01-02 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161013', 'tblTempUsageDetail_20' ) start [2025-01-02 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161013', 'tblTempUsageDetail_20' ) end [2025-01-02 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:38:21] Production.INFO: ==16681== Releasing lock... [2025-01-02 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:38:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:39:05 [end_date_ymd] => 2025-01-02 21:39:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:39:05' and `end` < '2025-01-02 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-01-02 21:39:18] Production.INFO: count ==955 [2025-01-02 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:39:05 - End Time 2025-01-02 21:39:05 [2025-01-02 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161018', 'tblTempUsageDetail_20' ) start [2025-01-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161018', 'tblTempUsageDetail_20' ) end [2025-01-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161018', 'tblTempVendorCDR_20' ) start [2025-01-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161018', 'tblTempVendorCDR_20' ) end [2025-01-02 21:39:18] Production.INFO: ProcessCDR(1,14161018,1,1,2) [2025-01-02 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161018', 'tblTempUsageDetail_20' ) start [2025-01-02 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161018', 'tblTempUsageDetail_20' ) end [2025-01-02 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:39:21] Production.INFO: ==16759== Releasing lock... [2025-01-02 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:39:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:40:05 [end_date_ymd] => 2025-01-02 21:40:05 [RateCDR] => 1 ) [2025-01-02 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:40:05' and `end` < '2025-01-02 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:40:18] Production.INFO: count ==953 [2025-01-02 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:40:05 - End Time 2025-01-02 21:40:05 [2025-01-02 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161023', 'tblTempUsageDetail_20' ) start [2025-01-02 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161023', 'tblTempUsageDetail_20' ) end [2025-01-02 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161023', 'tblTempVendorCDR_20' ) start [2025-01-02 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161023', 'tblTempVendorCDR_20' ) end [2025-01-02 21:40:18] Production.INFO: ProcessCDR(1,14161023,1,1,2) [2025-01-02 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161023', 'tblTempUsageDetail_20' ) start [2025-01-02 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161023', 'tblTempUsageDetail_20' ) end [2025-01-02 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:40:21] Production.INFO: ==16831== Releasing lock... [2025-01-02 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:40:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-02 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:41:04 [end_date_ymd] => 2025-01-02 21:41:04 [RateCDR] => 1 ) [2025-01-02 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:41:04' and `end` < '2025-01-02 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:41:18] Production.INFO: count ==908 [2025-01-02 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:41:04 - End Time 2025-01-02 21:41:04 [2025-01-02 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161029', 'tblTempUsageDetail_20' ) start [2025-01-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161029', 'tblTempUsageDetail_20' ) end [2025-01-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161029', 'tblTempVendorCDR_20' ) start [2025-01-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161029', 'tblTempVendorCDR_20' ) end [2025-01-02 21:41:18] Production.INFO: ProcessCDR(1,14161029,1,1,2) [2025-01-02 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161029', 'tblTempUsageDetail_20' ) start [2025-01-02 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161029', 'tblTempUsageDetail_20' ) end [2025-01-02 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:41:21] Production.INFO: ==16902== Releasing lock... [2025-01-02 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:41:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:42:05 [end_date_ymd] => 2025-01-02 21:42:05 [RateCDR] => 1 ) [2025-01-02 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:42:05' and `end` < '2025-01-02 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:42:18] Production.INFO: count ==906 [2025-01-02 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:42:05 - End Time 2025-01-02 21:42:05 [2025-01-02 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161034', 'tblTempUsageDetail_20' ) start [2025-01-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161034', 'tblTempUsageDetail_20' ) end [2025-01-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161034', 'tblTempVendorCDR_20' ) start [2025-01-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161034', 'tblTempVendorCDR_20' ) end [2025-01-02 21:42:18] Production.INFO: ProcessCDR(1,14161034,1,1,2) [2025-01-02 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161034', 'tblTempUsageDetail_20' ) start [2025-01-02 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161034', 'tblTempUsageDetail_20' ) end [2025-01-02 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:42:21] Production.INFO: ==16971== Releasing lock... [2025-01-02 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:42:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:43:05 [end_date_ymd] => 2025-01-02 21:43:05 [RateCDR] => 1 ) [2025-01-02 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:43:05' and `end` < '2025-01-02 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:43:19] Production.INFO: count ==904 [2025-01-02 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:43:05 - End Time 2025-01-02 21:43:05 [2025-01-02 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161039', 'tblTempUsageDetail_20' ) start [2025-01-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161039', 'tblTempUsageDetail_20' ) end [2025-01-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161039', 'tblTempVendorCDR_20' ) start [2025-01-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161039', 'tblTempVendorCDR_20' ) end [2025-01-02 21:43:19] Production.INFO: ProcessCDR(1,14161039,1,1,2) [2025-01-02 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161039', 'tblTempUsageDetail_20' ) start [2025-01-02 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161039', 'tblTempUsageDetail_20' ) end [2025-01-02 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:43:23] Production.INFO: ==17043== Releasing lock... [2025-01-02 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:43:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:44:05 [end_date_ymd] => 2025-01-02 21:44:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:44:05' and `end` < '2025-01-02 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-01-02 21:44:18] Production.INFO: count ==894 [2025-01-02 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:44:05 - End Time 2025-01-02 21:44:05 [2025-01-02 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161044', 'tblTempUsageDetail_20' ) start [2025-01-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161044', 'tblTempUsageDetail_20' ) end [2025-01-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161044', 'tblTempVendorCDR_20' ) start [2025-01-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161044', 'tblTempVendorCDR_20' ) end [2025-01-02 21:44:18] Production.INFO: ProcessCDR(1,14161044,1,1,2) [2025-01-02 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161044', 'tblTempUsageDetail_20' ) start [2025-01-02 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161044', 'tblTempUsageDetail_20' ) end [2025-01-02 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:44:21] Production.INFO: ==17116== Releasing lock... [2025-01-02 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:45:05 [end_date_ymd] => 2025-01-02 21:45:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:45:05' and `end` < '2025-01-02 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-01-02 21:45:18] Production.INFO: count ==896 [2025-01-02 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:45:05 - End Time 2025-01-02 21:45:05 [2025-01-02 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161049', 'tblTempUsageDetail_20' ) start [2025-01-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161049', 'tblTempUsageDetail_20' ) end [2025-01-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161049', 'tblTempVendorCDR_20' ) start [2025-01-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161049', 'tblTempVendorCDR_20' ) end [2025-01-02 21:45:18] Production.INFO: ProcessCDR(1,14161049,1,1,2) [2025-01-02 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161049', 'tblTempUsageDetail_20' ) start [2025-01-02 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161049', 'tblTempUsageDetail_20' ) end [2025-01-02 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:45:22] Production.INFO: ==17188== Releasing lock... [2025-01-02 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:45:22] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:46:05 [end_date_ymd] => 2025-01-02 21:46:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:46:05' and `end` < '2025-01-02 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-01-02 21:46:18] Production.INFO: count ==896 [2025-01-02 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:46:05 - End Time 2025-01-02 21:46:05 [2025-01-02 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161054', 'tblTempUsageDetail_20' ) start [2025-01-02 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161054', 'tblTempUsageDetail_20' ) end [2025-01-02 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161054', 'tblTempVendorCDR_20' ) start [2025-01-02 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161054', 'tblTempVendorCDR_20' ) end [2025-01-02 21:46:18] Production.INFO: ProcessCDR(1,14161054,1,1,2) [2025-01-02 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161054', 'tblTempUsageDetail_20' ) start [2025-01-02 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161054', 'tblTempUsageDetail_20' ) end [2025-01-02 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:46:23] Production.INFO: ==17265== Releasing lock... [2025-01-02 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:46:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:47:05 [end_date_ymd] => 2025-01-02 21:47:05 [RateCDR] => 1 ) [2025-01-02 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:47:05' and `end` < '2025-01-02 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:47:18] Production.INFO: count ==897 [2025-01-02 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:47:05 - End Time 2025-01-02 21:47:05 [2025-01-02 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161059', 'tblTempUsageDetail_20' ) start [2025-01-02 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161059', 'tblTempUsageDetail_20' ) end [2025-01-02 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161059', 'tblTempVendorCDR_20' ) start [2025-01-02 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161059', 'tblTempVendorCDR_20' ) end [2025-01-02 21:47:18] Production.INFO: ProcessCDR(1,14161059,1,1,2) [2025-01-02 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161059', 'tblTempUsageDetail_20' ) start [2025-01-02 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161059', 'tblTempUsageDetail_20' ) end [2025-01-02 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:47:23] Production.INFO: ==17338== Releasing lock... [2025-01-02 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:47:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:48:05 [end_date_ymd] => 2025-01-02 21:48:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:48:05' and `end` < '2025-01-02 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-01-02 21:48:18] Production.INFO: count ==895 [2025-01-02 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:48:05 - End Time 2025-01-02 21:48:05 [2025-01-02 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161064', 'tblTempUsageDetail_20' ) start [2025-01-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161064', 'tblTempUsageDetail_20' ) end [2025-01-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161064', 'tblTempVendorCDR_20' ) start [2025-01-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161064', 'tblTempVendorCDR_20' ) end [2025-01-02 21:48:18] Production.INFO: ProcessCDR(1,14161064,1,1,2) [2025-01-02 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161064', 'tblTempUsageDetail_20' ) start [2025-01-02 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161064', 'tblTempUsageDetail_20' ) end [2025-01-02 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:48:21] Production.INFO: ==17409== Releasing lock... [2025-01-02 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:48:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:49:06 [end_date_ymd] => 2025-01-02 21:49:06 [RateCDR] => 1 ) [2025-01-02 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:49:06' and `end` < '2025-01-02 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:49:19] Production.INFO: count ==895 [2025-01-02 21:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:49:06 - End Time 2025-01-02 21:49:06 [2025-01-02 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161069', 'tblTempUsageDetail_20' ) start [2025-01-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161069', 'tblTempUsageDetail_20' ) end [2025-01-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161069', 'tblTempVendorCDR_20' ) start [2025-01-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161069', 'tblTempVendorCDR_20' ) end [2025-01-02 21:49:19] Production.INFO: ProcessCDR(1,14161069,1,1,2) [2025-01-02 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161069', 'tblTempUsageDetail_20' ) start [2025-01-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161069', 'tblTempUsageDetail_20' ) end [2025-01-02 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:49:22] Production.INFO: ==17480== Releasing lock... [2025-01-02 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:49:22] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:50:05 [end_date_ymd] => 2025-01-02 21:50:05 [RateCDR] => 1 ) [2025-01-02 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:50:05' and `end` < '2025-01-02 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:50:18] Production.INFO: count ==896 [2025-01-02 21:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:50:05 - End Time 2025-01-02 21:50:05 [2025-01-02 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161075', 'tblTempUsageDetail_20' ) start [2025-01-02 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161075', 'tblTempUsageDetail_20' ) end [2025-01-02 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161075', 'tblTempVendorCDR_20' ) start [2025-01-02 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161075', 'tblTempVendorCDR_20' ) end [2025-01-02 21:50:18] Production.INFO: ProcessCDR(1,14161075,1,1,2) [2025-01-02 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161075', 'tblTempUsageDetail_20' ) start [2025-01-02 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161075', 'tblTempUsageDetail_20' ) end [2025-01-02 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:50:21] Production.INFO: ==17591== Releasing lock... [2025-01-02 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:50:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:51:06 [end_date_ymd] => 2025-01-02 21:51:06 [RateCDR] => 1 ) [2025-01-02 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:51:06' and `end` < '2025-01-02 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:51:19] Production.INFO: count ==895 [2025-01-02 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-02 18:51:06 - End Time 2025-01-02 21:51:06 [2025-01-02 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161080', 'tblTempUsageDetail_20' ) start [2025-01-02 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161080', 'tblTempUsageDetail_20' ) end [2025-01-02 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161080', 'tblTempVendorCDR_20' ) start [2025-01-02 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161080', 'tblTempVendorCDR_20' ) end [2025-01-02 21:51:19] Production.INFO: ProcessCDR(1,14161080,1,1,2) [2025-01-02 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161080', 'tblTempUsageDetail_20' ) start [2025-01-02 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161080', 'tblTempUsageDetail_20' ) end [2025-01-02 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:51:23] Production.INFO: ==17668== Releasing lock... [2025-01-02 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:51:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:52:05 [end_date_ymd] => 2025-01-02 21:52:05 [RateCDR] => 1 ) [2025-01-02 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:52:05' and `end` < '2025-01-02 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:52:18] Production.INFO: count ==900 [2025-01-02 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:52:05 - End Time 2025-01-02 21:52:05 [2025-01-02 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161085', 'tblTempUsageDetail_20' ) start [2025-01-02 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161085', 'tblTempUsageDetail_20' ) end [2025-01-02 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161085', 'tblTempVendorCDR_20' ) start [2025-01-02 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161085', 'tblTempVendorCDR_20' ) end [2025-01-02 21:52:18] Production.INFO: ProcessCDR(1,14161085,1,1,2) [2025-01-02 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161085', 'tblTempUsageDetail_20' ) start [2025-01-02 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161085', 'tblTempUsageDetail_20' ) end [2025-01-02 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:52:22] Production.INFO: ==17738== Releasing lock... [2025-01-02 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:52:22] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:53:05 [end_date_ymd] => 2025-01-02 21:53:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 18:53:05' and `end` < '2025-01-02 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-01-02 21:53:18] Production.INFO: count ==900 [2025-01-02 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:53:05 - End Time 2025-01-02 21:53:05 [2025-01-02 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161090', 'tblTempUsageDetail_20' ) start [2025-01-02 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161090', 'tblTempUsageDetail_20' ) end [2025-01-02 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161090', 'tblTempVendorCDR_20' ) start [2025-01-02 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161090', 'tblTempVendorCDR_20' ) end [2025-01-02 21:53:18] Production.INFO: ProcessCDR(1,14161090,1,1,2) [2025-01-02 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161090', 'tblTempUsageDetail_20' ) start [2025-01-02 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161090', 'tblTempUsageDetail_20' ) end [2025-01-02 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:53:21] Production.INFO: ==17809== Releasing lock... [2025-01-02 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:53:21] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:54:04 [end_date_ymd] => 2025-01-02 21:54:04 [RateCDR] => 1 ) [2025-01-02 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:54:04' and `end` < '2025-01-02 21:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:54:17] Production.INFO: count ==899 [2025-01-02 21:54:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:54:04 - End Time 2025-01-02 21:54:04 [2025-01-02 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161095', 'tblTempUsageDetail_20' ) start [2025-01-02 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161095', 'tblTempUsageDetail_20' ) end [2025-01-02 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161095', 'tblTempVendorCDR_20' ) start [2025-01-02 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161095', 'tblTempVendorCDR_20' ) end [2025-01-02 21:54:17] Production.INFO: ProcessCDR(1,14161095,1,1,2) [2025-01-02 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161095', 'tblTempUsageDetail_20' ) start [2025-01-02 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161095', 'tblTempUsageDetail_20' ) end [2025-01-02 21:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:54:20] Production.INFO: ==17881== Releasing lock... [2025-01-02 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:54:20] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:55:06 [end_date_ymd] => 2025-01-02 21:55:06 [RateCDR] => 1 ) [2025-01-02 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:55:06' and `end` < '2025-01-02 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-01-02 21:55:18] Production.INFO: count ==896 [2025-01-02 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:55:06 - End Time 2025-01-02 21:55:06 [2025-01-02 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161100', 'tblTempUsageDetail_20' ) start [2025-01-02 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161100', 'tblTempUsageDetail_20' ) end [2025-01-02 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161100', 'tblTempVendorCDR_20' ) start [2025-01-02 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161100', 'tblTempVendorCDR_20' ) end [2025-01-02 21:55:18] Production.INFO: ProcessCDR(1,14161100,1,1,2) [2025-01-02 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161100', 'tblTempUsageDetail_20' ) start [2025-01-02 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161100', 'tblTempUsageDetail_20' ) end [2025-01-02 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:55:23] Production.INFO: ==17955== Releasing lock... [2025-01-02 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:55:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:56:04 [end_date_ymd] => 2025-01-02 21:56:04 [RateCDR] => 1 ) [2025-01-02 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:56:04' and `end` < '2025-01-02 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:56:18] Production.INFO: count ==896 [2025-01-02 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 18:56:04 - End Time 2025-01-02 21:56:04 [2025-01-02 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161105', 'tblTempUsageDetail_20' ) start [2025-01-02 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161105', 'tblTempUsageDetail_20' ) end [2025-01-02 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161105', 'tblTempVendorCDR_20' ) start [2025-01-02 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161105', 'tblTempVendorCDR_20' ) end [2025-01-02 21:56:18] Production.INFO: ProcessCDR(1,14161105,1,1,2) [2025-01-02 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161105', 'tblTempUsageDetail_20' ) start [2025-01-02 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161105', 'tblTempUsageDetail_20' ) end [2025-01-02 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:56:22] Production.INFO: ==18026== Releasing lock... [2025-01-02 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:56:22] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:57:05 [end_date_ymd] => 2025-01-02 21:57:05 [RateCDR] => 1 ) [2025-01-02 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:57:05' and `end` < '2025-01-02 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:57:20] Production.INFO: count ==896 [2025-01-02 21:57:20] Production.ERROR: pbx CDR StartTime 2025-01-02 18:57:05 - End Time 2025-01-02 21:57:05 [2025-01-02 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161110', 'tblTempUsageDetail_20' ) start [2025-01-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161110', 'tblTempUsageDetail_20' ) end [2025-01-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161110', 'tblTempVendorCDR_20' ) start [2025-01-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161110', 'tblTempVendorCDR_20' ) end [2025-01-02 21:57:20] Production.INFO: ProcessCDR(1,14161110,1,1,2) [2025-01-02 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161110', 'tblTempUsageDetail_20' ) start [2025-01-02 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161110', 'tblTempUsageDetail_20' ) end [2025-01-02 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:57:23] Production.INFO: ==18097== Releasing lock... [2025-01-02 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:57:23] Production.INFO: 34 MB #Memory Used# [2025-01-02 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:58:04 [end_date_ymd] => 2025-01-02 21:58:04 [RateCDR] => 1 ) [2025-01-02 21:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:58:04' and `end` < '2025-01-02 21:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:58:17] Production.INFO: count ==888 [2025-01-02 21:58:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:58:04 - End Time 2025-01-02 21:58:04 [2025-01-02 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161115', 'tblTempUsageDetail_20' ) start [2025-01-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161115', 'tblTempUsageDetail_20' ) end [2025-01-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161115', 'tblTempVendorCDR_20' ) start [2025-01-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161115', 'tblTempVendorCDR_20' ) end [2025-01-02 21:58:17] Production.INFO: ProcessCDR(1,14161115,1,1,2) [2025-01-02 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161115', 'tblTempUsageDetail_20' ) start [2025-01-02 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161115', 'tblTempUsageDetail_20' ) end [2025-01-02 21:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:58:20] Production.INFO: ==18170== Releasing lock... [2025-01-02 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:58:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-02 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 18:59:05 [end_date_ymd] => 2025-01-02 21:59:05 [RateCDR] => 1 ) [2025-01-02 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 18:59:05' and `end` < '2025-01-02 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 21:59:17] Production.INFO: count ==888 [2025-01-02 21:59:17] Production.ERROR: pbx CDR StartTime 2025-01-02 18:59:05 - End Time 2025-01-02 21:59:05 [2025-01-02 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161120', 'tblTempUsageDetail_20' ) start [2025-01-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161120', 'tblTempUsageDetail_20' ) end [2025-01-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161120', 'tblTempVendorCDR_20' ) start [2025-01-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161120', 'tblTempVendorCDR_20' ) end [2025-01-02 21:59:18] Production.INFO: ProcessCDR(1,14161120,1,1,2) [2025-01-02 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161120', 'tblTempUsageDetail_20' ) start [2025-01-02 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161120', 'tblTempUsageDetail_20' ) end [2025-01-02 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 21:59:21] Production.INFO: ==18245== Releasing lock... [2025-01-02 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 21:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-02 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:00:06 [end_date_ymd] => 2025-01-02 22:00:06 [RateCDR] => 1 ) [2025-01-02 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:00:06' and `end` < '2025-01-02 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:00:18] Production.INFO: count ==880 [2025-01-02 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:00:06 - End Time 2025-01-02 22:00:06 [2025-01-02 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161126', 'tblTempUsageDetail_20' ) start [2025-01-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161126', 'tblTempUsageDetail_20' ) end [2025-01-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161126', 'tblTempVendorCDR_20' ) start [2025-01-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161126', 'tblTempVendorCDR_20' ) end [2025-01-02 22:00:19] Production.INFO: ProcessCDR(1,14161126,1,1,2) [2025-01-02 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161126', 'tblTempUsageDetail_20' ) start [2025-01-02 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161126', 'tblTempUsageDetail_20' ) end [2025-01-02 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:00:22] Production.INFO: ==18325== Releasing lock... [2025-01-02 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-02 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:01:04 [end_date_ymd] => 2025-01-02 22:01:04 [RateCDR] => 1 ) [2025-01-02 22:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:01:04' and `end` < '2025-01-02 22:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:01:18] Production.INFO: count ==844 [2025-01-02 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:01:04 - End Time 2025-01-02 22:01:04 [2025-01-02 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161131', 'tblTempUsageDetail_20' ) start [2025-01-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161131', 'tblTempUsageDetail_20' ) end [2025-01-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161131', 'tblTempVendorCDR_20' ) start [2025-01-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161131', 'tblTempVendorCDR_20' ) end [2025-01-02 22:01:18] Production.INFO: ProcessCDR(1,14161131,1,1,2) [2025-01-02 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161131', 'tblTempUsageDetail_20' ) start [2025-01-02 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161131', 'tblTempUsageDetail_20' ) end [2025-01-02 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:01:21] Production.INFO: ==18413== Releasing lock... [2025-01-02 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:02:05 [end_date_ymd] => 2025-01-02 22:02:05 [RateCDR] => 1 ) [2025-01-02 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:02:05' and `end` < '2025-01-02 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:02:18] Production.INFO: count ==843 [2025-01-02 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:02:05 - End Time 2025-01-02 22:02:05 [2025-01-02 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161136', 'tblTempUsageDetail_20' ) start [2025-01-02 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161136', 'tblTempUsageDetail_20' ) end [2025-01-02 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161136', 'tblTempVendorCDR_20' ) start [2025-01-02 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161136', 'tblTempVendorCDR_20' ) end [2025-01-02 22:02:18] Production.INFO: ProcessCDR(1,14161136,1,1,2) [2025-01-02 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161136', 'tblTempUsageDetail_20' ) start [2025-01-02 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161136', 'tblTempUsageDetail_20' ) end [2025-01-02 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:02:21] Production.INFO: ==18485== Releasing lock... [2025-01-02 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:02:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:03:04 [end_date_ymd] => 2025-01-02 22:03:04 [RateCDR] => 1 ) [2025-01-02 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:03:04' and `end` < '2025-01-02 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:03:17] Production.INFO: count ==843 [2025-01-02 22:03:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:03:04 - End Time 2025-01-02 22:03:04 [2025-01-02 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161141', 'tblTempUsageDetail_20' ) start [2025-01-02 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161141', 'tblTempUsageDetail_20' ) end [2025-01-02 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161141', 'tblTempVendorCDR_20' ) start [2025-01-02 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161141', 'tblTempVendorCDR_20' ) end [2025-01-02 22:03:17] Production.INFO: ProcessCDR(1,14161141,1,1,2) [2025-01-02 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161141', 'tblTempUsageDetail_20' ) start [2025-01-02 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161141', 'tblTempUsageDetail_20' ) end [2025-01-02 22:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:03:20] Production.INFO: ==18555== Releasing lock... [2025-01-02 22:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:03:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:04:05 [end_date_ymd] => 2025-01-02 22:04:05 [RateCDR] => 1 ) [2025-01-02 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:04:05' and `end` < '2025-01-02 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:04:18] Production.INFO: count ==842 [2025-01-02 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:04:05 - End Time 2025-01-02 22:04:05 [2025-01-02 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161146', 'tblTempUsageDetail_20' ) start [2025-01-02 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161146', 'tblTempUsageDetail_20' ) end [2025-01-02 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161146', 'tblTempVendorCDR_20' ) start [2025-01-02 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161146', 'tblTempVendorCDR_20' ) end [2025-01-02 22:04:18] Production.INFO: ProcessCDR(1,14161146,1,1,2) [2025-01-02 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161146', 'tblTempUsageDetail_20' ) start [2025-01-02 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161146', 'tblTempUsageDetail_20' ) end [2025-01-02 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:04:21] Production.INFO: ==18627== Releasing lock... [2025-01-02 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:05:05 [end_date_ymd] => 2025-01-02 22:05:05 [RateCDR] => 1 ) [2025-01-02 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:05:05' and `end` < '2025-01-02 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:05:17] Production.INFO: count ==843 [2025-01-02 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:05:05 - End Time 2025-01-02 22:05:05 [2025-01-02 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161151', 'tblTempUsageDetail_20' ) start [2025-01-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161151', 'tblTempUsageDetail_20' ) end [2025-01-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161151', 'tblTempVendorCDR_20' ) start [2025-01-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161151', 'tblTempVendorCDR_20' ) end [2025-01-02 22:05:18] Production.INFO: ProcessCDR(1,14161151,1,1,2) [2025-01-02 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161151', 'tblTempUsageDetail_20' ) start [2025-01-02 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161151', 'tblTempUsageDetail_20' ) end [2025-01-02 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:05:22] Production.INFO: ==18739== Releasing lock... [2025-01-02 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:06:05 [end_date_ymd] => 2025-01-02 22:06:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:06:05' and `end` < '2025-01-02 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-01-02 22:06:18] Production.INFO: count ==842 [2025-01-02 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:06:05 - End Time 2025-01-02 22:06:05 [2025-01-02 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161156', 'tblTempUsageDetail_20' ) start [2025-01-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161156', 'tblTempUsageDetail_20' ) end [2025-01-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161156', 'tblTempVendorCDR_20' ) start [2025-01-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161156', 'tblTempVendorCDR_20' ) end [2025-01-02 22:06:18] Production.INFO: ProcessCDR(1,14161156,1,1,2) [2025-01-02 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161156', 'tblTempUsageDetail_20' ) start [2025-01-02 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161156', 'tblTempUsageDetail_20' ) end [2025-01-02 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:06:21] Production.INFO: ==18810== Releasing lock... [2025-01-02 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:07:04 [end_date_ymd] => 2025-01-02 22:07:04 [RateCDR] => 1 ) [2025-01-02 22:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:07:04' and `end` < '2025-01-02 22:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:07:19] Production.INFO: count ==842 [2025-01-02 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:07:04 - End Time 2025-01-02 22:07:04 [2025-01-02 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161159', 'tblTempUsageDetail_20' ) start [2025-01-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161159', 'tblTempUsageDetail_20' ) end [2025-01-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161159', 'tblTempVendorCDR_20' ) start [2025-01-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161159', 'tblTempVendorCDR_20' ) end [2025-01-02 22:07:19] Production.INFO: ProcessCDR(1,14161159,1,1,2) [2025-01-02 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161159', 'tblTempUsageDetail_20' ) start [2025-01-02 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161159', 'tblTempUsageDetail_20' ) end [2025-01-02 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:07:23] Production.INFO: ==18879== Releasing lock... [2025-01-02 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:08:05 [end_date_ymd] => 2025-01-02 22:08:05 [RateCDR] => 1 ) [2025-01-02 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:08:05' and `end` < '2025-01-02 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:08:18] Production.INFO: count ==828 [2025-01-02 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:08:05 - End Time 2025-01-02 22:08:05 [2025-01-02 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161166', 'tblTempUsageDetail_20' ) start [2025-01-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161166', 'tblTempUsageDetail_20' ) end [2025-01-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161166', 'tblTempVendorCDR_20' ) start [2025-01-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161166', 'tblTempVendorCDR_20' ) end [2025-01-02 22:08:18] Production.INFO: ProcessCDR(1,14161166,1,1,2) [2025-01-02 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161166', 'tblTempUsageDetail_20' ) start [2025-01-02 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161166', 'tblTempUsageDetail_20' ) end [2025-01-02 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:08:21] Production.INFO: ==18951== Releasing lock... [2025-01-02 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-02 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:09:05 [end_date_ymd] => 2025-01-02 22:09:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:09:05' and `end` < '2025-01-02 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-01-02 22:09:17] Production.INFO: count ==815 [2025-01-02 22:09:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:09:05 - End Time 2025-01-02 22:09:05 [2025-01-02 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161171', 'tblTempUsageDetail_20' ) start [2025-01-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161171', 'tblTempUsageDetail_20' ) end [2025-01-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161171', 'tblTempVendorCDR_20' ) start [2025-01-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161171', 'tblTempVendorCDR_20' ) end [2025-01-02 22:09:17] Production.INFO: ProcessCDR(1,14161171,1,1,2) [2025-01-02 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161171', 'tblTempUsageDetail_20' ) start [2025-01-02 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161171', 'tblTempUsageDetail_20' ) end [2025-01-02 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:09:21] Production.INFO: ==19024== Releasing lock... [2025-01-02 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-02 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:10:05 [end_date_ymd] => 2025-01-02 22:10:05 [RateCDR] => 1 ) [2025-01-02 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:10:05' and `end` < '2025-01-02 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:10:17] Production.INFO: count ==812 [2025-01-02 22:10:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:10:05 - End Time 2025-01-02 22:10:05 [2025-01-02 22:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161177', 'tblTempUsageDetail_20' ) start [2025-01-02 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161177', 'tblTempUsageDetail_20' ) end [2025-01-02 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161177', 'tblTempVendorCDR_20' ) start [2025-01-02 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161177', 'tblTempVendorCDR_20' ) end [2025-01-02 22:10:18] Production.INFO: ProcessCDR(1,14161177,1,1,2) [2025-01-02 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161177', 'tblTempUsageDetail_20' ) start [2025-01-02 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161177', 'tblTempUsageDetail_20' ) end [2025-01-02 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:10:21] Production.INFO: ==19097== Releasing lock... [2025-01-02 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:10:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-02 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:11:05 [end_date_ymd] => 2025-01-02 22:11:05 [RateCDR] => 1 ) [2025-01-02 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:11:05' and `end` < '2025-01-02 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:11:18] Production.INFO: count ==785 [2025-01-02 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:11:05 - End Time 2025-01-02 22:11:05 [2025-01-02 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161182', 'tblTempUsageDetail_20' ) start [2025-01-02 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161182', 'tblTempUsageDetail_20' ) end [2025-01-02 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161182', 'tblTempVendorCDR_20' ) start [2025-01-02 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161182', 'tblTempVendorCDR_20' ) end [2025-01-02 22:11:18] Production.INFO: ProcessCDR(1,14161182,1,1,2) [2025-01-02 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161182', 'tblTempUsageDetail_20' ) start [2025-01-02 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161182', 'tblTempUsageDetail_20' ) end [2025-01-02 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:11:22] Production.INFO: ==19173== Releasing lock... [2025-01-02 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:11:22] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:12:05 [end_date_ymd] => 2025-01-02 22:12:05 [RateCDR] => 1 ) [2025-01-02 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:12:05' and `end` < '2025-01-02 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:12:18] Production.INFO: count ==782 [2025-01-02 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:12:05 - End Time 2025-01-02 22:12:05 [2025-01-02 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161187', 'tblTempUsageDetail_20' ) start [2025-01-02 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161187', 'tblTempUsageDetail_20' ) end [2025-01-02 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161187', 'tblTempVendorCDR_20' ) start [2025-01-02 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161187', 'tblTempVendorCDR_20' ) end [2025-01-02 22:12:18] Production.INFO: ProcessCDR(1,14161187,1,1,2) [2025-01-02 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161187', 'tblTempUsageDetail_20' ) start [2025-01-02 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161187', 'tblTempUsageDetail_20' ) end [2025-01-02 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:12:21] Production.INFO: ==19245== Releasing lock... [2025-01-02 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:12:21] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:13:05 [end_date_ymd] => 2025-01-02 22:13:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:13:05' and `end` < '2025-01-02 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-01-02 22:13:18] Production.INFO: count ==782 [2025-01-02 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:13:05 - End Time 2025-01-02 22:13:05 [2025-01-02 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161192', 'tblTempUsageDetail_20' ) start [2025-01-02 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161192', 'tblTempUsageDetail_20' ) end [2025-01-02 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161192', 'tblTempVendorCDR_20' ) start [2025-01-02 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161192', 'tblTempVendorCDR_20' ) end [2025-01-02 22:13:18] Production.INFO: ProcessCDR(1,14161192,1,1,2) [2025-01-02 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161192', 'tblTempUsageDetail_20' ) start [2025-01-02 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161192', 'tblTempUsageDetail_20' ) end [2025-01-02 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:13:21] Production.INFO: ==19321== Releasing lock... [2025-01-02 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:13:21] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:14:04 [end_date_ymd] => 2025-01-02 22:14:04 [RateCDR] => 1 ) [2025-01-02 22:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:14:04' and `end` < '2025-01-02 22:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:14:18] Production.INFO: count ==781 [2025-01-02 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:14:04 - End Time 2025-01-02 22:14:04 [2025-01-02 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161197', 'tblTempUsageDetail_20' ) start [2025-01-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161197', 'tblTempUsageDetail_20' ) end [2025-01-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161197', 'tblTempVendorCDR_20' ) start [2025-01-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161197', 'tblTempVendorCDR_20' ) end [2025-01-02 22:14:18] Production.INFO: ProcessCDR(1,14161197,1,1,2) [2025-01-02 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161197', 'tblTempUsageDetail_20' ) start [2025-01-02 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161197', 'tblTempUsageDetail_20' ) end [2025-01-02 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:14:21] Production.INFO: ==19393== Releasing lock... [2025-01-02 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:14:21] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:15:05 [end_date_ymd] => 2025-01-02 22:15:05 [RateCDR] => 1 ) [2025-01-02 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:15:05' and `end` < '2025-01-02 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:15:17] Production.INFO: count ==780 [2025-01-02 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:15:05 - End Time 2025-01-02 22:15:05 [2025-01-02 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161202', 'tblTempUsageDetail_20' ) start [2025-01-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161202', 'tblTempUsageDetail_20' ) end [2025-01-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161202', 'tblTempVendorCDR_20' ) start [2025-01-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161202', 'tblTempVendorCDR_20' ) end [2025-01-02 22:15:18] Production.INFO: ProcessCDR(1,14161202,1,1,2) [2025-01-02 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161202', 'tblTempUsageDetail_20' ) start [2025-01-02 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161202', 'tblTempUsageDetail_20' ) end [2025-01-02 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:15:21] Production.INFO: ==19470== Releasing lock... [2025-01-02 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:15:21] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:16:05 [end_date_ymd] => 2025-01-02 22:16:05 [RateCDR] => 1 ) [2025-01-02 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:16:05' and `end` < '2025-01-02 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:16:18] Production.INFO: count ==777 [2025-01-02 22:16:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:16:05 - End Time 2025-01-02 22:16:05 [2025-01-02 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161207', 'tblTempUsageDetail_20' ) start [2025-01-02 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161207', 'tblTempUsageDetail_20' ) end [2025-01-02 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161207', 'tblTempVendorCDR_20' ) start [2025-01-02 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161207', 'tblTempVendorCDR_20' ) end [2025-01-02 22:16:19] Production.INFO: ProcessCDR(1,14161207,1,1,2) [2025-01-02 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161207', 'tblTempUsageDetail_20' ) start [2025-01-02 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161207', 'tblTempUsageDetail_20' ) end [2025-01-02 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:16:22] Production.INFO: ==19544== Releasing lock... [2025-01-02 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:16:22] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:17:05 [end_date_ymd] => 2025-01-02 22:17:05 [RateCDR] => 1 ) [2025-01-02 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:17:05' and `end` < '2025-01-02 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:17:18] Production.INFO: count ==777 [2025-01-02 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:17:05 - End Time 2025-01-02 22:17:05 [2025-01-02 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161212', 'tblTempUsageDetail_20' ) start [2025-01-02 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161212', 'tblTempUsageDetail_20' ) end [2025-01-02 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161212', 'tblTempVendorCDR_20' ) start [2025-01-02 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161212', 'tblTempVendorCDR_20' ) end [2025-01-02 22:17:18] Production.INFO: ProcessCDR(1,14161212,1,1,2) [2025-01-02 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161212', 'tblTempUsageDetail_20' ) start [2025-01-02 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161212', 'tblTempUsageDetail_20' ) end [2025-01-02 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:17:21] Production.INFO: ==19623== Releasing lock... [2025-01-02 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:17:21] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:18:05 [end_date_ymd] => 2025-01-02 22:18:05 [RateCDR] => 1 ) [2025-01-02 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:18:05' and `end` < '2025-01-02 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:18:18] Production.INFO: count ==778 [2025-01-02 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:18:05 - End Time 2025-01-02 22:18:05 [2025-01-02 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161217', 'tblTempUsageDetail_20' ) start [2025-01-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161217', 'tblTempUsageDetail_20' ) end [2025-01-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161217', 'tblTempVendorCDR_20' ) start [2025-01-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161217', 'tblTempVendorCDR_20' ) end [2025-01-02 22:18:18] Production.INFO: ProcessCDR(1,14161217,1,1,2) [2025-01-02 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161217', 'tblTempUsageDetail_20' ) start [2025-01-02 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161217', 'tblTempUsageDetail_20' ) end [2025-01-02 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:18:23] Production.INFO: ==19702== Releasing lock... [2025-01-02 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:18:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-02 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:19:05 [end_date_ymd] => 2025-01-02 22:19:05 [RateCDR] => 1 ) [2025-01-02 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:19:05' and `end` < '2025-01-02 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:19:17] Production.INFO: count ==777 [2025-01-02 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:19:05 - End Time 2025-01-02 22:19:05 [2025-01-02 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161222', 'tblTempUsageDetail_20' ) start [2025-01-02 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161222', 'tblTempUsageDetail_20' ) end [2025-01-02 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161222', 'tblTempVendorCDR_20' ) start [2025-01-02 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161222', 'tblTempVendorCDR_20' ) end [2025-01-02 22:19:18] Production.INFO: ProcessCDR(1,14161222,1,1,2) [2025-01-02 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161222', 'tblTempUsageDetail_20' ) start [2025-01-02 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161222', 'tblTempUsageDetail_20' ) end [2025-01-02 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:19:22] Production.INFO: ==19777== Releasing lock... [2025-01-02 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:19:22] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:20:06 [end_date_ymd] => 2025-01-02 22:20:06 [RateCDR] => 1 ) [2025-01-02 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:20:06' and `end` < '2025-01-02 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:20:19] Production.INFO: count ==775 [2025-01-02 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:20:06 - End Time 2025-01-02 22:20:06 [2025-01-02 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161228', 'tblTempUsageDetail_20' ) start [2025-01-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161228', 'tblTempUsageDetail_20' ) end [2025-01-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161228', 'tblTempVendorCDR_20' ) start [2025-01-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161228', 'tblTempVendorCDR_20' ) end [2025-01-02 22:20:19] Production.INFO: ProcessCDR(1,14161228,1,1,2) [2025-01-02 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161228', 'tblTempUsageDetail_20' ) start [2025-01-02 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161228', 'tblTempUsageDetail_20' ) end [2025-01-02 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:20:22] Production.INFO: ==19857== Releasing lock... [2025-01-02 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:20:22] Production.INFO: 33 MB #Memory Used# [2025-01-02 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:21:05 [end_date_ymd] => 2025-01-02 22:21:05 [RateCDR] => 1 ) [2025-01-02 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:21:05' and `end` < '2025-01-02 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:21:18] Production.INFO: count ==717 [2025-01-02 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:21:05 - End Time 2025-01-02 22:21:05 [2025-01-02 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161232', 'tblTempUsageDetail_20' ) start [2025-01-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161232', 'tblTempUsageDetail_20' ) end [2025-01-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161232', 'tblTempVendorCDR_20' ) start [2025-01-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161232', 'tblTempVendorCDR_20' ) end [2025-01-02 22:21:18] Production.INFO: ProcessCDR(1,14161232,1,1,2) [2025-01-02 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161232', 'tblTempUsageDetail_20' ) start [2025-01-02 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161232', 'tblTempUsageDetail_20' ) end [2025-01-02 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:21:22] Production.INFO: ==19975== Releasing lock... [2025-01-02 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:22:04 [end_date_ymd] => 2025-01-02 22:22:04 [RateCDR] => 1 ) [2025-01-02 22:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:22:04' and `end` < '2025-01-02 22:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:22:18] Production.INFO: count ==716 [2025-01-02 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:22:04 - End Time 2025-01-02 22:22:04 [2025-01-02 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161238', 'tblTempUsageDetail_20' ) start [2025-01-02 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161238', 'tblTempUsageDetail_20' ) end [2025-01-02 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161238', 'tblTempVendorCDR_20' ) start [2025-01-02 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161238', 'tblTempVendorCDR_20' ) end [2025-01-02 22:22:18] Production.INFO: ProcessCDR(1,14161238,1,1,2) [2025-01-02 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161238', 'tblTempUsageDetail_20' ) start [2025-01-02 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161238', 'tblTempUsageDetail_20' ) end [2025-01-02 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:22:21] Production.INFO: ==20049== Releasing lock... [2025-01-02 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:23:05 [end_date_ymd] => 2025-01-02 22:23:05 [RateCDR] => 1 ) [2025-01-02 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:23:05' and `end` < '2025-01-02 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:23:18] Production.INFO: count ==716 [2025-01-02 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:23:05 - End Time 2025-01-02 22:23:05 [2025-01-02 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161243', 'tblTempUsageDetail_20' ) start [2025-01-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161243', 'tblTempUsageDetail_20' ) end [2025-01-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161243', 'tblTempVendorCDR_20' ) start [2025-01-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161243', 'tblTempVendorCDR_20' ) end [2025-01-02 22:23:18] Production.INFO: ProcessCDR(1,14161243,1,1,2) [2025-01-02 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161243', 'tblTempUsageDetail_20' ) start [2025-01-02 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161243', 'tblTempUsageDetail_20' ) end [2025-01-02 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:23:21] Production.INFO: ==20128== Releasing lock... [2025-01-02 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:24:05 [end_date_ymd] => 2025-01-02 22:24:05 [RateCDR] => 1 ) [2025-01-02 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:24:05' and `end` < '2025-01-02 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:24:18] Production.INFO: count ==715 [2025-01-02 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:24:05 - End Time 2025-01-02 22:24:05 [2025-01-02 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161248', 'tblTempUsageDetail_20' ) start [2025-01-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161248', 'tblTempUsageDetail_20' ) end [2025-01-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161248', 'tblTempVendorCDR_20' ) start [2025-01-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161248', 'tblTempVendorCDR_20' ) end [2025-01-02 22:24:18] Production.INFO: ProcessCDR(1,14161248,1,1,2) [2025-01-02 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161248', 'tblTempUsageDetail_20' ) start [2025-01-02 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161248', 'tblTempUsageDetail_20' ) end [2025-01-02 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:24:21] Production.INFO: ==20204== Releasing lock... [2025-01-02 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:25:05 [end_date_ymd] => 2025-01-02 22:25:05 [RateCDR] => 1 ) [2025-01-02 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:25:05' and `end` < '2025-01-02 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:25:18] Production.INFO: count ==715 [2025-01-02 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:25:05 - End Time 2025-01-02 22:25:05 [2025-01-02 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161253', 'tblTempUsageDetail_20' ) start [2025-01-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161253', 'tblTempUsageDetail_20' ) end [2025-01-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161253', 'tblTempVendorCDR_20' ) start [2025-01-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161253', 'tblTempVendorCDR_20' ) end [2025-01-02 22:25:18] Production.INFO: ProcessCDR(1,14161253,1,1,2) [2025-01-02 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161253', 'tblTempUsageDetail_20' ) start [2025-01-02 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161253', 'tblTempUsageDetail_20' ) end [2025-01-02 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:25:21] Production.INFO: ==20281== Releasing lock... [2025-01-02 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:26:05 [end_date_ymd] => 2025-01-02 22:26:05 [RateCDR] => 1 ) [2025-01-02 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:26:05' and `end` < '2025-01-02 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:26:20] Production.INFO: count ==715 [2025-01-02 22:26:20] Production.ERROR: pbx CDR StartTime 2025-01-02 19:26:05 - End Time 2025-01-02 22:26:05 [2025-01-02 22:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161258', 'tblTempUsageDetail_20' ) start [2025-01-02 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161258', 'tblTempUsageDetail_20' ) end [2025-01-02 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161258', 'tblTempVendorCDR_20' ) start [2025-01-02 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161258', 'tblTempVendorCDR_20' ) end [2025-01-02 22:26:20] Production.INFO: ProcessCDR(1,14161258,1,1,2) [2025-01-02 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161258', 'tblTempUsageDetail_20' ) start [2025-01-02 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161258', 'tblTempUsageDetail_20' ) end [2025-01-02 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:26:23] Production.INFO: ==20359== Releasing lock... [2025-01-02 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:26:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:27:05 [end_date_ymd] => 2025-01-02 22:27:05 [RateCDR] => 1 ) [2025-01-02 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:27:05' and `end` < '2025-01-02 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:27:18] Production.INFO: count ==715 [2025-01-02 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:27:05 - End Time 2025-01-02 22:27:05 [2025-01-02 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161263', 'tblTempUsageDetail_20' ) start [2025-01-02 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161263', 'tblTempUsageDetail_20' ) end [2025-01-02 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161263', 'tblTempVendorCDR_20' ) start [2025-01-02 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161263', 'tblTempVendorCDR_20' ) end [2025-01-02 22:27:18] Production.INFO: ProcessCDR(1,14161263,1,1,2) [2025-01-02 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161263', 'tblTempUsageDetail_20' ) start [2025-01-02 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161263', 'tblTempUsageDetail_20' ) end [2025-01-02 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:27:21] Production.INFO: ==20438== Releasing lock... [2025-01-02 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:28:05 [end_date_ymd] => 2025-01-02 22:28:05 [RateCDR] => 1 ) [2025-01-02 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:28:05' and `end` < '2025-01-02 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:28:19] Production.INFO: count ==719 [2025-01-02 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:28:05 - End Time 2025-01-02 22:28:05 [2025-01-02 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161268', 'tblTempUsageDetail_20' ) start [2025-01-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161268', 'tblTempUsageDetail_20' ) end [2025-01-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161268', 'tblTempVendorCDR_20' ) start [2025-01-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161268', 'tblTempVendorCDR_20' ) end [2025-01-02 22:28:19] Production.INFO: ProcessCDR(1,14161268,1,1,2) [2025-01-02 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161268', 'tblTempUsageDetail_20' ) start [2025-01-02 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161268', 'tblTempUsageDetail_20' ) end [2025-01-02 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:28:22] Production.INFO: ==20514== Releasing lock... [2025-01-02 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:29:05 [end_date_ymd] => 2025-01-02 22:29:05 [RateCDR] => 1 ) [2025-01-02 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:29:05' and `end` < '2025-01-02 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:29:17] Production.INFO: count ==722 [2025-01-02 22:29:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:29:05 - End Time 2025-01-02 22:29:05 [2025-01-02 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161273', 'tblTempUsageDetail_20' ) start [2025-01-02 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161273', 'tblTempUsageDetail_20' ) end [2025-01-02 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161273', 'tblTempVendorCDR_20' ) start [2025-01-02 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161273', 'tblTempVendorCDR_20' ) end [2025-01-02 22:29:17] Production.INFO: ProcessCDR(1,14161273,1,1,2) [2025-01-02 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161273', 'tblTempUsageDetail_20' ) start [2025-01-02 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161273', 'tblTempUsageDetail_20' ) end [2025-01-02 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:29:21] Production.INFO: ==20588== Releasing lock... [2025-01-02 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:30:06 [end_date_ymd] => 2025-01-02 22:30:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:30:06' and `end` < '2025-01-02 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-01-02 22:30:19] Production.INFO: count ==709 [2025-01-02 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:30:06 - End Time 2025-01-02 22:30:06 [2025-01-02 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161278', 'tblTempUsageDetail_20' ) start [2025-01-02 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161278', 'tblTempUsageDetail_20' ) end [2025-01-02 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161278', 'tblTempVendorCDR_20' ) start [2025-01-02 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161278', 'tblTempVendorCDR_20' ) end [2025-01-02 22:30:19] Production.INFO: ProcessCDR(1,14161278,1,1,2) [2025-01-02 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161278', 'tblTempUsageDetail_20' ) start [2025-01-02 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161278', 'tblTempUsageDetail_20' ) end [2025-01-02 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:30:22] Production.INFO: ==20670== Releasing lock... [2025-01-02 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-02 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:31:05 [end_date_ymd] => 2025-01-02 22:31:05 [RateCDR] => 1 ) [2025-01-02 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:31:05' and `end` < '2025-01-02 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:31:19] Production.INFO: count ==681 [2025-01-02 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:31:05 - End Time 2025-01-02 22:31:05 [2025-01-02 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161284', 'tblTempUsageDetail_20' ) start [2025-01-02 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161284', 'tblTempUsageDetail_20' ) end [2025-01-02 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161284', 'tblTempVendorCDR_20' ) start [2025-01-02 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161284', 'tblTempVendorCDR_20' ) end [2025-01-02 22:31:19] Production.INFO: ProcessCDR(1,14161284,1,1,2) [2025-01-02 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161284', 'tblTempUsageDetail_20' ) start [2025-01-02 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161284', 'tblTempUsageDetail_20' ) end [2025-01-02 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:31:22] Production.INFO: ==20747== Releasing lock... [2025-01-02 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:32:05 [end_date_ymd] => 2025-01-02 22:32:05 [RateCDR] => 1 ) [2025-01-02 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:32:05' and `end` < '2025-01-02 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:32:20] Production.INFO: count ==681 [2025-01-02 22:32:20] Production.ERROR: pbx CDR StartTime 2025-01-02 19:32:05 - End Time 2025-01-02 22:32:05 [2025-01-02 22:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161289', 'tblTempUsageDetail_20' ) start [2025-01-02 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161289', 'tblTempUsageDetail_20' ) end [2025-01-02 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161289', 'tblTempVendorCDR_20' ) start [2025-01-02 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161289', 'tblTempVendorCDR_20' ) end [2025-01-02 22:32:20] Production.INFO: ProcessCDR(1,14161289,1,1,2) [2025-01-02 22:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161289', 'tblTempUsageDetail_20' ) start [2025-01-02 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161289', 'tblTempUsageDetail_20' ) end [2025-01-02 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:32:23] Production.INFO: ==20820== Releasing lock... [2025-01-02 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:33:05 [end_date_ymd] => 2025-01-02 22:33:05 [RateCDR] => 1 ) [2025-01-02 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:33:05' and `end` < '2025-01-02 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:33:17] Production.INFO: count ==676 [2025-01-02 22:33:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:33:05 - End Time 2025-01-02 22:33:05 [2025-01-02 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161294', 'tblTempUsageDetail_20' ) start [2025-01-02 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161294', 'tblTempUsageDetail_20' ) end [2025-01-02 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161294', 'tblTempVendorCDR_20' ) start [2025-01-02 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161294', 'tblTempVendorCDR_20' ) end [2025-01-02 22:33:17] Production.INFO: ProcessCDR(1,14161294,1,1,2) [2025-01-02 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161294', 'tblTempUsageDetail_20' ) start [2025-01-02 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161294', 'tblTempUsageDetail_20' ) end [2025-01-02 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:33:22] Production.INFO: ==20892== Releasing lock... [2025-01-02 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:34:05 [end_date_ymd] => 2025-01-02 22:34:05 [RateCDR] => 1 ) [2025-01-02 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:34:05' and `end` < '2025-01-02 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:34:18] Production.INFO: count ==673 [2025-01-02 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:34:05 - End Time 2025-01-02 22:34:05 [2025-01-02 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161299', 'tblTempUsageDetail_20' ) start [2025-01-02 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161299', 'tblTempUsageDetail_20' ) end [2025-01-02 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161299', 'tblTempVendorCDR_20' ) start [2025-01-02 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161299', 'tblTempVendorCDR_20' ) end [2025-01-02 22:34:18] Production.INFO: ProcessCDR(1,14161299,1,1,2) [2025-01-02 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161299', 'tblTempUsageDetail_20' ) start [2025-01-02 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161299', 'tblTempUsageDetail_20' ) end [2025-01-02 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:34:21] Production.INFO: ==20964== Releasing lock... [2025-01-02 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:35:04 [end_date_ymd] => 2025-01-02 22:35:04 [RateCDR] => 1 ) [2025-01-02 22:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:35:04' and `end` < '2025-01-02 22:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:35:17] Production.INFO: count ==673 [2025-01-02 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:35:04 - End Time 2025-01-02 22:35:04 [2025-01-02 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161304', 'tblTempUsageDetail_20' ) start [2025-01-02 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161304', 'tblTempUsageDetail_20' ) end [2025-01-02 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161304', 'tblTempVendorCDR_20' ) start [2025-01-02 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161304', 'tblTempVendorCDR_20' ) end [2025-01-02 22:35:17] Production.INFO: ProcessCDR(1,14161304,1,1,2) [2025-01-02 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161304', 'tblTempUsageDetail_20' ) start [2025-01-02 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161304', 'tblTempUsageDetail_20' ) end [2025-01-02 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:35:20] Production.INFO: ==21035== Releasing lock... [2025-01-02 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:35:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:36:05 [end_date_ymd] => 2025-01-02 22:36:05 [RateCDR] => 1 ) [2025-01-02 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:36:05' and `end` < '2025-01-02 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:36:20] Production.INFO: count ==673 [2025-01-02 22:36:20] Production.ERROR: pbx CDR StartTime 2025-01-02 19:36:05 - End Time 2025-01-02 22:36:05 [2025-01-02 22:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161309', 'tblTempUsageDetail_20' ) start [2025-01-02 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161309', 'tblTempUsageDetail_20' ) end [2025-01-02 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161309', 'tblTempVendorCDR_20' ) start [2025-01-02 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161309', 'tblTempVendorCDR_20' ) end [2025-01-02 22:36:20] Production.INFO: ProcessCDR(1,14161309,1,1,2) [2025-01-02 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161309', 'tblTempUsageDetail_20' ) start [2025-01-02 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161309', 'tblTempUsageDetail_20' ) end [2025-01-02 22:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:36:24] Production.INFO: ==21110== Releasing lock... [2025-01-02 22:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:36:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:37:05 [end_date_ymd] => 2025-01-02 22:37:05 [RateCDR] => 1 ) [2025-01-02 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:37:05' and `end` < '2025-01-02 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:37:17] Production.INFO: count ==671 [2025-01-02 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:37:05 - End Time 2025-01-02 22:37:05 [2025-01-02 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161314', 'tblTempUsageDetail_20' ) start [2025-01-02 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161314', 'tblTempUsageDetail_20' ) end [2025-01-02 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161314', 'tblTempVendorCDR_20' ) start [2025-01-02 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161314', 'tblTempVendorCDR_20' ) end [2025-01-02 22:37:18] Production.INFO: ProcessCDR(1,14161314,1,1,2) [2025-01-02 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161314', 'tblTempUsageDetail_20' ) start [2025-01-02 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161314', 'tblTempUsageDetail_20' ) end [2025-01-02 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:37:21] Production.INFO: ==21219== Releasing lock... [2025-01-02 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:38:05 [end_date_ymd] => 2025-01-02 22:38:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:38:05' and `end` < '2025-01-02 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-01-02 22:38:19] Production.INFO: count ==671 [2025-01-02 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:38:05 - End Time 2025-01-02 22:38:05 [2025-01-02 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161319', 'tblTempUsageDetail_20' ) start [2025-01-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161319', 'tblTempUsageDetail_20' ) end [2025-01-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161319', 'tblTempVendorCDR_20' ) start [2025-01-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161319', 'tblTempVendorCDR_20' ) end [2025-01-02 22:38:19] Production.INFO: ProcessCDR(1,14161319,1,1,2) [2025-01-02 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161319', 'tblTempUsageDetail_20' ) start [2025-01-02 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161319', 'tblTempUsageDetail_20' ) end [2025-01-02 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:38:22] Production.INFO: ==21290== Releasing lock... [2025-01-02 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-02 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:39:05 [end_date_ymd] => 2025-01-02 22:39:05 [RateCDR] => 1 ) [2025-01-02 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:39:05' and `end` < '2025-01-02 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:39:18] Production.INFO: count ==666 [2025-01-02 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:39:05 - End Time 2025-01-02 22:39:05 [2025-01-02 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161324', 'tblTempUsageDetail_20' ) start [2025-01-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161324', 'tblTempUsageDetail_20' ) end [2025-01-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161324', 'tblTempVendorCDR_20' ) start [2025-01-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161324', 'tblTempVendorCDR_20' ) end [2025-01-02 22:39:18] Production.INFO: ProcessCDR(1,14161324,1,1,2) [2025-01-02 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161324', 'tblTempUsageDetail_20' ) start [2025-01-02 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161324', 'tblTempUsageDetail_20' ) end [2025-01-02 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:39:22] Production.INFO: ==21361== Releasing lock... [2025-01-02 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:40:06 [end_date_ymd] => 2025-01-02 22:40:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:40:06' and `end` < '2025-01-02 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-01-02 22:40:19] Production.INFO: count ==662 [2025-01-02 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:40:06 - End Time 2025-01-02 22:40:06 [2025-01-02 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161330', 'tblTempUsageDetail_20' ) start [2025-01-02 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161330', 'tblTempUsageDetail_20' ) end [2025-01-02 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161330', 'tblTempVendorCDR_20' ) start [2025-01-02 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161330', 'tblTempVendorCDR_20' ) end [2025-01-02 22:40:19] Production.INFO: ProcessCDR(1,14161330,1,1,2) [2025-01-02 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161330', 'tblTempUsageDetail_20' ) start [2025-01-02 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161330', 'tblTempUsageDetail_20' ) end [2025-01-02 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:40:22] Production.INFO: ==21438== Releasing lock... [2025-01-02 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:41:04 [end_date_ymd] => 2025-01-02 22:41:04 [RateCDR] => 1 ) [2025-01-02 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:41:04' and `end` < '2025-01-02 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:41:17] Production.INFO: count ==635 [2025-01-02 22:41:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:41:04 - End Time 2025-01-02 22:41:04 [2025-01-02 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161335', 'tblTempUsageDetail_20' ) start [2025-01-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161335', 'tblTempUsageDetail_20' ) end [2025-01-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161335', 'tblTempVendorCDR_20' ) start [2025-01-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161335', 'tblTempVendorCDR_20' ) end [2025-01-02 22:41:17] Production.INFO: ProcessCDR(1,14161335,1,1,2) [2025-01-02 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161335', 'tblTempUsageDetail_20' ) start [2025-01-02 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161335', 'tblTempUsageDetail_20' ) end [2025-01-02 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:41:20] Production.INFO: ==21510== Releasing lock... [2025-01-02 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:41:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:42:05 [end_date_ymd] => 2025-01-02 22:42:05 [RateCDR] => 1 ) [2025-01-02 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:42:05' and `end` < '2025-01-02 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:42:18] Production.INFO: count ==636 [2025-01-02 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:42:05 - End Time 2025-01-02 22:42:05 [2025-01-02 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161340', 'tblTempUsageDetail_20' ) start [2025-01-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161340', 'tblTempUsageDetail_20' ) end [2025-01-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161340', 'tblTempVendorCDR_20' ) start [2025-01-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161340', 'tblTempVendorCDR_20' ) end [2025-01-02 22:42:18] Production.INFO: ProcessCDR(1,14161340,1,1,2) [2025-01-02 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161340', 'tblTempUsageDetail_20' ) start [2025-01-02 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161340', 'tblTempUsageDetail_20' ) end [2025-01-02 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:42:23] Production.INFO: ==21583== Releasing lock... [2025-01-02 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:42:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:43:05 [end_date_ymd] => 2025-01-02 22:43:05 [RateCDR] => 1 ) [2025-01-02 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:43:05' and `end` < '2025-01-02 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:43:20] Production.INFO: count ==636 [2025-01-02 22:43:20] Production.ERROR: pbx CDR StartTime 2025-01-02 19:43:05 - End Time 2025-01-02 22:43:05 [2025-01-02 22:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161345', 'tblTempUsageDetail_20' ) start [2025-01-02 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161345', 'tblTempUsageDetail_20' ) end [2025-01-02 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161345', 'tblTempVendorCDR_20' ) start [2025-01-02 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161345', 'tblTempVendorCDR_20' ) end [2025-01-02 22:43:20] Production.INFO: ProcessCDR(1,14161345,1,1,2) [2025-01-02 22:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161345', 'tblTempUsageDetail_20' ) start [2025-01-02 22:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161345', 'tblTempUsageDetail_20' ) end [2025-01-02 22:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:43:25] Production.INFO: ==21654== Releasing lock... [2025-01-02 22:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:43:25] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:44:05 [end_date_ymd] => 2025-01-02 22:44:05 [RateCDR] => 1 ) [2025-01-02 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:44:05' and `end` < '2025-01-02 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:44:19] Production.INFO: count ==636 [2025-01-02 22:44:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:44:05 - End Time 2025-01-02 22:44:05 [2025-01-02 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161350', 'tblTempUsageDetail_20' ) start [2025-01-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161350', 'tblTempUsageDetail_20' ) end [2025-01-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161350', 'tblTempVendorCDR_20' ) start [2025-01-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161350', 'tblTempVendorCDR_20' ) end [2025-01-02 22:44:19] Production.INFO: ProcessCDR(1,14161350,1,1,2) [2025-01-02 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161350', 'tblTempUsageDetail_20' ) start [2025-01-02 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161350', 'tblTempUsageDetail_20' ) end [2025-01-02 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:44:22] Production.INFO: ==21726== Releasing lock... [2025-01-02 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:45:05 [end_date_ymd] => 2025-01-02 22:45:05 [RateCDR] => 1 ) [2025-01-02 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:45:05' and `end` < '2025-01-02 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:45:18] Production.INFO: count ==633 [2025-01-02 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:45:05 - End Time 2025-01-02 22:45:05 [2025-01-02 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161355', 'tblTempUsageDetail_20' ) start [2025-01-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161355', 'tblTempUsageDetail_20' ) end [2025-01-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161355', 'tblTempVendorCDR_20' ) start [2025-01-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161355', 'tblTempVendorCDR_20' ) end [2025-01-02 22:45:18] Production.INFO: ProcessCDR(1,14161355,1,1,2) [2025-01-02 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161355', 'tblTempUsageDetail_20' ) start [2025-01-02 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161355', 'tblTempUsageDetail_20' ) end [2025-01-02 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:45:21] Production.INFO: ==21796== Releasing lock... [2025-01-02 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:45:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:46:05 [end_date_ymd] => 2025-01-02 22:46:05 [RateCDR] => 1 ) [2025-01-02 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:46:05' and `end` < '2025-01-02 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:46:19] Production.INFO: count ==633 [2025-01-02 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:46:05 - End Time 2025-01-02 22:46:05 [2025-01-02 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161360', 'tblTempUsageDetail_20' ) start [2025-01-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161360', 'tblTempUsageDetail_20' ) end [2025-01-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161360', 'tblTempVendorCDR_20' ) start [2025-01-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161360', 'tblTempVendorCDR_20' ) end [2025-01-02 22:46:19] Production.INFO: ProcessCDR(1,14161360,1,1,2) [2025-01-02 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161360', 'tblTempUsageDetail_20' ) start [2025-01-02 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161360', 'tblTempUsageDetail_20' ) end [2025-01-02 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:46:22] Production.INFO: ==21869== Releasing lock... [2025-01-02 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:46:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:47:05 [end_date_ymd] => 2025-01-02 22:47:05 [RateCDR] => 1 ) [2025-01-02 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:47:05' and `end` < '2025-01-02 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:47:19] Production.INFO: count ==632 [2025-01-02 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:47:05 - End Time 2025-01-02 22:47:05 [2025-01-02 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161365', 'tblTempUsageDetail_20' ) start [2025-01-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161365', 'tblTempUsageDetail_20' ) end [2025-01-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161365', 'tblTempVendorCDR_20' ) start [2025-01-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161365', 'tblTempVendorCDR_20' ) end [2025-01-02 22:47:19] Production.INFO: ProcessCDR(1,14161365,1,1,2) [2025-01-02 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161365', 'tblTempUsageDetail_20' ) start [2025-01-02 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161365', 'tblTempUsageDetail_20' ) end [2025-01-02 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:47:23] Production.INFO: ==21940== Releasing lock... [2025-01-02 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:47:23] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:48:05 [end_date_ymd] => 2025-01-02 22:48:05 [RateCDR] => 1 ) [2025-01-02 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:48:05' and `end` < '2025-01-02 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:48:19] Production.INFO: count ==632 [2025-01-02 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:48:05 - End Time 2025-01-02 22:48:05 [2025-01-02 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161370', 'tblTempUsageDetail_20' ) start [2025-01-02 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161370', 'tblTempUsageDetail_20' ) end [2025-01-02 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161370', 'tblTempVendorCDR_20' ) start [2025-01-02 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161370', 'tblTempVendorCDR_20' ) end [2025-01-02 22:48:19] Production.INFO: ProcessCDR(1,14161370,1,1,2) [2025-01-02 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161370', 'tblTempUsageDetail_20' ) start [2025-01-02 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161370', 'tblTempUsageDetail_20' ) end [2025-01-02 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:48:22] Production.INFO: ==22014== Releasing lock... [2025-01-02 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:48:23] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:49:05 [end_date_ymd] => 2025-01-02 22:49:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:49:05' and `end` < '2025-01-02 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-01-02 22:49:17] Production.INFO: count ==632 [2025-01-02 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:49:05 - End Time 2025-01-02 22:49:05 [2025-01-02 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161375', 'tblTempUsageDetail_20' ) start [2025-01-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161375', 'tblTempUsageDetail_20' ) end [2025-01-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161375', 'tblTempVendorCDR_20' ) start [2025-01-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161375', 'tblTempVendorCDR_20' ) end [2025-01-02 22:49:17] Production.INFO: ProcessCDR(1,14161375,1,1,2) [2025-01-02 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161375', 'tblTempUsageDetail_20' ) start [2025-01-02 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161375', 'tblTempUsageDetail_20' ) end [2025-01-02 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:49:21] Production.INFO: ==22083== Releasing lock... [2025-01-02 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:49:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:50:06 [end_date_ymd] => 2025-01-02 22:50:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:50:06' and `end` < '2025-01-02 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-01-02 22:50:19] Production.INFO: count ==635 [2025-01-02 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:50:06 - End Time 2025-01-02 22:50:06 [2025-01-02 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161381', 'tblTempUsageDetail_20' ) start [2025-01-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161381', 'tblTempUsageDetail_20' ) end [2025-01-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161381', 'tblTempVendorCDR_20' ) start [2025-01-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161381', 'tblTempVendorCDR_20' ) end [2025-01-02 22:50:19] Production.INFO: ProcessCDR(1,14161381,1,1,2) [2025-01-02 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161381', 'tblTempUsageDetail_20' ) start [2025-01-02 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161381', 'tblTempUsageDetail_20' ) end [2025-01-02 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:50:22] Production.INFO: ==22159== Releasing lock... [2025-01-02 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:51:04 [end_date_ymd] => 2025-01-02 22:51:04 [RateCDR] => 1 ) [2025-01-02 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:51:04' and `end` < '2025-01-02 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:51:17] Production.INFO: count ==609 [2025-01-02 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:51:04 - End Time 2025-01-02 22:51:04 [2025-01-02 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161386', 'tblTempUsageDetail_20' ) start [2025-01-02 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161386', 'tblTempUsageDetail_20' ) end [2025-01-02 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161386', 'tblTempVendorCDR_20' ) start [2025-01-02 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161386', 'tblTempVendorCDR_20' ) end [2025-01-02 22:51:17] Production.INFO: ProcessCDR(1,14161386,1,1,2) [2025-01-02 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161386', 'tblTempUsageDetail_20' ) start [2025-01-02 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161386', 'tblTempUsageDetail_20' ) end [2025-01-02 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:51:22] Production.INFO: ==22234== Releasing lock... [2025-01-02 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:51:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:52:05 [end_date_ymd] => 2025-01-02 22:52:05 [RateCDR] => 1 ) [2025-01-02 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:52:05' and `end` < '2025-01-02 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:52:18] Production.INFO: count ==606 [2025-01-02 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:52:05 - End Time 2025-01-02 22:52:05 [2025-01-02 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161391', 'tblTempUsageDetail_20' ) start [2025-01-02 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161391', 'tblTempUsageDetail_20' ) end [2025-01-02 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161391', 'tblTempVendorCDR_20' ) start [2025-01-02 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161391', 'tblTempVendorCDR_20' ) end [2025-01-02 22:52:18] Production.INFO: ProcessCDR(1,14161391,1,1,2) [2025-01-02 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161391', 'tblTempUsageDetail_20' ) start [2025-01-02 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161391', 'tblTempUsageDetail_20' ) end [2025-01-02 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:52:22] Production.INFO: ==22344== Releasing lock... [2025-01-02 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:52:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:53:04 [end_date_ymd] => 2025-01-02 22:53:04 [RateCDR] => 1 ) [2025-01-02 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:53:04' and `end` < '2025-01-02 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:53:17] Production.INFO: count ==600 [2025-01-02 22:53:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:53:04 - End Time 2025-01-02 22:53:04 [2025-01-02 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161396', 'tblTempUsageDetail_20' ) start [2025-01-02 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161396', 'tblTempUsageDetail_20' ) end [2025-01-02 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161396', 'tblTempVendorCDR_20' ) start [2025-01-02 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161396', 'tblTempVendorCDR_20' ) end [2025-01-02 22:53:17] Production.INFO: ProcessCDR(1,14161396,1,1,2) [2025-01-02 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161396', 'tblTempUsageDetail_20' ) start [2025-01-02 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161396', 'tblTempUsageDetail_20' ) end [2025-01-02 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:53:20] Production.INFO: ==22418== Releasing lock... [2025-01-02 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:53:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:54:05 [end_date_ymd] => 2025-01-02 22:54:05 [RateCDR] => 1 ) [2025-01-02 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:54:05' and `end` < '2025-01-02 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:54:18] Production.INFO: count ==600 [2025-01-02 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:54:05 - End Time 2025-01-02 22:54:05 [2025-01-02 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161401', 'tblTempUsageDetail_20' ) start [2025-01-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161401', 'tblTempUsageDetail_20' ) end [2025-01-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161401', 'tblTempVendorCDR_20' ) start [2025-01-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161401', 'tblTempVendorCDR_20' ) end [2025-01-02 22:54:18] Production.INFO: ProcessCDR(1,14161401,1,1,2) [2025-01-02 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161401', 'tblTempUsageDetail_20' ) start [2025-01-02 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161401', 'tblTempUsageDetail_20' ) end [2025-01-02 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:54:21] Production.INFO: ==22498== Releasing lock... [2025-01-02 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:55:05 [end_date_ymd] => 2025-01-02 22:55:05 [RateCDR] => 1 ) [2025-01-02 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:55:05' and `end` < '2025-01-02 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:55:17] Production.INFO: count ==598 [2025-01-02 22:55:17] Production.ERROR: pbx CDR StartTime 2025-01-02 19:55:05 - End Time 2025-01-02 22:55:05 [2025-01-02 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161406', 'tblTempUsageDetail_20' ) start [2025-01-02 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161406', 'tblTempUsageDetail_20' ) end [2025-01-02 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161406', 'tblTempVendorCDR_20' ) start [2025-01-02 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161406', 'tblTempVendorCDR_20' ) end [2025-01-02 22:55:17] Production.INFO: ProcessCDR(1,14161406,1,1,2) [2025-01-02 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161406', 'tblTempUsageDetail_20' ) start [2025-01-02 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161406', 'tblTempUsageDetail_20' ) end [2025-01-02 22:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:55:20] Production.INFO: ==22567== Releasing lock... [2025-01-02 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:55:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:56:05 [end_date_ymd] => 2025-01-02 22:56:05 [RateCDR] => 1 ) [2025-01-02 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:56:05' and `end` < '2025-01-02 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:56:18] Production.INFO: count ==597 [2025-01-02 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:56:05 - End Time 2025-01-02 22:56:05 [2025-01-02 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161411', 'tblTempUsageDetail_20' ) start [2025-01-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161411', 'tblTempUsageDetail_20' ) end [2025-01-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161411', 'tblTempVendorCDR_20' ) start [2025-01-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161411', 'tblTempVendorCDR_20' ) end [2025-01-02 22:56:18] Production.INFO: ProcessCDR(1,14161411,1,1,2) [2025-01-02 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161411', 'tblTempUsageDetail_20' ) start [2025-01-02 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161411', 'tblTempUsageDetail_20' ) end [2025-01-02 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:56:21] Production.INFO: ==22639== Releasing lock... [2025-01-02 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:57:05 [end_date_ymd] => 2025-01-02 22:57:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 19:57:05' and `end` < '2025-01-02 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-01-02 22:57:19] Production.INFO: count ==597 [2025-01-02 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-02 19:57:05 - End Time 2025-01-02 22:57:05 [2025-01-02 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161416', 'tblTempUsageDetail_20' ) start [2025-01-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161416', 'tblTempUsageDetail_20' ) end [2025-01-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161416', 'tblTempVendorCDR_20' ) start [2025-01-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161416', 'tblTempVendorCDR_20' ) end [2025-01-02 22:57:19] Production.INFO: ProcessCDR(1,14161416,1,1,2) [2025-01-02 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161416', 'tblTempUsageDetail_20' ) start [2025-01-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161416', 'tblTempUsageDetail_20' ) end [2025-01-02 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:57:22] Production.INFO: ==22712== Releasing lock... [2025-01-02 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:57:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:58:04 [end_date_ymd] => 2025-01-02 22:58:04 [RateCDR] => 1 ) [2025-01-02 22:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:58:04' and `end` < '2025-01-02 22:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:58:18] Production.INFO: count ==596 [2025-01-02 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:58:04 - End Time 2025-01-02 22:58:04 [2025-01-02 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161421', 'tblTempUsageDetail_20' ) start [2025-01-02 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161421', 'tblTempUsageDetail_20' ) end [2025-01-02 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161421', 'tblTempVendorCDR_20' ) start [2025-01-02 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161421', 'tblTempVendorCDR_20' ) end [2025-01-02 22:58:18] Production.INFO: ProcessCDR(1,14161421,1,1,2) [2025-01-02 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161421', 'tblTempUsageDetail_20' ) start [2025-01-02 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161421', 'tblTempUsageDetail_20' ) end [2025-01-02 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:58:21] Production.INFO: ==22783== Releasing lock... [2025-01-02 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:58:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 19:59:05 [end_date_ymd] => 2025-01-02 22:59:05 [RateCDR] => 1 ) [2025-01-02 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 19:59:05' and `end` < '2025-01-02 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 22:59:18] Production.INFO: count ==596 [2025-01-02 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 19:59:05 - End Time 2025-01-02 22:59:05 [2025-01-02 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161426', 'tblTempUsageDetail_20' ) start [2025-01-02 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161426', 'tblTempUsageDetail_20' ) end [2025-01-02 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161426', 'tblTempVendorCDR_20' ) start [2025-01-02 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161426', 'tblTempVendorCDR_20' ) end [2025-01-02 22:59:18] Production.INFO: ProcessCDR(1,14161426,1,1,2) [2025-01-02 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161426', 'tblTempUsageDetail_20' ) start [2025-01-02 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161426', 'tblTempUsageDetail_20' ) end [2025-01-02 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 22:59:21] Production.INFO: ==22857== Releasing lock... [2025-01-02 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 22:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:00:05 [end_date_ymd] => 2025-01-02 23:00:05 [RateCDR] => 1 ) [2025-01-02 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:00:05' and `end` < '2025-01-02 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:00:18] Production.INFO: count ==596 [2025-01-02 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:00:05 - End Time 2025-01-02 23:00:05 [2025-01-02 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161431', 'tblTempUsageDetail_20' ) start [2025-01-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161431', 'tblTempUsageDetail_20' ) end [2025-01-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161431', 'tblTempVendorCDR_20' ) start [2025-01-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161431', 'tblTempVendorCDR_20' ) end [2025-01-02 23:00:18] Production.INFO: ProcessCDR(1,14161431,1,1,2) [2025-01-02 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161431', 'tblTempUsageDetail_20' ) start [2025-01-02 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161431', 'tblTempUsageDetail_20' ) end [2025-01-02 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:00:21] Production.INFO: ==22929== Releasing lock... [2025-01-02 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:00:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:01:05 [end_date_ymd] => 2025-01-02 23:01:05 [RateCDR] => 1 ) [2025-01-02 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:01:05' and `end` < '2025-01-02 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:01:20] Production.INFO: count ==611 [2025-01-02 23:01:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:01:05 - End Time 2025-01-02 23:01:05 [2025-01-02 23:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161437', 'tblTempUsageDetail_20' ) start [2025-01-02 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161437', 'tblTempUsageDetail_20' ) end [2025-01-02 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161437', 'tblTempVendorCDR_20' ) start [2025-01-02 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161437', 'tblTempVendorCDR_20' ) end [2025-01-02 23:01:20] Production.INFO: ProcessCDR(1,14161437,1,1,2) [2025-01-02 23:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161437', 'tblTempUsageDetail_20' ) start [2025-01-02 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161437', 'tblTempUsageDetail_20' ) end [2025-01-02 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:01:23] Production.INFO: ==23017== Releasing lock... [2025-01-02 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:01:23] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:02:04 [end_date_ymd] => 2025-01-02 23:02:04 [RateCDR] => 1 ) [2025-01-02 23:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:02:04' and `end` < '2025-01-02 23:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:02:19] Production.INFO: count ==611 [2025-01-02 23:02:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:02:04 - End Time 2025-01-02 23:02:04 [2025-01-02 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161442', 'tblTempUsageDetail_20' ) start [2025-01-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161442', 'tblTempUsageDetail_20' ) end [2025-01-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161442', 'tblTempVendorCDR_20' ) start [2025-01-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161442', 'tblTempVendorCDR_20' ) end [2025-01-02 23:02:19] Production.INFO: ProcessCDR(1,14161442,1,1,2) [2025-01-02 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161442', 'tblTempUsageDetail_20' ) start [2025-01-02 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161442', 'tblTempUsageDetail_20' ) end [2025-01-02 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:02:22] Production.INFO: ==23167== Releasing lock... [2025-01-02 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:02:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:03:05 [end_date_ymd] => 2025-01-02 23:03:05 [RateCDR] => 1 ) [2025-01-02 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:03:05' and `end` < '2025-01-02 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:03:17] Production.INFO: count ==609 [2025-01-02 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:03:05 - End Time 2025-01-02 23:03:05 [2025-01-02 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161447', 'tblTempUsageDetail_20' ) start [2025-01-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161447', 'tblTempUsageDetail_20' ) end [2025-01-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161447', 'tblTempVendorCDR_20' ) start [2025-01-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161447', 'tblTempVendorCDR_20' ) end [2025-01-02 23:03:17] Production.INFO: ProcessCDR(1,14161447,1,1,2) [2025-01-02 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161447', 'tblTempUsageDetail_20' ) start [2025-01-02 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161447', 'tblTempUsageDetail_20' ) end [2025-01-02 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:03:21] Production.INFO: ==23238== Releasing lock... [2025-01-02 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:03:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:04:06 [end_date_ymd] => 2025-01-02 23:04:06 [RateCDR] => 1 ) [2025-01-02 23:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:04:06' and `end` < '2025-01-02 23:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:04:19] Production.INFO: count ==610 [2025-01-02 23:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:04:06 - End Time 2025-01-02 23:04:06 [2025-01-02 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161452', 'tblTempUsageDetail_20' ) start [2025-01-02 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161452', 'tblTempUsageDetail_20' ) end [2025-01-02 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161452', 'tblTempVendorCDR_20' ) start [2025-01-02 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161452', 'tblTempVendorCDR_20' ) end [2025-01-02 23:04:20] Production.INFO: ProcessCDR(1,14161452,1,1,2) [2025-01-02 23:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161452', 'tblTempUsageDetail_20' ) start [2025-01-02 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161452', 'tblTempUsageDetail_20' ) end [2025-01-02 23:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:04:24] Production.INFO: ==23312== Releasing lock... [2025-01-02 23:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:04:24] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:05:05 [end_date_ymd] => 2025-01-02 23:05:05 [RateCDR] => 1 ) [2025-01-02 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:05:05' and `end` < '2025-01-02 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:05:17] Production.INFO: count ==608 [2025-01-02 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:05:05 - End Time 2025-01-02 23:05:05 [2025-01-02 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161457', 'tblTempUsageDetail_20' ) start [2025-01-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161457', 'tblTempUsageDetail_20' ) end [2025-01-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161457', 'tblTempVendorCDR_20' ) start [2025-01-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161457', 'tblTempVendorCDR_20' ) end [2025-01-02 23:05:17] Production.INFO: ProcessCDR(1,14161457,1,1,2) [2025-01-02 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161457', 'tblTempUsageDetail_20' ) start [2025-01-02 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161457', 'tblTempUsageDetail_20' ) end [2025-01-02 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:05:20] Production.INFO: ==23459== Releasing lock... [2025-01-02 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:05:20] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:06:05 [end_date_ymd] => 2025-01-02 23:06:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:06:05' and `end` < '2025-01-02 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-01-02 23:06:18] Production.INFO: count ==608 [2025-01-02 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:06:05 - End Time 2025-01-02 23:06:05 [2025-01-02 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161462', 'tblTempUsageDetail_20' ) start [2025-01-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161462', 'tblTempUsageDetail_20' ) end [2025-01-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161462', 'tblTempVendorCDR_20' ) start [2025-01-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161462', 'tblTempVendorCDR_20' ) end [2025-01-02 23:06:18] Production.INFO: ProcessCDR(1,14161462,1,1,2) [2025-01-02 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161462', 'tblTempUsageDetail_20' ) start [2025-01-02 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161462', 'tblTempUsageDetail_20' ) end [2025-01-02 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:06:21] Production.INFO: ==23531== Releasing lock... [2025-01-02 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:06:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:07:04 [end_date_ymd] => 2025-01-02 23:07:04 [RateCDR] => 1 ) [2025-01-02 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:07:04' and `end` < '2025-01-02 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:07:17] Production.INFO: count ==608 [2025-01-02 23:07:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:07:04 - End Time 2025-01-02 23:07:04 [2025-01-02 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161467', 'tblTempUsageDetail_20' ) start [2025-01-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161467', 'tblTempUsageDetail_20' ) end [2025-01-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161467', 'tblTempVendorCDR_20' ) start [2025-01-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161467', 'tblTempVendorCDR_20' ) end [2025-01-02 23:07:17] Production.INFO: ProcessCDR(1,14161467,1,1,2) [2025-01-02 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161467', 'tblTempUsageDetail_20' ) start [2025-01-02 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161467', 'tblTempUsageDetail_20' ) end [2025-01-02 23:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:07:20] Production.INFO: ==23607== Releasing lock... [2025-01-02 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:07:20] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:08:05 [end_date_ymd] => 2025-01-02 23:08:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:08:05' and `end` < '2025-01-02 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-01-02 23:08:18] Production.INFO: count ==612 [2025-01-02 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:08:05 - End Time 2025-01-02 23:08:05 [2025-01-02 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161472', 'tblTempUsageDetail_20' ) start [2025-01-02 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161472', 'tblTempUsageDetail_20' ) end [2025-01-02 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161472', 'tblTempVendorCDR_20' ) start [2025-01-02 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161472', 'tblTempVendorCDR_20' ) end [2025-01-02 23:08:18] Production.INFO: ProcessCDR(1,14161472,1,1,2) [2025-01-02 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161472', 'tblTempUsageDetail_20' ) start [2025-01-02 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161472', 'tblTempUsageDetail_20' ) end [2025-01-02 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:08:21] Production.INFO: ==23797== Releasing lock... [2025-01-02 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:08:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:09:04 [end_date_ymd] => 2025-01-02 23:09:04 [RateCDR] => 1 ) [2025-01-02 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:09:04' and `end` < '2025-01-02 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:09:17] Production.INFO: count ==612 [2025-01-02 23:09:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:09:04 - End Time 2025-01-02 23:09:04 [2025-01-02 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161477', 'tblTempUsageDetail_20' ) start [2025-01-02 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161477', 'tblTempUsageDetail_20' ) end [2025-01-02 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161477', 'tblTempVendorCDR_20' ) start [2025-01-02 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161477', 'tblTempVendorCDR_20' ) end [2025-01-02 23:09:17] Production.INFO: ProcessCDR(1,14161477,1,1,2) [2025-01-02 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161477', 'tblTempUsageDetail_20' ) start [2025-01-02 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161477', 'tblTempUsageDetail_20' ) end [2025-01-02 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:09:20] Production.INFO: ==23872== Releasing lock... [2025-01-02 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:09:20] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:10:06 [end_date_ymd] => 2025-01-02 23:10:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:10:06' and `end` < '2025-01-02 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-01-02 23:10:19] Production.INFO: count ==610 [2025-01-02 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:10:06 - End Time 2025-01-02 23:10:06 [2025-01-02 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161483', 'tblTempUsageDetail_20' ) start [2025-01-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161483', 'tblTempUsageDetail_20' ) end [2025-01-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161483', 'tblTempVendorCDR_20' ) start [2025-01-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161483', 'tblTempVendorCDR_20' ) end [2025-01-02 23:10:19] Production.INFO: ProcessCDR(1,14161483,1,1,2) [2025-01-02 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161483', 'tblTempUsageDetail_20' ) start [2025-01-02 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161483', 'tblTempUsageDetail_20' ) end [2025-01-02 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:10:22] Production.INFO: ==23945== Releasing lock... [2025-01-02 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:10:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:11:04 [end_date_ymd] => 2025-01-02 23:11:04 [RateCDR] => 1 ) [2025-01-02 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:11:04' and `end` < '2025-01-02 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:11:18] Production.INFO: count ==612 [2025-01-02 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:11:04 - End Time 2025-01-02 23:11:04 [2025-01-02 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161488', 'tblTempUsageDetail_20' ) start [2025-01-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161488', 'tblTempUsageDetail_20' ) end [2025-01-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161488', 'tblTempVendorCDR_20' ) start [2025-01-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161488', 'tblTempVendorCDR_20' ) end [2025-01-02 23:11:18] Production.INFO: ProcessCDR(1,14161488,1,1,2) [2025-01-02 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161488', 'tblTempUsageDetail_20' ) start [2025-01-02 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161488', 'tblTempUsageDetail_20' ) end [2025-01-02 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:11:21] Production.INFO: ==24018== Releasing lock... [2025-01-02 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:11:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:12:05 [end_date_ymd] => 2025-01-02 23:12:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:12:05' and `end` < '2025-01-02 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-01-02 23:12:18] Production.INFO: count ==612 [2025-01-02 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:12:05 - End Time 2025-01-02 23:12:05 [2025-01-02 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161493', 'tblTempUsageDetail_20' ) start [2025-01-02 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161493', 'tblTempUsageDetail_20' ) end [2025-01-02 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161493', 'tblTempVendorCDR_20' ) start [2025-01-02 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161493', 'tblTempVendorCDR_20' ) end [2025-01-02 23:12:18] Production.INFO: ProcessCDR(1,14161493,1,1,2) [2025-01-02 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161493', 'tblTempUsageDetail_20' ) start [2025-01-02 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161493', 'tblTempUsageDetail_20' ) end [2025-01-02 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:12:21] Production.INFO: ==24171== Releasing lock... [2025-01-02 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:12:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:13:06 [end_date_ymd] => 2025-01-02 23:13:06 [RateCDR] => 1 ) [2025-01-02 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:13:06' and `end` < '2025-01-02 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:13:20] Production.INFO: count ==613 [2025-01-02 23:13:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:13:06 - End Time 2025-01-02 23:13:06 [2025-01-02 23:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161498', 'tblTempUsageDetail_20' ) start [2025-01-02 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161498', 'tblTempUsageDetail_20' ) end [2025-01-02 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161498', 'tblTempVendorCDR_20' ) start [2025-01-02 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161498', 'tblTempVendorCDR_20' ) end [2025-01-02 23:13:20] Production.INFO: ProcessCDR(1,14161498,1,1,2) [2025-01-02 23:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161498', 'tblTempUsageDetail_20' ) start [2025-01-02 23:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161498', 'tblTempUsageDetail_20' ) end [2025-01-02 23:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:13:25] Production.INFO: ==24242== Releasing lock... [2025-01-02 23:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:13:25] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:14:05 [end_date_ymd] => 2025-01-02 23:14:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:14:05' and `end` < '2025-01-02 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-01-02 23:14:19] Production.INFO: count ==614 [2025-01-02 23:14:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:14:05 - End Time 2025-01-02 23:14:05 [2025-01-02 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161503', 'tblTempUsageDetail_20' ) start [2025-01-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161503', 'tblTempUsageDetail_20' ) end [2025-01-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161503', 'tblTempVendorCDR_20' ) start [2025-01-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161503', 'tblTempVendorCDR_20' ) end [2025-01-02 23:14:19] Production.INFO: ProcessCDR(1,14161503,1,1,2) [2025-01-02 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161503', 'tblTempUsageDetail_20' ) start [2025-01-02 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161503', 'tblTempUsageDetail_20' ) end [2025-01-02 23:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:14:24] Production.INFO: ==24318== Releasing lock... [2025-01-02 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:14:24] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:15:06 [end_date_ymd] => 2025-01-02 23:15:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:15:06' and `end` < '2025-01-02 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-01-02 23:15:19] Production.INFO: count ==614 [2025-01-02 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:15:06 - End Time 2025-01-02 23:15:06 [2025-01-02 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161508', 'tblTempUsageDetail_20' ) start [2025-01-02 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161508', 'tblTempUsageDetail_20' ) end [2025-01-02 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161508', 'tblTempVendorCDR_20' ) start [2025-01-02 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161508', 'tblTempVendorCDR_20' ) end [2025-01-02 23:15:19] Production.INFO: ProcessCDR(1,14161508,1,1,2) [2025-01-02 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161508', 'tblTempUsageDetail_20' ) start [2025-01-02 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161508', 'tblTempUsageDetail_20' ) end [2025-01-02 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:15:23] Production.INFO: ==24475== Releasing lock... [2025-01-02 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:15:23] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:16:05 [end_date_ymd] => 2025-01-02 23:16:05 [RateCDR] => 1 ) [2025-01-02 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:16:05' and `end` < '2025-01-02 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:16:18] Production.INFO: count ==614 [2025-01-02 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:16:05 - End Time 2025-01-02 23:16:05 [2025-01-02 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161513', 'tblTempUsageDetail_20' ) start [2025-01-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161513', 'tblTempUsageDetail_20' ) end [2025-01-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161513', 'tblTempVendorCDR_20' ) start [2025-01-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161513', 'tblTempVendorCDR_20' ) end [2025-01-02 23:16:18] Production.INFO: ProcessCDR(1,14161513,1,1,2) [2025-01-02 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161513', 'tblTempUsageDetail_20' ) start [2025-01-02 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161513', 'tblTempUsageDetail_20' ) end [2025-01-02 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:16:21] Production.INFO: ==24556== Releasing lock... [2025-01-02 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:16:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:17:05 [end_date_ymd] => 2025-01-02 23:17:05 [RateCDR] => 1 ) [2025-01-02 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:17:05' and `end` < '2025-01-02 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:17:18] Production.INFO: count ==614 [2025-01-02 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:17:05 - End Time 2025-01-02 23:17:05 [2025-01-02 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161518', 'tblTempUsageDetail_20' ) start [2025-01-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161518', 'tblTempUsageDetail_20' ) end [2025-01-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161518', 'tblTempVendorCDR_20' ) start [2025-01-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161518', 'tblTempVendorCDR_20' ) end [2025-01-02 23:17:18] Production.INFO: ProcessCDR(1,14161518,1,1,2) [2025-01-02 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161518', 'tblTempUsageDetail_20' ) start [2025-01-02 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161518', 'tblTempUsageDetail_20' ) end [2025-01-02 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:17:21] Production.INFO: ==24629== Releasing lock... [2025-01-02 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:17:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:18:05 [end_date_ymd] => 2025-01-02 23:18:05 [RateCDR] => 1 ) [2025-01-02 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:18:05' and `end` < '2025-01-02 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:18:20] Production.INFO: count ==620 [2025-01-02 23:18:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:18:05 - End Time 2025-01-02 23:18:05 [2025-01-02 23:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161523', 'tblTempUsageDetail_20' ) start [2025-01-02 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161523', 'tblTempUsageDetail_20' ) end [2025-01-02 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161523', 'tblTempVendorCDR_20' ) start [2025-01-02 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161523', 'tblTempVendorCDR_20' ) end [2025-01-02 23:18:20] Production.INFO: ProcessCDR(1,14161523,1,1,2) [2025-01-02 23:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161523', 'tblTempUsageDetail_20' ) start [2025-01-02 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161523', 'tblTempUsageDetail_20' ) end [2025-01-02 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:18:23] Production.INFO: ==24701== Releasing lock... [2025-01-02 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:18:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-02 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:19:05 [end_date_ymd] => 2025-01-02 23:19:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:19:05' and `end` < '2025-01-02 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-01-02 23:19:18] Production.INFO: count ==618 [2025-01-02 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:19:05 - End Time 2025-01-02 23:19:05 [2025-01-02 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161528', 'tblTempUsageDetail_20' ) start [2025-01-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161528', 'tblTempUsageDetail_20' ) end [2025-01-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161528', 'tblTempVendorCDR_20' ) start [2025-01-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161528', 'tblTempVendorCDR_20' ) end [2025-01-02 23:19:18] Production.INFO: ProcessCDR(1,14161528,1,1,2) [2025-01-02 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161528', 'tblTempUsageDetail_20' ) start [2025-01-02 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161528', 'tblTempUsageDetail_20' ) end [2025-01-02 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:19:22] Production.INFO: ==24775== Releasing lock... [2025-01-02 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:19:22] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:20:05 [end_date_ymd] => 2025-01-02 23:20:05 [RateCDR] => 1 ) [2025-01-02 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:20:05' and `end` < '2025-01-02 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:20:18] Production.INFO: count ==620 [2025-01-02 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:20:05 - End Time 2025-01-02 23:20:05 [2025-01-02 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161534', 'tblTempUsageDetail_20' ) start [2025-01-02 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161534', 'tblTempUsageDetail_20' ) end [2025-01-02 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161534', 'tblTempVendorCDR_20' ) start [2025-01-02 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161534', 'tblTempVendorCDR_20' ) end [2025-01-02 23:20:18] Production.INFO: ProcessCDR(1,14161534,1,1,2) [2025-01-02 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161534', 'tblTempUsageDetail_20' ) start [2025-01-02 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161534', 'tblTempUsageDetail_20' ) end [2025-01-02 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:20:21] Production.INFO: ==24848== Releasing lock... [2025-01-02 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:20:21] Production.INFO: 32 MB #Memory Used# [2025-01-02 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:21:05 [end_date_ymd] => 2025-01-02 23:21:05 [RateCDR] => 1 ) [2025-01-02 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:21:05' and `end` < '2025-01-02 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:21:19] Production.INFO: count ==593 [2025-01-02 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:21:05 - End Time 2025-01-02 23:21:05 [2025-01-02 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161539', 'tblTempUsageDetail_20' ) start [2025-01-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161539', 'tblTempUsageDetail_20' ) end [2025-01-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161539', 'tblTempVendorCDR_20' ) start [2025-01-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161539', 'tblTempVendorCDR_20' ) end [2025-01-02 23:21:19] Production.INFO: ProcessCDR(1,14161539,1,1,2) [2025-01-02 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161539', 'tblTempUsageDetail_20' ) start [2025-01-02 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161539', 'tblTempUsageDetail_20' ) end [2025-01-02 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:21:22] Production.INFO: ==24924== Releasing lock... [2025-01-02 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:22:04 [end_date_ymd] => 2025-01-02 23:22:04 [RateCDR] => 1 ) [2025-01-02 23:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:22:04' and `end` < '2025-01-02 23:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:22:17] Production.INFO: count ==593 [2025-01-02 23:22:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:22:04 - End Time 2025-01-02 23:22:04 [2025-01-02 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161544', 'tblTempUsageDetail_20' ) start [2025-01-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161544', 'tblTempUsageDetail_20' ) end [2025-01-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161544', 'tblTempVendorCDR_20' ) start [2025-01-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161544', 'tblTempVendorCDR_20' ) end [2025-01-02 23:22:17] Production.INFO: ProcessCDR(1,14161544,1,1,2) [2025-01-02 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161544', 'tblTempUsageDetail_20' ) start [2025-01-02 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161544', 'tblTempUsageDetail_20' ) end [2025-01-02 23:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:22:20] Production.INFO: ==24993== Releasing lock... [2025-01-02 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:22:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:23:05 [end_date_ymd] => 2025-01-02 23:23:05 [RateCDR] => 1 ) [2025-01-02 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:23:05' and `end` < '2025-01-02 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:23:19] Production.INFO: count ==593 [2025-01-02 23:23:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:23:05 - End Time 2025-01-02 23:23:05 [2025-01-02 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161549', 'tblTempUsageDetail_20' ) start [2025-01-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161549', 'tblTempUsageDetail_20' ) end [2025-01-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161549', 'tblTempVendorCDR_20' ) start [2025-01-02 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161549', 'tblTempVendorCDR_20' ) end [2025-01-02 23:23:20] Production.INFO: ProcessCDR(1,14161549,1,1,2) [2025-01-02 23:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161549', 'tblTempUsageDetail_20' ) start [2025-01-02 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161549', 'tblTempUsageDetail_20' ) end [2025-01-02 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:23:23] Production.INFO: ==25103== Releasing lock... [2025-01-02 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:24:05 [end_date_ymd] => 2025-01-02 23:24:05 [RateCDR] => 1 ) [2025-01-02 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:24:05' and `end` < '2025-01-02 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:24:19] Production.INFO: count ==593 [2025-01-02 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:24:05 - End Time 2025-01-02 23:24:05 [2025-01-02 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161554', 'tblTempUsageDetail_20' ) start [2025-01-02 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161554', 'tblTempUsageDetail_20' ) end [2025-01-02 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161554', 'tblTempVendorCDR_20' ) start [2025-01-02 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161554', 'tblTempVendorCDR_20' ) end [2025-01-02 23:24:19] Production.INFO: ProcessCDR(1,14161554,1,1,2) [2025-01-02 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161554', 'tblTempUsageDetail_20' ) start [2025-01-02 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161554', 'tblTempUsageDetail_20' ) end [2025-01-02 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:24:22] Production.INFO: ==25173== Releasing lock... [2025-01-02 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:25:04 [end_date_ymd] => 2025-01-02 23:25:04 [RateCDR] => 1 ) [2025-01-02 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:25:04' and `end` < '2025-01-02 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:25:17] Production.INFO: count ==593 [2025-01-02 23:25:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:25:04 - End Time 2025-01-02 23:25:04 [2025-01-02 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161559', 'tblTempUsageDetail_20' ) start [2025-01-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161559', 'tblTempUsageDetail_20' ) end [2025-01-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161559', 'tblTempVendorCDR_20' ) start [2025-01-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161559', 'tblTempVendorCDR_20' ) end [2025-01-02 23:25:17] Production.INFO: ProcessCDR(1,14161559,1,1,2) [2025-01-02 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161559', 'tblTempUsageDetail_20' ) start [2025-01-02 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161559', 'tblTempUsageDetail_20' ) end [2025-01-02 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:25:22] Production.INFO: ==25247== Releasing lock... [2025-01-02 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:26:05 [end_date_ymd] => 2025-01-02 23:26:05 [RateCDR] => 1 ) [2025-01-02 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:26:05' and `end` < '2025-01-02 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:26:18] Production.INFO: count ==595 [2025-01-02 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:26:05 - End Time 2025-01-02 23:26:05 [2025-01-02 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161564', 'tblTempUsageDetail_20' ) start [2025-01-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161564', 'tblTempUsageDetail_20' ) end [2025-01-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161564', 'tblTempVendorCDR_20' ) start [2025-01-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161564', 'tblTempVendorCDR_20' ) end [2025-01-02 23:26:18] Production.INFO: ProcessCDR(1,14161564,1,1,2) [2025-01-02 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161564', 'tblTempUsageDetail_20' ) start [2025-01-02 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161564', 'tblTempUsageDetail_20' ) end [2025-01-02 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:26:21] Production.INFO: ==25318== Releasing lock... [2025-01-02 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:27:05 [end_date_ymd] => 2025-01-02 23:27:05 [RateCDR] => 1 ) [2025-01-02 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:27:05' and `end` < '2025-01-02 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:27:19] Production.INFO: count ==595 [2025-01-02 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:27:05 - End Time 2025-01-02 23:27:05 [2025-01-02 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161569', 'tblTempUsageDetail_20' ) start [2025-01-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161569', 'tblTempUsageDetail_20' ) end [2025-01-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161569', 'tblTempVendorCDR_20' ) start [2025-01-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161569', 'tblTempVendorCDR_20' ) end [2025-01-02 23:27:19] Production.INFO: ProcessCDR(1,14161569,1,1,2) [2025-01-02 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161569', 'tblTempUsageDetail_20' ) start [2025-01-02 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161569', 'tblTempUsageDetail_20' ) end [2025-01-02 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:27:22] Production.INFO: ==25390== Releasing lock... [2025-01-02 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:27:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:28:05 [end_date_ymd] => 2025-01-02 23:28:05 [RateCDR] => 1 ) [2025-01-02 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:28:05' and `end` < '2025-01-02 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:28:18] Production.INFO: count ==595 [2025-01-02 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:28:05 - End Time 2025-01-02 23:28:05 [2025-01-02 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161574', 'tblTempUsageDetail_20' ) start [2025-01-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161574', 'tblTempUsageDetail_20' ) end [2025-01-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161574', 'tblTempVendorCDR_20' ) start [2025-01-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161574', 'tblTempVendorCDR_20' ) end [2025-01-02 23:28:18] Production.INFO: ProcessCDR(1,14161574,1,1,2) [2025-01-02 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161574', 'tblTempUsageDetail_20' ) start [2025-01-02 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161574', 'tblTempUsageDetail_20' ) end [2025-01-02 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:28:21] Production.INFO: ==25463== Releasing lock... [2025-01-02 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:29:05 [end_date_ymd] => 2025-01-02 23:29:05 [RateCDR] => 1 ) [2025-01-02 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:29:05' and `end` < '2025-01-02 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:29:18] Production.INFO: count ==595 [2025-01-02 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:29:05 - End Time 2025-01-02 23:29:05 [2025-01-02 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161579', 'tblTempUsageDetail_20' ) start [2025-01-02 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161579', 'tblTempUsageDetail_20' ) end [2025-01-02 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161579', 'tblTempVendorCDR_20' ) start [2025-01-02 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161579', 'tblTempVendorCDR_20' ) end [2025-01-02 23:29:18] Production.INFO: ProcessCDR(1,14161579,1,1,2) [2025-01-02 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161579', 'tblTempUsageDetail_20' ) start [2025-01-02 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161579', 'tblTempUsageDetail_20' ) end [2025-01-02 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:29:21] Production.INFO: ==25540== Releasing lock... [2025-01-02 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:30:06 [end_date_ymd] => 2025-01-02 23:30:06 [RateCDR] => 1 ) [2025-01-02 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:30:06' and `end` < '2025-01-02 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:30:19] Production.INFO: count ==593 [2025-01-02 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:30:06 - End Time 2025-01-02 23:30:06 [2025-01-02 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161584', 'tblTempUsageDetail_20' ) start [2025-01-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161584', 'tblTempUsageDetail_20' ) end [2025-01-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161584', 'tblTempVendorCDR_20' ) start [2025-01-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161584', 'tblTempVendorCDR_20' ) end [2025-01-02 23:30:19] Production.INFO: ProcessCDR(1,14161584,1,1,2) [2025-01-02 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161584', 'tblTempUsageDetail_20' ) start [2025-01-02 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161584', 'tblTempUsageDetail_20' ) end [2025-01-02 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:30:22] Production.INFO: ==25618== Releasing lock... [2025-01-02 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:31:04 [end_date_ymd] => 2025-01-02 23:31:04 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:31:04' and `end` < '2025-01-02 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-01-02 23:31:18] Production.INFO: count ==588 [2025-01-02 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:31:04 - End Time 2025-01-02 23:31:04 [2025-01-02 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161590', 'tblTempUsageDetail_20' ) start [2025-01-02 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161590', 'tblTempUsageDetail_20' ) end [2025-01-02 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161590', 'tblTempVendorCDR_20' ) start [2025-01-02 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161590', 'tblTempVendorCDR_20' ) end [2025-01-02 23:31:18] Production.INFO: ProcessCDR(1,14161590,1,1,2) [2025-01-02 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161590', 'tblTempUsageDetail_20' ) start [2025-01-02 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161590', 'tblTempUsageDetail_20' ) end [2025-01-02 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:31:22] Production.INFO: ==25696== Releasing lock... [2025-01-02 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:32:05 [end_date_ymd] => 2025-01-02 23:32:05 [RateCDR] => 1 ) [2025-01-02 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:32:05' and `end` < '2025-01-02 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-01-02 23:32:20] Production.INFO: count ==589 [2025-01-02 23:32:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:32:05 - End Time 2025-01-02 23:32:05 [2025-01-02 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161595', 'tblTempUsageDetail_20' ) start [2025-01-02 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161595', 'tblTempUsageDetail_20' ) end [2025-01-02 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161595', 'tblTempVendorCDR_20' ) start [2025-01-02 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161595', 'tblTempVendorCDR_20' ) end [2025-01-02 23:32:20] Production.INFO: ProcessCDR(1,14161595,1,1,2) [2025-01-02 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161595', 'tblTempUsageDetail_20' ) start [2025-01-02 23:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161595', 'tblTempUsageDetail_20' ) end [2025-01-02 23:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:32:25] Production.INFO: ==25774== Releasing lock... [2025-01-02 23:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:32:25] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:33:04 [end_date_ymd] => 2025-01-02 23:33:04 [RateCDR] => 1 ) [2025-01-02 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:33:04' and `end` < '2025-01-02 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:33:18] Production.INFO: count ==589 [2025-01-02 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:33:04 - End Time 2025-01-02 23:33:04 [2025-01-02 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161600', 'tblTempUsageDetail_20' ) start [2025-01-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161600', 'tblTempUsageDetail_20' ) end [2025-01-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161600', 'tblTempVendorCDR_20' ) start [2025-01-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161600', 'tblTempVendorCDR_20' ) end [2025-01-02 23:33:18] Production.INFO: ProcessCDR(1,14161600,1,1,2) [2025-01-02 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161600', 'tblTempUsageDetail_20' ) start [2025-01-02 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161600', 'tblTempUsageDetail_20' ) end [2025-01-02 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:33:22] Production.INFO: ==25850== Releasing lock... [2025-01-02 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:34:05 [end_date_ymd] => 2025-01-02 23:34:05 [RateCDR] => 1 ) [2025-01-02 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:34:05' and `end` < '2025-01-02 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:34:20] Production.INFO: count ==589 [2025-01-02 23:34:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:34:05 - End Time 2025-01-02 23:34:05 [2025-01-02 23:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161605', 'tblTempUsageDetail_20' ) start [2025-01-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161605', 'tblTempUsageDetail_20' ) end [2025-01-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161605', 'tblTempVendorCDR_20' ) start [2025-01-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161605', 'tblTempVendorCDR_20' ) end [2025-01-02 23:34:20] Production.INFO: ProcessCDR(1,14161605,1,1,2) [2025-01-02 23:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161605', 'tblTempUsageDetail_20' ) start [2025-01-02 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161605', 'tblTempUsageDetail_20' ) end [2025-01-02 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:34:23] Production.INFO: ==25935== Releasing lock... [2025-01-02 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:34:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:35:04 [end_date_ymd] => 2025-01-02 23:35:04 [RateCDR] => 1 ) [2025-01-02 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:35:04' and `end` < '2025-01-02 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:35:17] Production.INFO: count ==586 [2025-01-02 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:35:04 - End Time 2025-01-02 23:35:04 [2025-01-02 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161610', 'tblTempUsageDetail_20' ) start [2025-01-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161610', 'tblTempUsageDetail_20' ) end [2025-01-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161610', 'tblTempVendorCDR_20' ) start [2025-01-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161610', 'tblTempVendorCDR_20' ) end [2025-01-02 23:35:17] Production.INFO: ProcessCDR(1,14161610,1,1,2) [2025-01-02 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161610', 'tblTempUsageDetail_20' ) start [2025-01-02 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161610', 'tblTempUsageDetail_20' ) end [2025-01-02 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:35:20] Production.INFO: ==26013== Releasing lock... [2025-01-02 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:35:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:36:05 [end_date_ymd] => 2025-01-02 23:36:05 [RateCDR] => 1 ) [2025-01-02 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:36:05' and `end` < '2025-01-02 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:36:18] Production.INFO: count ==586 [2025-01-02 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:36:05 - End Time 2025-01-02 23:36:05 [2025-01-02 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161615', 'tblTempUsageDetail_20' ) start [2025-01-02 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161615', 'tblTempUsageDetail_20' ) end [2025-01-02 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161615', 'tblTempVendorCDR_20' ) start [2025-01-02 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161615', 'tblTempVendorCDR_20' ) end [2025-01-02 23:36:18] Production.INFO: ProcessCDR(1,14161615,1,1,2) [2025-01-02 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161615', 'tblTempUsageDetail_20' ) start [2025-01-02 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161615', 'tblTempUsageDetail_20' ) end [2025-01-02 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:36:21] Production.INFO: ==26094== Releasing lock... [2025-01-02 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:37:05 [end_date_ymd] => 2025-01-02 23:37:05 [RateCDR] => 1 ) [2025-01-02 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:37:05' and `end` < '2025-01-02 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:37:18] Production.INFO: count ==586 [2025-01-02 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:37:05 - End Time 2025-01-02 23:37:05 [2025-01-02 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161620', 'tblTempUsageDetail_20' ) start [2025-01-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161620', 'tblTempUsageDetail_20' ) end [2025-01-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161620', 'tblTempVendorCDR_20' ) start [2025-01-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161620', 'tblTempVendorCDR_20' ) end [2025-01-02 23:37:18] Production.INFO: ProcessCDR(1,14161620,1,1,2) [2025-01-02 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161620', 'tblTempUsageDetail_20' ) start [2025-01-02 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161620', 'tblTempUsageDetail_20' ) end [2025-01-02 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:37:21] Production.INFO: ==26178== Releasing lock... [2025-01-02 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:38:05 [end_date_ymd] => 2025-01-02 23:38:05 [RateCDR] => 1 ) [2025-01-02 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:38:05' and `end` < '2025-01-02 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:38:19] Production.INFO: count ==586 [2025-01-02 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:38:05 - End Time 2025-01-02 23:38:05 [2025-01-02 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161625', 'tblTempUsageDetail_20' ) start [2025-01-02 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161625', 'tblTempUsageDetail_20' ) end [2025-01-02 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161625', 'tblTempVendorCDR_20' ) start [2025-01-02 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161625', 'tblTempVendorCDR_20' ) end [2025-01-02 23:38:19] Production.INFO: ProcessCDR(1,14161625,1,1,2) [2025-01-02 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161625', 'tblTempUsageDetail_20' ) start [2025-01-02 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161625', 'tblTempUsageDetail_20' ) end [2025-01-02 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:38:22] Production.INFO: ==26262== Releasing lock... [2025-01-02 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:39:05 [end_date_ymd] => 2025-01-02 23:39:05 [RateCDR] => 1 ) [2025-01-02 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:39:05' and `end` < '2025-01-02 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:39:20] Production.INFO: count ==590 [2025-01-02 23:39:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:39:05 - End Time 2025-01-02 23:39:05 [2025-01-02 23:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161630', 'tblTempUsageDetail_20' ) start [2025-01-02 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161630', 'tblTempUsageDetail_20' ) end [2025-01-02 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161630', 'tblTempVendorCDR_20' ) start [2025-01-02 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161630', 'tblTempVendorCDR_20' ) end [2025-01-02 23:39:20] Production.INFO: ProcessCDR(1,14161630,1,1,2) [2025-01-02 23:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161630', 'tblTempUsageDetail_20' ) start [2025-01-02 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161630', 'tblTempUsageDetail_20' ) end [2025-01-02 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:39:24] Production.INFO: ==26389== Releasing lock... [2025-01-02 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:39:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:40:06 [end_date_ymd] => 2025-01-02 23:40:06 [RateCDR] => 1 ) [2025-01-02 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:40:06' and `end` < '2025-01-02 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:40:18] Production.INFO: count ==593 [2025-01-02 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:40:06 - End Time 2025-01-02 23:40:06 [2025-01-02 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161636', 'tblTempUsageDetail_20' ) start [2025-01-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161636', 'tblTempUsageDetail_20' ) end [2025-01-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161636', 'tblTempVendorCDR_20' ) start [2025-01-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161636', 'tblTempVendorCDR_20' ) end [2025-01-02 23:40:19] Production.INFO: ProcessCDR(1,14161636,1,1,2) [2025-01-02 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161636', 'tblTempUsageDetail_20' ) start [2025-01-02 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161636', 'tblTempUsageDetail_20' ) end [2025-01-02 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:40:23] Production.INFO: ==26475== Releasing lock... [2025-01-02 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:41:05 [end_date_ymd] => 2025-01-02 23:41:05 [RateCDR] => 1 ) [2025-01-02 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:41:05' and `end` < '2025-01-02 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:41:19] Production.INFO: count ==596 [2025-01-02 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:41:05 - End Time 2025-01-02 23:41:05 [2025-01-02 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161641', 'tblTempUsageDetail_20' ) start [2025-01-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161641', 'tblTempUsageDetail_20' ) end [2025-01-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161641', 'tblTempVendorCDR_20' ) start [2025-01-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161641', 'tblTempVendorCDR_20' ) end [2025-01-02 23:41:19] Production.INFO: ProcessCDR(1,14161641,1,1,2) [2025-01-02 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161641', 'tblTempUsageDetail_20' ) start [2025-01-02 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161641', 'tblTempUsageDetail_20' ) end [2025-01-02 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:41:23] Production.INFO: ==26559== Releasing lock... [2025-01-02 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:41:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:42:05 [end_date_ymd] => 2025-01-02 23:42:05 [RateCDR] => 1 ) [2025-01-02 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:42:05' and `end` < '2025-01-02 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:42:18] Production.INFO: count ==596 [2025-01-02 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:42:05 - End Time 2025-01-02 23:42:05 [2025-01-02 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161646', 'tblTempUsageDetail_20' ) start [2025-01-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161646', 'tblTempUsageDetail_20' ) end [2025-01-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161646', 'tblTempVendorCDR_20' ) start [2025-01-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161646', 'tblTempVendorCDR_20' ) end [2025-01-02 23:42:18] Production.INFO: ProcessCDR(1,14161646,1,1,2) [2025-01-02 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161646', 'tblTempUsageDetail_20' ) start [2025-01-02 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161646', 'tblTempUsageDetail_20' ) end [2025-01-02 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:42:21] Production.INFO: ==26639== Releasing lock... [2025-01-02 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:43:05 [end_date_ymd] => 2025-01-02 23:43:05 [RateCDR] => 1 ) [2025-01-02 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:43:05' and `end` < '2025-01-02 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:43:17] Production.INFO: count ==596 [2025-01-02 23:43:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:43:05 - End Time 2025-01-02 23:43:05 [2025-01-02 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161651', 'tblTempUsageDetail_20' ) start [2025-01-02 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161651', 'tblTempUsageDetail_20' ) end [2025-01-02 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161651', 'tblTempVendorCDR_20' ) start [2025-01-02 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161651', 'tblTempVendorCDR_20' ) end [2025-01-02 23:43:17] Production.INFO: ProcessCDR(1,14161651,1,1,2) [2025-01-02 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161651', 'tblTempUsageDetail_20' ) start [2025-01-02 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161651', 'tblTempUsageDetail_20' ) end [2025-01-02 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:43:21] Production.INFO: ==26716== Releasing lock... [2025-01-02 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:44:04 [end_date_ymd] => 2025-01-02 23:44:04 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:44:04' and `end` < '2025-01-02 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-01-02 23:44:17] Production.INFO: count ==597 [2025-01-02 23:44:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:44:04 - End Time 2025-01-02 23:44:04 [2025-01-02 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161656', 'tblTempUsageDetail_20' ) start [2025-01-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161656', 'tblTempUsageDetail_20' ) end [2025-01-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161656', 'tblTempVendorCDR_20' ) start [2025-01-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161656', 'tblTempVendorCDR_20' ) end [2025-01-02 23:44:17] Production.INFO: ProcessCDR(1,14161656,1,1,2) [2025-01-02 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161656', 'tblTempUsageDetail_20' ) start [2025-01-02 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161656', 'tblTempUsageDetail_20' ) end [2025-01-02 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:44:22] Production.INFO: ==26798== Releasing lock... [2025-01-02 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:44:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:45:05 [end_date_ymd] => 2025-01-02 23:45:05 [RateCDR] => 1 ) [2025-01-02 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:45:05' and `end` < '2025-01-02 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-01-02 23:45:18] Production.INFO: count ==597 [2025-01-02 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:45:05 - End Time 2025-01-02 23:45:05 [2025-01-02 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161661', 'tblTempUsageDetail_20' ) start [2025-01-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161661', 'tblTempUsageDetail_20' ) end [2025-01-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161661', 'tblTempVendorCDR_20' ) start [2025-01-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161661', 'tblTempVendorCDR_20' ) end [2025-01-02 23:45:18] Production.INFO: ProcessCDR(1,14161661,1,1,2) [2025-01-02 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161661', 'tblTempUsageDetail_20' ) start [2025-01-02 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161661', 'tblTempUsageDetail_20' ) end [2025-01-02 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:45:21] Production.INFO: ==26879== Releasing lock... [2025-01-02 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:46:04 [end_date_ymd] => 2025-01-02 23:46:04 [RateCDR] => 1 ) [2025-01-02 23:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:46:04' and `end` < '2025-01-02 23:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:46:17] Production.INFO: count ==595 [2025-01-02 23:46:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:46:04 - End Time 2025-01-02 23:46:04 [2025-01-02 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161666', 'tblTempUsageDetail_20' ) start [2025-01-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161666', 'tblTempUsageDetail_20' ) end [2025-01-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161666', 'tblTempVendorCDR_20' ) start [2025-01-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161666', 'tblTempVendorCDR_20' ) end [2025-01-02 23:46:17] Production.INFO: ProcessCDR(1,14161666,1,1,2) [2025-01-02 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161666', 'tblTempUsageDetail_20' ) start [2025-01-02 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161666', 'tblTempUsageDetail_20' ) end [2025-01-02 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:46:21] Production.INFO: ==26961== Releasing lock... [2025-01-02 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:47:05 [end_date_ymd] => 2025-01-02 23:47:05 [RateCDR] => 1 ) [2025-01-02 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:47:05' and `end` < '2025-01-02 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:47:20] Production.INFO: count ==594 [2025-01-02 23:47:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:47:05 - End Time 2025-01-02 23:47:05 [2025-01-02 23:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161671', 'tblTempUsageDetail_20' ) start [2025-01-02 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161671', 'tblTempUsageDetail_20' ) end [2025-01-02 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161671', 'tblTempVendorCDR_20' ) start [2025-01-02 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161671', 'tblTempVendorCDR_20' ) end [2025-01-02 23:47:20] Production.INFO: ProcessCDR(1,14161671,1,1,2) [2025-01-02 23:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161671', 'tblTempUsageDetail_20' ) start [2025-01-02 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161671', 'tblTempUsageDetail_20' ) end [2025-01-02 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:47:23] Production.INFO: ==27044== Releasing lock... [2025-01-02 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:47:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:48:05 [end_date_ymd] => 2025-01-02 23:48:05 [RateCDR] => 1 ) [2025-01-02 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:48:05' and `end` < '2025-01-02 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:48:17] Production.INFO: count ==594 [2025-01-02 23:48:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:48:05 - End Time 2025-01-02 23:48:05 [2025-01-02 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161676', 'tblTempUsageDetail_20' ) start [2025-01-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161676', 'tblTempUsageDetail_20' ) end [2025-01-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161676', 'tblTempVendorCDR_20' ) start [2025-01-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161676', 'tblTempVendorCDR_20' ) end [2025-01-02 23:48:17] Production.INFO: ProcessCDR(1,14161676,1,1,2) [2025-01-02 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161676', 'tblTempUsageDetail_20' ) start [2025-01-02 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161676', 'tblTempUsageDetail_20' ) end [2025-01-02 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:48:21] Production.INFO: ==27128== Releasing lock... [2025-01-02 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:49:05 [end_date_ymd] => 2025-01-02 23:49:05 [RateCDR] => 1 ) [2025-01-02 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:49:05' and `end` < '2025-01-02 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:49:19] Production.INFO: count ==591 [2025-01-02 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:49:05 - End Time 2025-01-02 23:49:05 [2025-01-02 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161681', 'tblTempUsageDetail_20' ) start [2025-01-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161681', 'tblTempUsageDetail_20' ) end [2025-01-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161681', 'tblTempVendorCDR_20' ) start [2025-01-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161681', 'tblTempVendorCDR_20' ) end [2025-01-02 23:49:19] Production.INFO: ProcessCDR(1,14161681,1,1,2) [2025-01-02 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161681', 'tblTempUsageDetail_20' ) start [2025-01-02 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161681', 'tblTempUsageDetail_20' ) end [2025-01-02 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:49:22] Production.INFO: ==27204== Releasing lock... [2025-01-02 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:50:06 [end_date_ymd] => 2025-01-02 23:50:06 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:50:06' and `end` < '2025-01-02 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-01-02 23:50:19] Production.INFO: count ==587 [2025-01-02 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:50:06 - End Time 2025-01-02 23:50:06 [2025-01-02 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161687', 'tblTempUsageDetail_20' ) start [2025-01-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161687', 'tblTempUsageDetail_20' ) end [2025-01-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161687', 'tblTempVendorCDR_20' ) start [2025-01-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161687', 'tblTempVendorCDR_20' ) end [2025-01-02 23:50:19] Production.INFO: ProcessCDR(1,14161687,1,1,2) [2025-01-02 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161687', 'tblTempUsageDetail_20' ) start [2025-01-02 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161687', 'tblTempUsageDetail_20' ) end [2025-01-02 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:50:23] Production.INFO: ==27283== Releasing lock... [2025-01-02 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:50:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-02 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:51:04 [end_date_ymd] => 2025-01-02 23:51:04 [RateCDR] => 1 ) [2025-01-02 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:51:04' and `end` < '2025-01-02 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:51:16] Production.INFO: count ==564 [2025-01-02 23:51:16] Production.ERROR: pbx CDR StartTime 2025-01-02 20:51:04 - End Time 2025-01-02 23:51:04 [2025-01-02 23:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161692', 'tblTempUsageDetail_20' ) start [2025-01-02 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161692', 'tblTempUsageDetail_20' ) end [2025-01-02 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161692', 'tblTempVendorCDR_20' ) start [2025-01-02 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161692', 'tblTempVendorCDR_20' ) end [2025-01-02 23:51:17] Production.INFO: ProcessCDR(1,14161692,1,1,2) [2025-01-02 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161692', 'tblTempUsageDetail_20' ) start [2025-01-02 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161692', 'tblTempUsageDetail_20' ) end [2025-01-02 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:51:20] Production.INFO: ==27363== Releasing lock... [2025-01-02 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:51:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:52:05 [end_date_ymd] => 2025-01-02 23:52:05 [RateCDR] => 1 ) [2025-01-02 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:52:05' and `end` < '2025-01-02 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:52:20] Production.INFO: count ==563 [2025-01-02 23:52:20] Production.ERROR: pbx CDR StartTime 2025-01-02 20:52:05 - End Time 2025-01-02 23:52:05 [2025-01-02 23:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161697', 'tblTempUsageDetail_20' ) start [2025-01-02 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161697', 'tblTempUsageDetail_20' ) end [2025-01-02 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161697', 'tblTempVendorCDR_20' ) start [2025-01-02 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161697', 'tblTempVendorCDR_20' ) end [2025-01-02 23:52:20] Production.INFO: ProcessCDR(1,14161697,1,1,2) [2025-01-02 23:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161697', 'tblTempUsageDetail_20' ) start [2025-01-02 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161697', 'tblTempUsageDetail_20' ) end [2025-01-02 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:52:23] Production.INFO: ==27445== Releasing lock... [2025-01-02 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:52:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:53:05 [end_date_ymd] => 2025-01-02 23:53:05 [RateCDR] => 1 ) [2025-01-02 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:53:05' and `end` < '2025-01-02 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:53:19] Production.INFO: count ==563 [2025-01-02 23:53:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:53:05 - End Time 2025-01-02 23:53:05 [2025-01-02 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161702', 'tblTempUsageDetail_20' ) start [2025-01-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161702', 'tblTempUsageDetail_20' ) end [2025-01-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161702', 'tblTempVendorCDR_20' ) start [2025-01-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161702', 'tblTempVendorCDR_20' ) end [2025-01-02 23:53:19] Production.INFO: ProcessCDR(1,14161702,1,1,2) [2025-01-02 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161702', 'tblTempUsageDetail_20' ) start [2025-01-02 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161702', 'tblTempUsageDetail_20' ) end [2025-01-02 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:53:22] Production.INFO: ==27520== Releasing lock... [2025-01-02 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:54:05 [end_date_ymd] => 2025-01-02 23:54:05 [RateCDR] => 1 ) [2025-01-02 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:54:05' and `end` < '2025-01-02 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:54:19] Production.INFO: count ==563 [2025-01-02 23:54:19] Production.ERROR: pbx CDR StartTime 2025-01-02 20:54:05 - End Time 2025-01-02 23:54:05 [2025-01-02 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161707', 'tblTempUsageDetail_20' ) start [2025-01-02 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161707', 'tblTempUsageDetail_20' ) end [2025-01-02 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161707', 'tblTempVendorCDR_20' ) start [2025-01-02 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161707', 'tblTempVendorCDR_20' ) end [2025-01-02 23:54:19] Production.INFO: ProcessCDR(1,14161707,1,1,2) [2025-01-02 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161707', 'tblTempUsageDetail_20' ) start [2025-01-02 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161707', 'tblTempUsageDetail_20' ) end [2025-01-02 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:54:22] Production.INFO: ==27594== Releasing lock... [2025-01-02 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:55:05 [end_date_ymd] => 2025-01-02 23:55:05 [RateCDR] => 1 ) [2025-01-02 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:55:05' and `end` < '2025-01-02 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:55:18] Production.INFO: count ==563 [2025-01-02 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:55:05 - End Time 2025-01-02 23:55:05 [2025-01-02 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161712', 'tblTempUsageDetail_20' ) start [2025-01-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161712', 'tblTempUsageDetail_20' ) end [2025-01-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161712', 'tblTempVendorCDR_20' ) start [2025-01-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161712', 'tblTempVendorCDR_20' ) end [2025-01-02 23:55:18] Production.INFO: ProcessCDR(1,14161712,1,1,2) [2025-01-02 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161712', 'tblTempUsageDetail_20' ) start [2025-01-02 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161712', 'tblTempUsageDetail_20' ) end [2025-01-02 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:55:21] Production.INFO: ==27704== Releasing lock... [2025-01-02 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:56:05 [end_date_ymd] => 2025-01-02 23:56:05 [RateCDR] => 1 ) [2025-01-02 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-01-02 20:56:05' and `end` < '2025-01-02 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-01-02 23:56:18] Production.INFO: count ==562 [2025-01-02 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:56:05 - End Time 2025-01-02 23:56:05 [2025-01-02 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161717', 'tblTempUsageDetail_20' ) start [2025-01-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161717', 'tblTempUsageDetail_20' ) end [2025-01-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161717', 'tblTempVendorCDR_20' ) start [2025-01-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161717', 'tblTempVendorCDR_20' ) end [2025-01-02 23:56:18] Production.INFO: ProcessCDR(1,14161717,1,1,2) [2025-01-02 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161717', 'tblTempUsageDetail_20' ) start [2025-01-02 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161717', 'tblTempUsageDetail_20' ) end [2025-01-02 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:56:21] Production.INFO: ==27776== Releasing lock... [2025-01-02 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:57:04 [end_date_ymd] => 2025-01-02 23:57:04 [RateCDR] => 1 ) [2025-01-02 23:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:57:04' and `end` < '2025-01-02 23:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:57:17] Production.INFO: count ==562 [2025-01-02 23:57:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:57:04 - End Time 2025-01-02 23:57:04 [2025-01-02 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161722', 'tblTempUsageDetail_20' ) start [2025-01-02 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161722', 'tblTempUsageDetail_20' ) end [2025-01-02 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161722', 'tblTempVendorCDR_20' ) start [2025-01-02 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161722', 'tblTempVendorCDR_20' ) end [2025-01-02 23:57:17] Production.INFO: ProcessCDR(1,14161722,1,1,2) [2025-01-02 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161722', 'tblTempUsageDetail_20' ) start [2025-01-02 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161722', 'tblTempUsageDetail_20' ) end [2025-01-02 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:57:20] Production.INFO: ==27848== Releasing lock... [2025-01-02 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:57:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:58:05 [end_date_ymd] => 2025-01-02 23:58:05 [RateCDR] => 1 ) [2025-01-02 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:58:05' and `end` < '2025-01-02 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:58:18] Production.INFO: count ==565 [2025-01-02 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 20:58:05 - End Time 2025-01-02 23:58:05 [2025-01-02 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161727', 'tblTempUsageDetail_20' ) start [2025-01-02 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161727', 'tblTempUsageDetail_20' ) end [2025-01-02 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161727', 'tblTempVendorCDR_20' ) start [2025-01-02 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161727', 'tblTempVendorCDR_20' ) end [2025-01-02 23:58:18] Production.INFO: ProcessCDR(1,14161727,1,1,2) [2025-01-02 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161727', 'tblTempUsageDetail_20' ) start [2025-01-02 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161727', 'tblTempUsageDetail_20' ) end [2025-01-02 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:58:21] Production.INFO: ==27923== Releasing lock... [2025-01-02 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-02 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 20:59:04 [end_date_ymd] => 2025-01-02 23:59:04 [RateCDR] => 1 ) [2025-01-02 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 20:59:04' and `end` < '2025-01-02 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-02 23:59:17] Production.INFO: count ==567 [2025-01-02 23:59:17] Production.ERROR: pbx CDR StartTime 2025-01-02 20:59:04 - End Time 2025-01-02 23:59:04 [2025-01-02 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161732', 'tblTempUsageDetail_20' ) start [2025-01-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161732', 'tblTempUsageDetail_20' ) end [2025-01-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161732', 'tblTempVendorCDR_20' ) start [2025-01-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161732', 'tblTempVendorCDR_20' ) end [2025-01-02 23:59:17] Production.INFO: ProcessCDR(1,14161732,1,1,2) [2025-01-02 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-02 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-02 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161732', 'tblTempUsageDetail_20' ) start [2025-01-02 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161732', 'tblTempUsageDetail_20' ) end [2025-01-02 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-02 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-02 23:59:22] Production.INFO: ==27992== Releasing lock... [2025-01-02 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-02 23:59:22] Production.INFO: 31.5 MB #Memory Used#